From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Price Date: Wed, 12 Nov 2014 17:24:05 +0000 Subject: [Cluster-devel] [PATCH 3/3] gfs2: Update timestamps on fallocate In-Reply-To: <1415813045-6555-1-git-send-email-anprice@redhat.com> References: <1415813045-6555-1-git-send-email-anprice@redhat.com> Message-ID: <1415813045-6555-3-git-send-email-anprice@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 --- fs/gfs2/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index b6d91bc..5b673cc 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c @@ -873,7 +873,8 @@ retry: if (!(mode & FALLOC_FL_KEEP_SIZE) && (pos + count) > inode->i_size) { i_size_write(inode, pos + count); - mark_inode_dirty(inode); + /* Marks the inode as dirty */ + file_update_time(file); } return generic_write_sync(file, pos, count); -- 1.9.3