projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20cdc19
)
gfs2: Update ctime in setflags ioctl
author
Andreas Gruenbacher
<agruenba@redhat.com>
Fri, 22 Sep 2017 13:29:19 +0000
(08:29 -0500)
committer
Bob Peterson
<rpeterso@redhat.com>
Mon, 25 Sep 2017 17:33:18 +0000
(12:33 -0500)
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>
fs/gfs2/file.c
patch
|
blob
|
history
diff --git
a/fs/gfs2/file.c
b/fs/gfs2/file.c
index 33a0cb5701a330623ded09e427f79d53d6cee4db..c7a904a8fbb452279639de710148ba08d29ead2c 100644
(file)
--- 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);