diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2017-09-22 09:29:19 -0400 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2017-09-25 13:33:18 -0400 |
commit | 9b7c2ddb453e0c8c7529b562e7581d99e970b8b4 (patch) | |
tree | f6783502258376438efbc6b0fc7f837801decc72 /fs | |
parent | 20cdc1931ee8e03ce3a26061ff14a05a3f8cbe78 (diff) |
gfs2: Update ctime in setflags ioctl
The FS_IOC_SETFLAGS ioctl is supposed to update the inode ctime.
Fixes xfstests generic/277.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/gfs2/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index 33a0cb5701a3..c7a904a8fbb4 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c | |||
@@ -271,6 +271,7 @@ static int do_gfs2_set_flags(struct file *filp, u32 reqflags, u32 mask) | |||
271 | error = gfs2_meta_inode_buffer(ip, &bh); | 271 | error = gfs2_meta_inode_buffer(ip, &bh); |
272 | if (error) | 272 | if (error) |
273 | goto out_trans_end; | 273 | goto out_trans_end; |
274 | inode->i_ctime = current_time(inode); | ||
274 | gfs2_trans_add_meta(ip->i_gl, bh); | 275 | gfs2_trans_add_meta(ip->i_gl, bh); |
275 | ip->i_diskflags = new_flags; | 276 | ip->i_diskflags = new_flags; |
276 | gfs2_dinode_out(ip, bh->b_data); | 277 | gfs2_dinode_out(ip, bh->b_data); |