Lines Matching defs:zp
213 znode_t *zp = ITOZ(xf->dentry->d_inode);
217 mutex_enter(&zp->z_lock);
218 if (zp->z_xattr_cached == NULL)
219 error = -zfs_sa_get_xattr(zp);
220 mutex_exit(&zp->z_lock);
225 ASSERT(zp->z_xattr_cached);
227 while ((nvp = nvlist_next_nvpair(zp->z_xattr_cached, nvp)) != NULL) {
242 znode_t *zp = ITOZ(dentry->d_inode);
243 zfsvfs_t *zfsvfs = ZTOZSB(zp);
251 if ((error = zpl_enter_verify_zp(zfsvfs, zp, FTAG)) != 0)
253 rw_enter(&zp->z_xattr_lock, RW_READER);
255 if (zfsvfs->z_use_sa && zp->z_is_sa) {
268 rw_exit(&zp->z_xattr_lock);
335 znode_t *zp = ITOZ(ip);
340 ASSERT(RW_LOCK_HELD(&zp->z_xattr_lock));
342 mutex_enter(&zp->z_lock);
343 if (zp->z_xattr_cached == NULL)
344 error = -zfs_sa_get_xattr(zp);
345 mutex_exit(&zp->z_lock);
350 ASSERT(zp->z_xattr_cached);
351 error = -nvlist_lookup_byte_array(zp->z_xattr_cached, name,
371 znode_t *zp = ITOZ(ip);
372 zfsvfs_t *zfsvfs = ZTOZSB(zp);
375 ASSERT(RW_LOCK_HELD(&zp->z_xattr_lock));
377 if (zfsvfs->z_use_sa && zp->z_is_sa) {
398 znode_t *zp = ITOZ(ip);
399 zfsvfs_t *zfsvfs = ZTOZSB(zp);
403 ASSERT(RW_LOCK_HELD(&zp->z_xattr_lock));
406 if (zfsvfs->z_use_sa && zp->z_is_sa) {
433 znode_t *zp = ITOZ(ip);
434 zfsvfs_t *zfsvfs = ZTOZSB(zp);
441 if ((error = zpl_enter_verify_zp(zfsvfs, zp, FTAG)) != 0)
443 rw_enter(&zp->z_xattr_lock, RW_READER);
445 rw_exit(&zp->z_xattr_lock);
543 znode_t *zp = ITOZ(ip);
548 mutex_enter(&zp->z_lock);
549 if (zp->z_xattr_cached == NULL)
550 error = -zfs_sa_get_xattr(zp);
551 mutex_exit(&zp->z_lock);
556 ASSERT(zp->z_xattr_cached);
557 nvl = zp->z_xattr_cached;
586 error = -zfs_sa_set_xattr(zp, name, value, size);
590 zp->z_xattr_cached = NULL;
602 znode_t *zp = ITOZ(ip);
603 zfsvfs_t *zfsvfs = ZTOZSB(zp);
611 if ((error = zpl_enter_verify_zp(zfsvfs, zp, FTAG)) != 0)
613 rw_enter(&zp->z_xattr_lock, RW_WRITER);
643 if (zfsvfs->z_use_sa && zp->z_is_sa &&
664 rw_exit(&zp->z_xattr_lock);