Lines Matching refs:dnode
146 static int zap_lookup(const spa_t *spa, const dnode_phys_t *dnode,
2337 dnode_read(const spa_t *spa, const dnode_phys_t *dnode, off_t offset, in dnode_read() argument
2340 int ibshift = dnode->dn_indblkshift - SPA_BLKPTRSHIFT; in dnode_read()
2341 int bsize = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT; in dnode_read()
2342 int nlevels = dnode->dn_nlevels; in dnode_read()
2356 if (dnode->dn_maxblkid == 0) { in dnode_read()
2375 if (bn > dnode->dn_maxblkid) { in dnode_read()
2378 (unsigned long long)dnode->dn_maxblkid); in dnode_read()
2385 if (dnode == dnode_cache_obj && bn == dnode_cache_bn) in dnode_read()
2388 indbp = dnode->dn_blkptr; in dnode_read()
2407 dnode_cache_obj = dnode; in dnode_read()
2713 fzap_lookup(const spa_t *spa, const dnode_phys_t *dnode, zap_phys_t *zh, in fzap_lookup() argument
2717 int bsize = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT; in fzap_lookup()
2732 z.zap_dnode = dnode; in fzap_lookup()
2749 zap_lookup(const spa_t *spa, const dnode_phys_t *dnode, const char *name, in zap_lookup() argument
2754 size_t size = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT; in zap_lookup()
2760 rc = dnode_read(spa, dnode, 0, zap, size); in zap_lookup()
2769 rc = fzap_lookup(spa, dnode, zap, name, integer_size, in zap_lookup()
2814 fzap_list(const spa_t *spa, const dnode_phys_t *dnode, zap_phys_t *zh, in fzap_list() argument
2817 int bsize = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT; in fzap_list()
2842 if (dnode_read(spa, dnode, off, zl.l_phys, bsize)) { in fzap_list()
2905 zap_list(const spa_t *spa, const dnode_phys_t *dnode) in zap_list() argument
2908 size_t size = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT; in zap_list()
2915 rc = dnode_read(spa, dnode, 0, zap, size); in zap_list()
2921 rc = fzap_list(spa, dnode, zap, zfs_printf); in zap_list()
2929 dnode_phys_t *dnode) in objset_get_dnode() argument
2935 dnode, sizeof (dnode_phys_t))); in objset_get_dnode()
2989 fzap_rlookup(const spa_t *spa, const dnode_phys_t *dnode, zap_phys_t *zh, in fzap_rlookup() argument
2992 int bsize = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT; in fzap_rlookup()
3016 rc = dnode_read(spa, dnode, off, zl.l_phys, bsize); in fzap_rlookup()
3044 zap_rlookup(const spa_t *spa, const dnode_phys_t *dnode, char *name, in zap_rlookup() argument
3048 size_t size = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT; in zap_rlookup()
3055 rc = dnode_read(spa, dnode, 0, zap, size); in zap_rlookup()
3061 rc = fzap_rlookup(spa, dnode, zap, name, value); in zap_rlookup()
3643 zfs_lookup(const struct zfsmount *mnt, const char *upath, dnode_phys_t *dnode) in zfs_lookup() argument
3800 *dnode = dn; in zfs_lookup()