mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 14:43:16 +00:00
fuse: invalidate inode attributes on xattr modification
Calls like setxattr and removexattr result in updation of ctime. Therefore invalidate inode attributes to force a refresh. Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Cc: stable@vger.kernel.org
This commit is contained in:
parent
4a4ac4eba1
commit
d331a415ae
@ -1749,6 +1749,8 @@ static int fuse_setxattr(struct dentry *entry, const char *name,
|
|||||||
fc->no_setxattr = 1;
|
fc->no_setxattr = 1;
|
||||||
err = -EOPNOTSUPP;
|
err = -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
if (!err)
|
||||||
|
fuse_invalidate_attr(inode);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1878,6 +1880,8 @@ static int fuse_removexattr(struct dentry *entry, const char *name)
|
|||||||
fc->no_removexattr = 1;
|
fc->no_removexattr = 1;
|
||||||
err = -EOPNOTSUPP;
|
err = -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
if (!err)
|
||||||
|
fuse_invalidate_attr(inode);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user