diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2016-04-13 22:30:17 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-04-23 19:41:30 (GMT) |
commit | 2cdeb1e472cf03dec4dc614623fd2e6bd8e5f271 (patch) | |
tree | 1a06b9392263f237d670f19bace3945107efd3a0 /fs/gfs2/xattr.c | |
parent | a26feccaba296bd0ae410eabce79cb3443c8a701 (diff) | |
download | linux-2cdeb1e472cf03dec4dc614623fd2e6bd8e5f271.tar.xz |
ceph: Switch to generic xattr handlers
Add a catch-all xattr handler at the end of ceph_xattr_handlers. Check
for valid attribute names there, and remove those checks from
__ceph_{get,set,remove}xattr instead. No "system.*" xattrs need to be
handled by the catch-all handler anymore.
The set xattr handler is called with a NULL value to indicate that the
attribute should be removed; __ceph_setxattr already handles that case
correctly (ceph_set_acl could already calling __ceph_setxattr with a NULL
value).
Move the check for snapshots from ceph_{set,remove}xattr into
__ceph_{set,remove}xattr. With that, ceph_{get,set,remove}xattr can be
replaced with the generic iops.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/gfs2/xattr.c')
0 files changed, 0 insertions, 0 deletions