]> granicus.if.org Git - zfs/commit
Add missing checks to zpl_xattr_* functions
authorJohn Gallagher <jgallag88@gmail.com>
Thu, 2 Aug 2018 21:03:56 +0000 (14:03 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 2 Aug 2018 21:03:56 +0000 (14:03 -0700)
commit499b5497cbc62a4db35227bc98c6244454dfab4c
tree1c99c8fb899c10fba9ba6a6028b644c0e061df6b
parent010d12474cb1572c0c9b729615fa45cf43f59d14
Add missing checks to zpl_xattr_* functions

Linux specific zpl_* entry points, such as xattrs, must include
the same unmounted and sa handle checks as the common zfs_ entry
points. The additional ZPL_* wrappers are identical to their
ZFS_ counterparts except the errno is negated since they are
expected to be used at the zpl_ layer.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: John Gallagher <john.gallagher@delphix.com>
Closes #5866
Closes #7761
include/sys/zfs_znode.h
module/zfs/zpl_xattr.c