Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d331a415 authored by Anand Avati's avatar Anand Avati Committed by Miklos Szeredi
Browse files

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: default avatarAnand Avati <avati@redhat.com>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
Cc: stable@vger.kernel.org
parent 4a4ac4eb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;
}