Files
linux/fs/btrfs
Filipe Manana d2db6cfbc5 Btrfs: add missing inode version, ctime and mtime updates when punching hole
commit 179006688a upstream.

If the range for which we are punching a hole covers only part of a page,
we end up updating the inode item but we skip the update of the inode's
iversion, mtime and ctime. Fix that by ensuring we update those properties
of the inode.

A patch for fstests test case generic/059 that tests this as been sent
along with this fix.

Fixes: 2aaa665581 ("Btrfs: add hole punching")
Fixes: e8c1c76e80 ("Btrfs: add missing inode update when punching hole")
CC: stable@vger.kernel.org # 4.4+
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-04 09:33:29 +02:00
..
2018-12-08 13:05:12 +01:00
2016-09-26 18:08:44 +02:00
2015-10-06 06:55:23 -07:00
2008-09-25 11:04:06 -04:00
2016-07-26 13:52:25 +02:00
2016-08-03 14:08:37 -07:00
2016-09-26 18:08:44 +02:00