Lines Matching refs:dp
119 struct xfs_inode *dp, in xfs_dir3_block_header_check() argument
122 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_block_header_check()
127 if (be64_to_cpu(hdr3->owner) != dp->i_ino) in xfs_dir3_block_header_check()
137 struct xfs_inode *dp, in xfs_dir3_block_read() argument
140 struct xfs_mount *mp = dp->i_mount; in xfs_dir3_block_read()
144 err = xfs_da_read_buf(tp, dp, mp->m_dir_geo->datablk, 0, bpp, in xfs_dir3_block_read()
150 fa = xfs_dir3_block_header_check(dp, *bpp); in xfs_dir3_block_read()
167 struct xfs_inode *dp) in xfs_dir3_block_init() argument
178 hdr3->owner = cpu_to_be64(dp->i_ino); in xfs_dir3_block_init()
188 struct xfs_inode *dp, in xfs_dir2_block_need_space() argument
204 bf = xfs_dir2_data_bestfree_p(dp->i_mount, hdr); in xfs_dir2_block_need_space()
343 xfs_dir2_data_freescan(args->dp->i_mount, hdr, needlog); in xfs_dir2_block_compact()
359 xfs_inode_t *dp; /* directory inode */ in xfs_dir2_block_addname() local
379 dp = args->dp; in xfs_dir2_block_addname()
383 error = xfs_dir3_block_read(tp, dp, &bp); in xfs_dir2_block_addname()
387 len = xfs_dir2_data_entsize(dp->i_mount, args->namelen); in xfs_dir2_block_addname()
400 xfs_dir2_block_need_space(dp, hdr, btp, blp, &tagp, &dup, in xfs_dir2_block_addname()
490 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_block_addname()
573 xfs_dir2_data_put_ftype(dp->i_mount, dep, args->filetype); in xfs_dir2_block_addname()
574 tagp = xfs_dir2_data_entry_tag_p(dp->i_mount, dep); in xfs_dir2_block_addname()
580 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_block_addname()
585 xfs_dir3_data_check(dp, bp); in xfs_dir2_block_addname()
638 xfs_inode_t *dp; /* incore inode */ in xfs_dir2_block_lookup() local
650 dp = args->dp; in xfs_dir2_block_lookup()
652 xfs_dir3_data_check(dp, bp); in xfs_dir2_block_lookup()
665 args->filetype = xfs_dir2_data_get_ftype(dp->i_mount, dep); in xfs_dir2_block_lookup()
686 xfs_inode_t *dp; /* incore inode */ in xfs_dir2_block_lookup_int() local
695 dp = args->dp; in xfs_dir2_block_lookup_int()
698 error = xfs_dir3_block_read(tp, dp, &bp); in xfs_dir2_block_lookup_int()
703 xfs_dir3_data_check(dp, bp); in xfs_dir2_block_lookup_int()
786 xfs_inode_t *dp; /* incore inode */ in xfs_dir2_block_removename() local
804 dp = args->dp; in xfs_dir2_block_removename()
821 xfs_dir2_data_entsize(dp->i_mount, dep->namelen), &needlog, in xfs_dir2_block_removename()
837 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_block_removename()
840 xfs_dir3_data_check(dp, bp); in xfs_dir2_block_removename()
844 size = xfs_dir2_block_sfsize(dp, hdr, &sfh); in xfs_dir2_block_removename()
845 if (size > XFS_IFORK_DSIZE(dp)) in xfs_dir2_block_removename()
867 xfs_inode_t *dp; /* incore inode */ in xfs_dir2_block_replace() local
880 dp = args->dp; in xfs_dir2_block_replace()
895 xfs_dir2_data_put_ftype(dp->i_mount, dep, args->filetype); in xfs_dir2_block_replace()
897 xfs_dir3_data_check(dp, bp); in xfs_dir2_block_replace()
930 xfs_inode_t *dp; /* incore directory inode */ in xfs_dir2_leaf_to_block() local
949 dp = args->dp; in xfs_dir2_leaf_to_block()
951 mp = dp->i_mount; in xfs_dir2_leaf_to_block()
964 while (dp->i_d.di_size > args->geo->blksize) { in xfs_dir2_leaf_to_block()
982 error = xfs_dir3_data_read(tp, dp, args->geo->datablk, 0, &dbp); in xfs_dir2_leaf_to_block()
1010 xfs_dir3_block_init(mp, tp, dbp, dp); in xfs_dir2_leaf_to_block()
1044 xfs_dir2_data_freescan(dp->i_mount, hdr, &needlog); in xfs_dir2_leaf_to_block()
1057 size = xfs_dir2_block_sfsize(dp, hdr, &sfh); in xfs_dir2_leaf_to_block()
1058 if (size > XFS_IFORK_DSIZE(dp)) in xfs_dir2_leaf_to_block()
1072 struct xfs_inode *dp = args->dp; in xfs_dir2_sf_to_block() local
1073 struct xfs_mount *mp = dp->i_mount; in xfs_dir2_sf_to_block()
1074 struct xfs_ifork *ifp = XFS_IFORK_PTR(dp, XFS_DATA_FORK); in xfs_dir2_sf_to_block()
1100 ASSERT(dp->i_d.di_size >= offsetof(struct xfs_dir2_sf_hdr, parent)); in xfs_dir2_sf_to_block()
1104 ASSERT(ifp->if_bytes == dp->i_d.di_size); in xfs_dir2_sf_to_block()
1106 ASSERT(dp->i_d.di_size >= xfs_dir2_sf_hdr_size(oldsfp->i8count)); in xfs_dir2_sf_to_block()
1107 ASSERT(dp->i_df.if_nextents == 0); in xfs_dir2_sf_to_block()
1116 xfs_idata_realloc(dp, -ifp->if_bytes, XFS_DATA_FORK); in xfs_dir2_sf_to_block()
1117 xfs_bmap_local_to_extents_empty(tp, dp, XFS_DATA_FORK); in xfs_dir2_sf_to_block()
1118 dp->i_d.di_size = 0; in xfs_dir2_sf_to_block()
1132 xfs_dir3_block_init(mp, tp, bp, dp); in xfs_dir2_sf_to_block()
1172 dep->inumber = cpu_to_be64(dp->i_ino); in xfs_dir2_sf_to_block()
1270 xfs_dir3_data_check(dp, bp); in xfs_dir2_sf_to_block()