summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThieu Le <thieule@chromium.org>2011-07-26 16:15:10 -0700
committerJonas ABERG <jonas.aberg@stericsson.com>2011-10-28 11:13:46 +0200
commit0980bf907ce7d952aaba50436be93fded44a2da6 (patch)
tree9c3d02dcf0a1380b1f3c5f68a769991338a07c33
parent54ce69c7b1fbed11a0b4c8f9cd177f8d59c1dbc9 (diff)
ecryptfs: Make inode bdi consistent with superblock bdi
commit 985ca0e626e195ea08a1a82b8dbeb6719747429a upstream. 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> Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I5c01b190e10507f641d7ff0c5c6fc76b4e4d859c Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35651 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
-rw-r--r--fs/ecryptfs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c
index 7349ade17de..4a4fad7fb85 100644
--- a/fs/ecryptfs/inode.c
+++ b/fs/ecryptfs/inode.c
@@ -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;