]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.0.1/ecryptfs-make-inode-bdi-consistent-with-superblock-bdi.patch
Linux 4.9.167
[thirdparty/kernel/stable-queue.git] / releases / 3.0.1 / ecryptfs-make-inode-bdi-consistent-with-superblock-bdi.patch
1 From 985ca0e626e195ea08a1a82b8dbeb6719747429a Mon Sep 17 00:00:00 2001
2 From: Thieu Le <thieule@chromium.org>
3 Date: Tue, 26 Jul 2011 16:15:10 -0700
4 Subject: ecryptfs: Make inode bdi consistent with superblock bdi
5
6 From: Thieu Le <thieule@chromium.org>
7
8 commit 985ca0e626e195ea08a1a82b8dbeb6719747429a upstream.
9
10 Make the inode mapping bdi consistent with the superblock bdi so that
11 dirty pages are flushed properly.
12
13 Signed-off-by: Thieu Le <thieule@chromium.org>
14 Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16
17 ---
18 fs/ecryptfs/inode.c | 1 +
19 1 file changed, 1 insertion(+)
20
21 --- a/fs/ecryptfs/inode.c
22 +++ b/fs/ecryptfs/inode.c
23 @@ -69,6 +69,7 @@ static int ecryptfs_inode_set(struct ino
24 inode->i_ino = lower_inode->i_ino;
25 inode->i_version++;
26 inode->i_mapping->a_ops = &ecryptfs_aops;
27 + inode->i_mapping->backing_dev_info = inode->i_sb->s_bdi;
28
29 if (S_ISLNK(inode->i_mode))
30 inode->i_op = &ecryptfs_symlink_iops;