From: Andreas Gruenbacher Date: Fri, 22 Sep 2017 13:29:19 +0000 (-0500) Subject: gfs2: Update ctime in setflags ioctl X-Git-Tag: rel_imx_4.19.35_1.1.0~11315^2~14 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=9b7c2ddb453e0c8c7529b562e7581d99e970b8b4;p=linux.git 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 Signed-off-by: Bob Peterson --- 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) error = gfs2_meta_inode_buffer(ip, &bh); if (error) goto out_trans_end; + inode->i_ctime = current_time(inode); gfs2_trans_add_meta(ip->i_gl, bh); ip->i_diskflags = new_flags; gfs2_dinode_out(ip, bh->b_data);