diff options
author | Anand Avati <avati@redhat.com> | 2013-08-20 02:21:07 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 17:15:52 -0700 |
commit | b6a40685765b7ce6f31244a80a5c5a936b29da32 (patch) | |
tree | c32e39b038ec197b934d81b4a841c5348def763d /fs | |
parent | ec00ecafdc391afb652c4115afb73085aa4decd3 (diff) |
fuse: invalidate inode attributes on xattr modification
commit d331a415aef98717393dda0be69b7947da08eba3 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | 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 d48478a864b..373b25145e0 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c @@ -1503,6 +1503,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; } @@ -1632,6 +1634,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; } |