Lines Matching refs:dp

53 #define	xfs_dir3_leaf_check(dp, bp) \  argument
55 if (!xfs_dir3_leaf1_check((dp), (bp))) \
61 struct xfs_inode *dp, in xfs_dir3_leaf1_check() argument
67 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir3_leaf1_check()
76 return xfs_dir3_leaf_check_int(dp->i_mount, dp, &leafhdr, leaf); in xfs_dir3_leaf1_check()
79 #define xfs_dir3_leaf_check(dp, bp) argument
85 struct xfs_inode *dp, in xfs_dir3_leaf_check_int() argument
101 ops = xfs_dir_get_ops(mp, dp); in xfs_dir3_leaf_check_int()
262 struct xfs_inode *dp, in xfs_dir3_leaf_read() argument
269 err = xfs_da_read_buf(tp, dp, fbno, mappedbno, bpp, in xfs_dir3_leaf_read()
279 struct xfs_inode *dp, in xfs_dir3_leafn_read() argument
286 err = xfs_da_read_buf(tp, dp, fbno, mappedbno, bpp, in xfs_dir3_leafn_read()
348 struct xfs_inode *dp = args->dp; in xfs_dir3_leaf_get_buf() local
350 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_leaf_get_buf()
358 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, bno), in xfs_dir3_leaf_get_buf()
363 xfs_dir3_leaf_init(mp, tp, bp, dp->i_ino, magic); in xfs_dir3_leaf_get_buf()
384 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_block_to_leaf() local
399 dp = args->dp; in xfs_dir2_block_to_leaf()
420 xfs_dir3_data_check(dp, dbp); in xfs_dir2_block_to_leaf()
423 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_block_to_leaf()
424 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_block_to_leaf()
429 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_block_to_leaf()
432 dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_block_to_leaf()
463 xfs_dir2_data_freescan(dp, hdr, &needlog); in xfs_dir2_block_to_leaf()
476 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_block_to_leaf()
477 xfs_dir3_data_check(dp, dbp); in xfs_dir2_block_to_leaf()
615 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_addname() local
642 dp = args->dp; in xfs_dir2_leaf_addname()
645 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); in xfs_dir2_leaf_addname()
658 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_addname()
659 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_addname()
661 length = dp->d_ops->data_entsize(args->namelen); in xfs_dir2_leaf_addname()
824 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_leaf_addname()
832 error = xfs_dir3_data_read(tp, dp, in xfs_dir2_leaf_addname()
840 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_leaf_addname()
863 dp->d_ops->data_put_ftype(dep, args->filetype); in xfs_dir2_leaf_addname()
864 tagp = dp->d_ops->data_entry_tag_p(dep); in xfs_dir2_leaf_addname()
870 xfs_dir2_data_freescan(dp, hdr, &needlog); in xfs_dir2_leaf_addname()
900 dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_leaf_addname()
903 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_addname()
904 xfs_dir3_data_check(dp, dbp); in xfs_dir2_leaf_addname()
923 struct xfs_inode *dp = args->dp; in xfs_dir3_leaf_compact() local
932 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir3_leaf_compact()
953 dp->d_ops->leaf_hdr_to_disk(leaf, leafhdr); in xfs_dir3_leaf_compact()
1099 ents = args->dp->d_ops->leaf_ents_p(leaf); in xfs_dir3_leaf_log_ents()
1124 args->dp->d_ops->leaf_hdr_size - 1); in xfs_dir3_leaf_log_header()
1159 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_lookup() local
1177 dp = args->dp; in xfs_dir2_leaf_lookup()
1178 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup()
1180 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_lookup()
1196 args->filetype = dp->d_ops->data_get_ftype(dep); in xfs_dir2_leaf_lookup()
1219 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_lookup_int() local
1233 dp = args->dp; in xfs_dir2_leaf_lookup_int()
1235 mp = dp->i_mount; in xfs_dir2_leaf_lookup_int()
1237 error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); in xfs_dir2_leaf_lookup_int()
1243 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_lookup_int()
1244 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_lookup_int()
1245 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_lookup_int()
1275 error = xfs_dir3_data_read(tp, dp, in xfs_dir2_leaf_lookup_int()
1317 error = xfs_dir3_data_read(tp, dp, in xfs_dir2_leaf_lookup_int()
1350 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_removename() local
1373 dp = args->dp; in xfs_dir2_leaf_removename()
1376 xfs_dir3_data_check(dp, dbp); in xfs_dir2_leaf_removename()
1377 bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_leaf_removename()
1378 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_removename()
1379 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_removename()
1397 dp->d_ops->data_entsize(dep->namelen), &needlog, &needscan); in xfs_dir2_leaf_removename()
1402 dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_leaf_removename()
1413 xfs_dir2_data_freescan(dp, hdr, &needlog); in xfs_dir2_leaf_removename()
1424 xfs_dir3_data_check(dp, dbp); in xfs_dir2_leaf_removename()
1429 args->geo->blksize - dp->d_ops->data_entry_offset) { in xfs_dir2_leaf_removename()
1440 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1475 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_removename()
1491 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_replace() local
1508 dp = args->dp; in xfs_dir2_leaf_replace()
1510 ents = dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_replace()
1526 dp->d_ops->data_put_ftype(dep, args->filetype); in xfs_dir2_leaf_replace()
1529 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_leaf_replace()
1555 ents = args->dp->d_ops->leaf_ents_p(leaf); in xfs_dir2_leaf_search_hash()
1556 args->dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_leaf_search_hash()
1601 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_trim_data() local
1607 dp = args->dp; in xfs_dir2_leaf_trim_data()
1612 error = xfs_dir3_data_read(tp, dp, xfs_dir2_db_to_da(args->geo, db), in xfs_dir2_leaf_trim_data()
1623 struct xfs_dir2_data_free *bf = dp->d_ops->data_bestfree_p(hdr); in xfs_dir2_leaf_trim_data()
1628 args->geo->blksize - dp->d_ops->data_entry_offset); in xfs_dir2_leaf_trim_data()
1682 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_node_to_leaf() local
1707 dp = args->dp; in xfs_dir2_node_to_leaf()
1712 if ((error = xfs_bmap_last_offset(dp, &fo, XFS_DATA_FORK))) { in xfs_dir2_node_to_leaf()
1734 if ((error = xfs_bmap_last_before(tp, dp, &fo, XFS_DATA_FORK))) { in xfs_dir2_node_to_leaf()
1744 dp->d_ops->leaf_hdr_from_disk(&leafhdr, leaf); in xfs_dir2_node_to_leaf()
1752 error = xfs_dir2_free_read(tp, dp, args->geo->freeblk, &fbp); in xfs_dir2_node_to_leaf()
1756 dp->d_ops->free_hdr_from_disk(&freehdr, free); in xfs_dir2_node_to_leaf()
1790 memcpy(xfs_dir2_leaf_bests_p(ltp), dp->d_ops->free_bests_p(free), in xfs_dir2_node_to_leaf()
1793 dp->d_ops->leaf_hdr_to_disk(leaf, &leafhdr); in xfs_dir2_node_to_leaf()
1797 xfs_dir3_leaf_check(dp, lbp); in xfs_dir2_node_to_leaf()