From: Darrick J. Wong <djwong@xxxxxxxxxx> In iomap mode, the fuse kernel driver is in charge of updating file attributes, so we need to update ctime after an ACL change. Signed-off-by: "Darrick J. Wong" <djwong@xxxxxxxxxx> --- fs/fuse/acl.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/fs/fuse/acl.c b/fs/fuse/acl.c index 4f37390e3f3ce7..efab333415131c 100644 --- a/fs/fuse/acl.c +++ b/fs/fuse/acl.c @@ -169,10 +169,24 @@ int fuse_set_acl(struct mnt_idmap *idmap, struct dentry *dentry, ret = 0; } - /* If we scheduled a mode update above, push that to userspace now. */ if (!ret) { struct iattr attr = { }; + /* + * When we're running in iomap mode, we need to update mode and + * ctime ourselves instead of letting the fuse server figure + * that out. + */ + if (fuse_has_iomap(inode)) { + attr.ia_valid |= ATTR_CTIME; + inode_set_ctime_current(inode); + attr.ia_ctime = inode_get_ctime(inode); + } + + /* + * If we scheduled a mode update above, push that to userspace + * now. + */ if (mode != inode->i_mode) { attr.ia_valid |= ATTR_MODE; attr.ia_mode = mode;