Lines Matching defs:zp

211 	znode_t *zp = ITOZ(xf->dentry->d_inode);
215 mutex_enter(&zp->z_lock);
216 if (zp->z_xattr_cached == NULL)
217 error = -zfs_sa_get_xattr(zp);
218 mutex_exit(&zp->z_lock);
223 ASSERT(zp->z_xattr_cached);
225 while ((nvp = nvlist_next_nvpair(zp->z_xattr_cached, nvp)) != NULL) {
240 znode_t *zp = ITOZ(dentry->d_inode);
241 zfsvfs_t *zfsvfs = ZTOZSB(zp);
249 if ((error = zpl_enter_verify_zp(zfsvfs, zp, FTAG)) != 0)
251 rw_enter(&zp->z_xattr_lock, RW_READER);
253 if (zfsvfs->z_use_sa && zp->z_is_sa) {
266 rw_exit(&zp->z_xattr_lock);
333 znode_t *zp = ITOZ(ip);
338 ASSERT(RW_LOCK_HELD(&zp->z_xattr_lock));
340 mutex_enter(&zp->z_lock);
341 if (zp->z_xattr_cached == NULL)
342 error = -zfs_sa_get_xattr(zp);
343 mutex_exit(&zp->z_lock);
348 ASSERT(zp->z_xattr_cached);
349 error = -nvlist_lookup_byte_array(zp->z_xattr_cached, name,
369 znode_t *zp = ITOZ(ip);
370 zfsvfs_t *zfsvfs = ZTOZSB(zp);
373 ASSERT(RW_LOCK_HELD(&zp->z_xattr_lock));
375 if (zfsvfs->z_use_sa && zp->z_is_sa) {
396 znode_t *zp = ITOZ(ip);
397 zfsvfs_t *zfsvfs = ZTOZSB(zp);
401 ASSERT(RW_LOCK_HELD(&zp->z_xattr_lock));
404 if (zfsvfs->z_use_sa && zp->z_is_sa) {
431 znode_t *zp = ITOZ(ip);
432 zfsvfs_t *zfsvfs = ZTOZSB(zp);
439 if ((error = zpl_enter_verify_zp(zfsvfs, zp, FTAG)) != 0)
441 rw_enter(&zp->z_xattr_lock, RW_READER);
443 rw_exit(&zp->z_xattr_lock);
541 znode_t *zp = ITOZ(ip);
546 mutex_enter(&zp->z_lock);
547 if (zp->z_xattr_cached == NULL)
548 error = -zfs_sa_get_xattr(zp);
549 mutex_exit(&zp->z_lock);
554 ASSERT(zp->z_xattr_cached);
555 nvl = zp->z_xattr_cached;
584 error = -zfs_sa_set_xattr(zp, name, value, size);
588 zp->z_xattr_cached = NULL;
600 znode_t *zp = ITOZ(ip);
601 zfsvfs_t *zfsvfs = ZTOZSB(zp);
609 if ((error = zpl_enter_verify_zp(zfsvfs, zp, FTAG)) != 0)
611 rw_enter(&zp->z_xattr_lock, RW_WRITER);
641 if (zfsvfs->z_use_sa && zp->z_is_sa &&
662 rw_exit(&zp->z_xattr_lock);