]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: fallocate: do not rely on file_update_time to mark the inode dirty
authorAndrew Price <anprice@redhat.com>
Tue, 22 Sep 2015 12:41:21 +0000 (07:41 -0500)
committerBob Peterson <rpeterso@redhat.com>
Tue, 22 Sep 2015 12:41:46 +0000 (07:41 -0500)
commit20847399398e8c03f7c10b6d386e709bcb64d2d9
tree182786b5c4e375ff47426d255d0e53cd20895951
parent48fdd7874f07dfb3a661edca7ea1d4807bb4ccb0
GFS2: fallocate: do not rely on file_update_time to mark the inode dirty

Previously __gfs2_fallocate() relied on file_update_time() marking the
inode dirty, but that's not a safe assumption as that function doesn't
dirty the inode in some cases. Mark the inode dirty explicitly.

Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/file.c