summaryrefslogtreecommitdiffstats
path: root/fs/ecryptfs
diff options
context:
space:
mode:
authorThieu Le <thieule@chromium.org>2011-07-26 16:15:10 -0700
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>2011-07-28 23:48:26 -0500
commit985ca0e626e195ea08a1a82b8dbeb6719747429a (patch)
tree8c7978767a72ea80641ee0439e6f21aad1ae7ad6 /fs/ecryptfs
parentb2987a5e05ec7a1af7ca42e5d5349d7a22753031 (diff)
downloadop-kernel-dev-985ca0e626e195ea08a1a82b8dbeb6719747429a.zip
op-kernel-dev-985ca0e626e195ea08a1a82b8dbeb6719747429a.tar.gz
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>
Diffstat (limited to 'fs/ecryptfs')
-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 340c657..11f8582 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;
OpenPOWER on IntegriCloud