summaryrefslogtreecommitdiffstats
path: root/lib/pci_iomap.c
diff options
context:
space:
mode:
authorLukas Czerner <lczerner@redhat.com>2018-05-13 19:28:35 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-03 11:18:43 +0200
commitf7eb9c228bda60f5ec48706fa64526fa34a034e7 (patch)
tree4294bfc5ddc127327e2cac1c6fd7f097351758b9 /lib/pci_iomap.c
parentc4005b74d9f68eda1fc83fbe0bd63c6b93fe020a (diff)
downloadlinux-stable-f7eb9c228bda60f5ec48706fa64526fa34a034e7.tar.gz
linux-stable-f7eb9c228bda60f5ec48706fa64526fa34a034e7.tar.bz2
linux-stable-f7eb9c228bda60f5ec48706fa64526fa34a034e7.zip
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 'lib/pci_iomap.c')
0 files changed, 0 insertions, 0 deletions