summaryrefslogtreecommitdiff
path: root/Documentation/platform
diff options
context:
space:
mode:
authoryangerkun <yangerkun@huawei.com>2019-02-11 08:05:24 +0300
committerTheodore Ts'o <tytso@mit.edu>2019-02-11 08:05:24 +0300
commita46c68a318b08f819047843abf349aeee5d10ac2 (patch)
tree5514fcd695413fddddab5f833827b0e6eec17002 /Documentation/platform
parent67a11611e1a5211f6569044fbf8150875764d1d0 (diff)
downloadlinux-a46c68a318b08f819047843abf349aeee5d10ac2.tar.xz
ext4: cleanup pagecache before swap i_data
While do swap, we should make sure there has no new dirty page since we should swap i_data between two inode: 1.We should lock i_mmap_sem with write to avoid new pagecache from mmap read/write; 2.Change filemap_flush to filemap_write_and_wait and move them to the space protected by inode lock to avoid new pagecache from buffer read/write. Signed-off-by: yangerkun <yangerkun@huawei.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: stable@kernel.org
Diffstat (limited to 'Documentation/platform')
0 files changed, 0 insertions, 0 deletions