Searched refs:dnode (Results 1 - 25 of 33) sorted by relevance

12

/freebsd-10.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Ddmu_zfetch.h37 struct dnode; /* so we can reference dnode */
59 struct dnode *zf_dnode; /* dnode that owns this zfetch */
67 void dmu_zfetch_init(zfetch_t *, struct dnode *);
H A Ddbuf.h79 struct dnode;
153 * handle to safely access the dnode we belong to (NULL when evicted)
158 * our parent buffer; if the dnode points to us directly,
242 uint64_t dbuf_whichblock(struct dnode *di, uint64_t offset);
244 dmu_buf_impl_t *dbuf_create_tlib(struct dnode *dn, char *data);
245 void dbuf_create_bonus(struct dnode *dn);
247 void dbuf_spill_hold(struct dnode *dn, dmu_buf_impl_t **dbp, void *tag);
249 void dbuf_rm_spill(struct dnode *dn, dmu_tx_t *tx);
251 dmu_buf_impl_t *dbuf_hold(struct dnode *dn, uint64_t blkid, void *tag);
252 dmu_buf_impl_t *dbuf_hold_level(struct dnode *d
[all...]
H A Ddmu_tx.h44 struct dnode;
89 struct dnode *txh_dnode;
H A Ddmu_impl.h36 #include <sys/dnode.h>
82 * protects structure of dnode (eg. nlevels)
H A Ddmu.h63 struct dnode;
316 * available is (0, DN_MAX_OBJECT). Object 0 is the meta-dnode.
383 * Set the checksum property on a dnode. The new checksum algorithm will
390 * Set the compress property on a dnode. The new compression algorithm will
403 void dmu_write_policy(objset_t *os, struct dnode *dn, int level, int wp,
429 int dmu_spill_hold_by_dnode(struct dnode *dn, uint32_t flags,
638 uint8_t doi_indirection; /* 2 = dnode->indirect->data */
671 /* Like dmu_object_info, but faster if you have a held dnode in hand. */
672 void dmu_object_info_from_dnode(struct dnode *dn, dmu_object_info_t *doi);
H A Ddmu_objset.h36 #include <sys/dnode.h>
H A Ddsl_pool.h34 #include <sys/dnode.h>
H A Ddnode.h62 #define DNODE_CORE_SIZE 64 /* 64 bytes for dnode sans blkptrs */
64 #define DN_MAX_OFFSET_SHIFT 64 /* 2^64 bytes in a dnode */
67 * dnode id flags
119 /* Does dnode have a SA spill blkptr in bonus? */
146 typedef struct dnode { struct
148 * Protects the structure of the dnode, including the number of levels
165 * context (eg. even before the dnode is first synced).
177 uint8_t dn_moved; /* Has this dnode been moved? */
235 * Adds a level of indirection between the dbuf and the dnode to avoid
/freebsd-10.0-release/sys/boot/zfs/
H A Dzfsimpl.c1186 dnode_read(const spa_t *spa, const dnode_phys_t *dnode, off_t offset, void *buf, size_t buflen) argument
1188 int ibshift = dnode->dn_indblkshift - SPA_BLKPTRSHIFT;
1189 int bsize = dnode->dn_datablkszsec << SPA_MINBLOCKSHIFT;
1190 int nlevels = dnode->dn_nlevels;
1204 if (bn > dnode->dn_maxblkid)
1207 if (dnode == dnode_cache_obj && bn == dnode_cache_bn)
1210 indbp = dnode->dn_blkptr;
1225 dnode_cache_obj = dnode;
1249 mzap_lookup(const dnode_phys_t *dnode, const char *name, uint64_t *value) argument
1260 size = dnode
1330 fzap_lookup(const spa_t *spa, const dnode_phys_t *dnode, const char *name, uint64_t *value) argument
1410 zap_lookup(const spa_t *spa, const dnode_phys_t *dnode, const char *name, uint64_t *value) argument
1434 mzap_list(const dnode_phys_t *dnode) argument
1464 fzap_list(const spa_t *spa, const dnode_phys_t *dnode) argument
1538 zap_list(const spa_t *spa, const dnode_phys_t *dnode) argument
1554 objset_get_dnode(const spa_t *spa, const objset_phys_t *os, uint64_t objnum, dnode_phys_t *dnode) argument
1564 mzap_rlookup(const spa_t *spa, const dnode_phys_t *dnode, char *name, uint64_t value) argument
1617 fzap_rlookup(const spa_t *spa, const dnode_phys_t *dnode, char *name, uint64_t value) argument
1665 zap_rlookup(const spa_t *spa, const dnode_phys_t *dnode, char *name, uint64_t value) argument
1990 zfs_lookup(const struct zfsmount *mount, const char *upath, dnode_phys_t *dnode) argument
[all...]
/freebsd-10.0-release/sys/fs/tmpfs/
H A Dtmpfs_vnops.c82 struct tmpfs_node *dnode; local
84 dnode = VP_TO_TMPFS_DIR(dvp);
93 MPASS(IMPLIES(dnode->tn_type == VDIR &&
94 dnode->tn_dir.tn_parent == dnode,
97 TMPFS_ASSERT_LOCKED(dnode);
98 if (dnode->tn_dir.tn_parent == NULL) {
109 error = tmpfs_alloc_vp(dvp->v_mount, dnode->tn_dir.tn_parent,
119 de = tmpfs_dir_lookup(dnode, NULL, cnp);
180 if ((dnode
537 struct tmpfs_node *dnode; local
1085 struct tmpfs_node *dnode; local
[all...]
H A Dtmpfs_subr.c669 struct tmpfs_node *dnode; local
677 dnode = VP_TO_TMPFS_DIR(dvp);
686 MPASS(dnode->tn_links <= LINK_MAX);
687 if (dnode->tn_links == LINK_MAX) {
692 parent = dnode;
699 dnode->tn_gid, vap->va_mode, parent, target, vap->va_rdev, &node);
734 tmpfs_dir_first(struct tmpfs_node *dnode, struct tmpfs_dir_cursor *dc) argument
738 de = RB_MIN(tmpfs_dir, &dnode->tn_dir.tn_dirhead);
748 tmpfs_dir_next(struct tmpfs_node *dnode, struct tmpfs_dir_cursor *dc) argument
759 &dnode
770 tmpfs_dir_xlookup_hash(struct tmpfs_node *dnode, uint32_t hash) argument
880 tmpfs_dir_attach_dup(struct tmpfs_node *dnode, struct tmpfs_dir_duphead *duphead, struct tmpfs_dirent *nde) argument
950 struct tmpfs_node *dnode; local
1000 struct tmpfs_node *dnode; local
1036 tmpfs_dir_destroy(struct tmpfs_mount *tmp, struct tmpfs_node *dnode) argument
[all...]
/freebsd-10.0-release/sys/cddl/contrib/opensolaris/uts/common/
H A DMakefile.files47 dnode.o \
/freebsd-10.0-release/sys/boot/i386/zfsboot/
H A Dzfsboot.c154 * Read from a dnode (which must be from a ZPL filesystem).
157 zfs_read(spa_t *spa, const dnode_phys_t *dnode, off_t *offp, void *start, size_t size) argument
159 const znode_phys_t *zp = (const znode_phys_t *) dnode->dn_bonus;
167 rc = dnode_read(spa, dnode, *offp, start, n);
216 xfsread(const dnode_phys_t *dnode, off_t *offp, void *buf, size_t nbyte) argument
218 if ((size_t)zfs_read(spa, dnode, offp, buf, nbyte) != nbyte) {
/freebsd-10.0-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Ddmu_object.c29 #include <sys/dnode.h>
139 * contents before we can change this type of metadata in the dnode.
H A Dbptree.c35 #include <sys/dnode.h>
H A Ddmu_diff.c30 #include <sys/dnode.h>
H A Ddmu_traverse.c32 #include <sys/dnode.h>
H A Ddmu_zfetch.c27 #include <sys/dnode.h>
274 * This takes a pointer to a zfetch structure and a dnode. It performs the
276 * associated dnode.
316 * upon the supplied dnode, blockid, and nblks. This is used so that we can
H A Dsa.c37 #include <sys/dnode.h>
42 #include <sys/dnode.h>
50 * to be stored in a dnode. The data will be stored in the bonus buffer of
51 * the dnode and if necessary a special "spill" block will be used to handle
1599 * If dnode had a spill buffer then those attributes will be
H A Ddnode_sync.c29 #include <sys/dnode.h>
48 /* this dnode can't be paged out because it's dirty */
60 /* check for existing blkptrs in the dnode */
65 /* transfer dnode's block pointers to new indirect block */
373 * Try to kick all the dnode's dbufs out of the cache...
521 * Now that we've released our hold, the dnode may
527 * Write out the dnode's dirty buffers.
563 /* The dnode is newly allocated or reallocated */
695 * Although we have dropped our reference to the dnode, it
697 * initiated the IO for the dnode'
[all...]
H A Ddsl_pool.c33 #include <sys/dnode.h>
H A Ddmu_tx.c42 typedef void (*dmu_tx_hold_func_t)(dmu_tx_t *tx, struct dnode *dn,
833 /* XXX No checking on the meta dnode for now */
956 * before processing the dnode holds, due to the
1040 * associated dnode, and notifying waiters if the refcount drops to 0.
H A Ddmu.c32 #include <sys/dnode.h>
71 { DMU_BSWAP_DNODE, TRUE, "DMU dnode" },
123 { dnode_buf_byteswap, "dnode" },
270 /* as long as the bonus buf is held, the dnode will be held */
279 * a dnode hold for every dbuf.
295 * doesn't already exist on the dnode.
369 * to take a held dnode rather than <os, object> -- the lookup is wasteful,
545 * XXX - Note, if the dnode for the requested object is not
1773 /* add 1 for dnode space */
/freebsd-10.0-release/sys/fs/nandfs/
H A Dnandfs_vnops.c1275 struct nandfs_node *dnode = VTON(dvp); local
1277 uint64_t file_size = dnode->nn_inode.i_size;
1278 uint64_t blockcount = dnode->nn_inode.i_blocks;
1280 uint32_t blocksize = dnode->nn_nandfsdev->nd_blocksize;
1294 error = nandfs_bread(dnode, blocknr, NOCRED, 0, &bp);
1322 KASSERT(dirent->inode == dnode->nn_ino,
1432 struct nandfs_node *dnode = VTON(dvp); local
1444 (dnode->nn_inode.i_flags & APPEND))
1968 struct nandfs_node *node, *dnode; local
1973 dnode
[all...]
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/zinject/
H A Dtranslate.c45 #include <sys/dnode.h>
225 * If this is a request to inject faults into the dnode, then we
228 * kind of range with type 'dnode' is illegal.
232 "type is 'dnode'\n");
243 * Get the dnode associated with object, so we can calculate the block
258 (void) fprintf(stderr, "failed to hold dnode "

Completed in 306 milliseconds

12