]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ext4: truncate_inode_pages() in orphan cleanup path
authorLukas Czerner <lczerner@redhat.com>
Tue, 28 May 2013 03:32:35 +0000 (23:32 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 28 May 2013 03:32:35 +0000 (23:32 -0400)
commit55f252c9f50e998f6bc3aadc7806f049f7443d21
tree254070ad55a2e1011a11aa4ca0dbd0762354cced
parenteb3544c6fc6642c9037817980d8a9dc9df44aa45
ext4: truncate_inode_pages() in orphan cleanup path

Currently we do not tell mm to zero out tail of the page before truncate
in orphan_cleanup(). This is ok, because the page should not be
uptodate, however this may eventually change and I might cause problems.

Call truncate_inode_pages() as precautionary measure. Thanks Jan Kara
for pointing this out.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c