projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2987a5
)
ecryptfs: Make inode bdi consistent with superblock bdi
author
Thieu Le
<thieule@chromium.org>
Tue, 26 Jul 2011 23:15:10 +0000
(16:15 -0700)
committer
Tyler Hicks
<tyhicks@linux.vnet.ibm.com>
Fri, 29 Jul 2011 04:48:26 +0000
(23:48 -0500)
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>
fs/ecryptfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ecryptfs/inode.c
b/fs/ecryptfs/inode.c
index 340c657a108c5892f2453e8d6c7e923a14a37cf2..11f8582d72186d679d2452d9ce71e85f277bdbf9 100644
(file)
--- 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;