Skip to content

Commit 985ca0e

Browse files
Thieu LeTyler Hicks
authored andcommitted
ecryptfs: Make inode bdi consistent with superblock bdi
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>
1 parent b2987a5 commit 985ca0e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/ecryptfs/inode.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ static int ecryptfs_inode_set(struct inode *inode, void *opaque)
6969
inode->i_ino = lower_inode->i_ino;
7070
inode->i_version++;
7171
inode->i_mapping->a_ops = &ecryptfs_aops;
72+
inode->i_mapping->backing_dev_info = inode->i_sb->s_bdi;
7273

7374
if (S_ISLNK(inode->i_mode))
7475
inode->i_op = &ecryptfs_symlink_iops;

0 commit comments

Comments
 (0)