Skip to content

Commit

Permalink
ecryptfs: Make inode bdi consistent with superblock bdi
Browse files Browse the repository at this point in the history
Make the inode mapping bdi consistent with the superblock bdi so that
dirty pages are flushed properly.

Signed-off-by: Thieu Le <thieule@chromium.org>
Cc: <stable@kernel.org> [2.6.39+]
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
  • Loading branch information
Thieu Le authored and Tyler Hicks committed Jul 29, 2011
1 parent b2987a5 commit 985ca0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ecryptfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ static int ecryptfs_inode_set(struct inode *inode, void *opaque)
inode->i_ino = lower_inode->i_ino;
inode->i_version++;
inode->i_mapping->a_ops = &ecryptfs_aops;
inode->i_mapping->backing_dev_info = inode->i_sb->s_bdi;

if (S_ISLNK(inode->i_mode))
inode->i_op = &ecryptfs_symlink_iops;
Expand Down

0 comments on commit 985ca0e

Please sign in to comment.