Commit 569d2056 authored by Carlos Maiolino's avatar Carlos Maiolino Committed by Al Viro

ecryptfs: drop direct calls to ->bmap

Replace direct ->bmap calls by bmap() method.
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarCarlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 10d83e11
...@@ -524,16 +524,12 @@ static int ecryptfs_write_end(struct file *file, ...@@ -524,16 +524,12 @@ static int ecryptfs_write_end(struct file *file,
static sector_t ecryptfs_bmap(struct address_space *mapping, sector_t block) static sector_t ecryptfs_bmap(struct address_space *mapping, sector_t block)
{ {
int rc = 0; struct inode *lower_inode = ecryptfs_inode_to_lower(mapping->host);
struct inode *inode; int ret = bmap(lower_inode, &block);
struct inode *lower_inode;
if (ret)
inode = (struct inode *)mapping->host; return 0;
lower_inode = ecryptfs_inode_to_lower(inode); return block;
if (lower_inode->i_mapping->a_ops->bmap)
rc = lower_inode->i_mapping->a_ops->bmap(lower_inode->i_mapping,
block);
return rc;
} }
const struct address_space_operations ecryptfs_aops = { const struct address_space_operations ecryptfs_aops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment