diff options
author | Andrew Price <anprice@redhat.com> | 2014-11-12 12:24:05 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2014-11-14 09:16:33 -0500 |
commit | 98f1a696a1b2f6cf0c1ce6850b1516beda9c1269 (patch) | |
tree | f0770e1b34e721676658cca3c1a4fa999bd1d325 /fs/gfs2 | |
parent | 1885867b84d58e3704ed175e0abac2f38889f34d (diff) |
GFS2: Update timestamps on fallocate
gfs2_fallocate() wasn't updating ctime and mtime when modifying the
inode. Add a call to file_update_time() to do that.
Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index 118216419cef..6e600abf694a 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c | |||
@@ -874,7 +874,8 @@ retry: | |||
874 | 874 | ||
875 | if (!(mode & FALLOC_FL_KEEP_SIZE) && (pos + count) > inode->i_size) { | 875 | if (!(mode & FALLOC_FL_KEEP_SIZE) && (pos + count) > inode->i_size) { |
876 | i_size_write(inode, pos + count); | 876 | i_size_write(inode, pos + count); |
877 | mark_inode_dirty(inode); | 877 | /* Marks the inode as dirty */ |
878 | file_update_time(file); | ||
878 | } | 879 | } |
879 | 880 | ||
880 | return generic_write_sync(file, pos, count); | 881 | return generic_write_sync(file, pos, count); |