From: Miklos S. <mi...@sz...> - 2013-08-29 10:37:52
|
On Fri, Aug 23, 2013 at 3:13 PM, Brian Foster <bf...@re...> wrote: > On 08/20/2013 02:21 AM, Anand Avati wrote: >> Calls like setxattr and removexattr result in updation of ctime. >> Therefore invalidate inode attributes to force a refresh. >> >> Signed-off-by: Anand Avati <av...@re...> >> --- > > Reviewed-by: Brian Foster <bf...@re...> Applied, thanks. Miklos > >> fs/fuse/dir.c | 4 ++++ >> 1 files changed, 4 insertions(+), 0 deletions(-) >> >> diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c >> index 72a5d5b..c49b8c7 100644 >> --- a/fs/fuse/dir.c >> +++ b/fs/fuse/dir.c >> @@ -1749,6 +1749,8 @@ static int fuse_setxattr(struct dentry *entry, const char *name, >> fc->no_setxattr = 1; >> err = -EOPNOTSUPP; >> } >> + if (!err) >> + fuse_invalidate_attr(inode); >> return err; >> } >> >> @@ -1878,6 +1880,8 @@ static int fuse_removexattr(struct dentry *entry, const char *name) >> fc->no_removexattr = 1; >> err = -EOPNOTSUPP; >> } >> + if (!err) >> + fuse_invalidate_attr(inode); >> return err; >> } >> >> > |