aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2018-05-13 19:28:35 -0400
committerMoyster <oysterized@gmail.com>2018-12-02 00:02:18 +0100
commit730f2d3517c7d3eb70d936a847c831d7a0e35d08 (patch)
treedd43fc34431c8f3797ec39d3ec058bed1e981f91 /kernel
parentbae3b8647efb3b63ac24f5fffad1ff8f906f7b01 (diff)
ext4: update mtime in ext4_punch_hole even if no blocks are released
commit eee597ac931305eff3d3fd1d61d6aae553bc0984 upstream. Currently in ext4_punch_hole we're going to skip the mtime update if there are no actual blocks to release. However we've actually modified the file by zeroing the partial block so the mtime should be updated. Moreover the sync and datasync handling is skipped as well, which is also wrong. Fix it. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reported-by: Joe Habermann <joe.habermann@quantum.com> Cc: <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions