Lines Matching refs:dp

52 #define	xfs_dir3_leaf_check(dp, bp) \  argument
54 if (!xfs_dir3_leaf1_check((dp), (bp))) \
60 struct xfs_inode *dp, in xfs_dir3_leaf1_check() argument
66 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leaf1_check()
75 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leaf1_check()
78 #define xfs_dir3_leaf_check(dp, bp) argument
84 struct xfs_inode *dp, in xfs_dir3_leaf_check_int() argument
100 ops = xfs_dir_get_ops(mp, dp); in xfs_dir3_leaf_check_int()
257 struct xfs_inode *dp, in xfs_dir3_leaf_read() argument
264 err = xfs_da_read_buf(tp, dp, fbno, mappedbno, bpp, in xfs_dir3_leaf_read()
274 struct xfs_inode *dp, in xfs_dir3_leafn_read() argument
281 err = xfs_da_read_buf(tp, dp, fbno, mappedbno, bpp, in xfs_dir3_leafn_read()
343 struct xfs_inode *dp = args->dp; in xfs_dir3_leaf_get_buf() local
345 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_leaf_get_buf()
353 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, bno), in xfs_dir3_leaf_get_buf()
358 xfs_dir3_leaf_init(mp, tp, bp, dp->i_ino, magic); in xfs_dir3_leaf_get_buf()
379 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_block_to_leaf() local
394 dp = args->dp; in xfs_dir2_block_to_leaf()
415 xfs_dir3_data_check(dp, dbp); in xfs_dir2_block_to_leaf()
418 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_block_to_leaf()
419 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_block_to_leaf()
424 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_block_to_leaf()
427 dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_block_to_leaf()
458 xfs_dir2_data_freescan(dp, hdr, &needlog); in xfs_dir2_block_to_leaf()
471 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_block_to_leaf()
472 xfs_dir3_data_check(dp, dbp); in xfs_dir2_block_to_leaf()
610 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_addname() local
637 dp = args->dp; in xfs_dir2_leaf_addname()
640 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); in xfs_dir2_leaf_addname()
653 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_addname()
654 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_addname()
656 length = dp->d_ops->data_entsize(args->namelen); in xfs_dir2_leaf_addname()
819 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_leaf_addname()
827 error = xfs_dir3_data_read(tp, dp, in xfs_dir2_leaf_addname()
835 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_leaf_addname()
858 dp->d_ops->data_put_ftype(dep, args->filetype); in xfs_dir2_leaf_addname()
859 tagp = dp->d_ops->data_entry_tag_p(dep); in xfs_dir2_leaf_addname()
865 xfs_dir2_data_freescan(dp, hdr, &needlog); in xfs_dir2_leaf_addname()
895 dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_leaf_addname()
898 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_addname()
899 xfs_dir3_data_check(dp, dbp); in xfs_dir2_leaf_addname()
918 struct xfs_inode *dp = args->dp; in xfs_dir3_leaf_compact() local
927 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir3_leaf_compact()
948 dp->d_ops->leaf_hdr_to_disk(leaf, leafhdr); in xfs_dir3_leaf_compact()
1094 ents = args->dp->d_ops->leaf_ents_p(leaf); in xfs_dir3_leaf_log_ents()
1119 args->dp->d_ops->leaf_hdr_size - 1); in xfs_dir3_leaf_log_header()
1154 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_lookup() local
1172 dp = args->dp; in xfs_dir2_leaf_lookup()
1173 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup()
1175 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_lookup()
1191 args->filetype = dp->d_ops->data_get_ftype(dep); in xfs_dir2_leaf_lookup()
1214 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_lookup_int() local
1228 dp = args->dp; in xfs_dir2_leaf_lookup_int()
1230 mp = dp->i_mount; in xfs_dir2_leaf_lookup_int()
1232 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); in xfs_dir2_leaf_lookup_int()
1238 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup_int()
1239 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_lookup_int()
1240 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_lookup_int()
1270 error = xfs_dir3_data_read(tp, dp, in xfs_dir2_leaf_lookup_int()
1312 error = xfs_dir3_data_read(tp, dp, in xfs_dir2_leaf_lookup_int()
1345 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_removename() local
1368 dp = args->dp; in xfs_dir2_leaf_removename()
1371 xfs_dir3_data_check(dp, dbp); in xfs_dir2_leaf_removename()
1372 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_leaf_removename()
1373 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_removename()
1374 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_removename()
1392 dp->d_ops->data_entsize(dep->namelen), &needlog, &needscan); in xfs_dir2_leaf_removename()
1397 dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_leaf_removename()
1408 xfs_dir2_data_freescan(dp, hdr, &needlog); in xfs_dir2_leaf_removename()
1419 xfs_dir3_data_check(dp, dbp); in xfs_dir2_leaf_removename()
1424 args->geo->blksize - dp->d_ops->data_entry_offset) { in xfs_dir2_leaf_removename()
1435 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1470 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1486 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_replace() local
1503 dp = args->dp; in xfs_dir2_leaf_replace()
1505 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_replace()
1521 dp->d_ops->data_put_ftype(dep, args->filetype); in xfs_dir2_leaf_replace()
1524 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_replace()
1550 ents = args->dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_search_hash()
1551 args->dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_search_hash()
1596 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_trim_data() local
1602 dp = args->dp; in xfs_dir2_leaf_trim_data()
1607 error = xfs_dir3_data_read(tp, dp, xfs_dir2_db_to_da(args->geo, db), in xfs_dir2_leaf_trim_data()
1618 struct xfs_dir2_data_free *bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_leaf_trim_data()
1623 args->geo->blksize - dp->d_ops->data_entry_offset); in xfs_dir2_leaf_trim_data()
1677 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_node_to_leaf() local
1702 dp = args->dp; in xfs_dir2_node_to_leaf()
1707 if ((error = xfs_bmap_last_offset(dp, &fo, XFS_DATA_FORK))) { in xfs_dir2_node_to_leaf()
1729 if ((error = xfs_bmap_last_before(tp, dp, &fo, XFS_DATA_FORK))) { in xfs_dir2_node_to_leaf()
1739 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_node_to_leaf()
1747 error = xfs_dir2_free_read(tp, dp, args->geo->freeblk, &fbp); in xfs_dir2_node_to_leaf()
1751 dp->d_ops->free_hdr_from_disk(&freehdr, free); in xfs_dir2_node_to_leaf()
1785 memcpy(xfs_dir2_leaf_bests_p(ltp), dp->d_ops->free_bests_p(free), in xfs_dir2_node_to_leaf()
1788 dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_node_to_leaf()
1792 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_node_to_leaf()