Home
last modified time | relevance | path

Searched refs:sfp (Results 1 – 5 of 5) sorted by relevance

/fs/xfs/libxfs/
Dxfs_dir2_sf.c170 xfs_dir2_sf_hdr_t *sfp; /* shortform directory header */ in xfs_dir2_block_to_sf() local
190 sfp = (xfs_dir2_sf_hdr_t *)dst; in xfs_dir2_block_to_sf()
191 memcpy(sfp, sfhp, xfs_dir2_sf_hdr_size(sfhp->i8count)); in xfs_dir2_block_to_sf()
199 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_block_to_sf()
225 dp->d_ops->sf_get_parent_ino(sfp)); in xfs_dir2_block_to_sf()
235 dp->d_ops->sf_put_ino(sfp, sfep, in xfs_dir2_block_to_sf()
240 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_block_to_sf()
244 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf()
293 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ in xfs_dir2_sf_addname() local
310 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_addname()
[all …]
Dxfs_dir2_block.c1069 xfs_dir2_sf_hdr_t *sfp; /* shortform header */ in xfs_dir2_sf_to_block() local
1101 sfp = kmem_alloc(ifp->if_bytes, KM_SLEEP); in xfs_dir2_sf_to_block()
1102 memcpy(sfp, oldsfp, ifp->if_bytes); in xfs_dir2_sf_to_block()
1113 kmem_free(sfp); in xfs_dir2_sf_to_block()
1121 kmem_free(sfp); in xfs_dir2_sf_to_block()
1131 (sfp->count + 2) * (uint)sizeof(xfs_dir2_leaf_entry_t); in xfs_dir2_sf_to_block()
1145 btp->count = cpu_to_be32(sfp->count + 2); /* ., .. */ in xfs_dir2_sf_to_block()
1173 dep->inumber = cpu_to_be64(dp->d_ops->sf_get_parent_ino(sfp)); in xfs_dir2_sf_to_block()
1188 if (!sfp->count) in xfs_dir2_sf_to_block()
1191 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_to_block()
[all …]
Dxfs_dir2.c177 xfs_dir2_sf_hdr_t *sfp; in xfs_dir_isempty() local
184 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir_isempty()
185 return !sfp->count; in xfs_dir_isempty()
/fs/freevxfs/
Dvxfs_fshead.c110 struct vxfs_fsh *pfp, *sfp; in vxfs_read_fshead() local
136 sfp = vxfs_getfsh(infp->vsi_fship, 0); in vxfs_read_fshead()
137 if (!sfp) { in vxfs_read_fshead()
143 vxfs_dumpfsh(sfp); in vxfs_read_fshead()
156 tip = vxfs_blkiget(sbp, infp->vsi_iext, sfp->fsh_ilistino[0]); in vxfs_read_fshead()
196 kfree(sfp); in vxfs_read_fshead()
/fs/xfs/
Dxfs_dir2_readdir.c67 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ in xfs_dir2_sf_getdents() local
85 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_getdents()
87 ASSERT(dp->i_d.di_size >= xfs_dir2_sf_hdr_size(sfp->i8count)); in xfs_dir2_sf_getdents()
119 ino = dp->d_ops->sf_get_parent_ino(sfp); in xfs_dir2_sf_getdents()
128 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_getdents()
129 for (i = 0; i < sfp->count; i++) { in xfs_dir2_sf_getdents()
136 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_sf_getdents()
140 ino = dp->d_ops->sf_get_ino(sfp, sfep); in xfs_dir2_sf_getdents()
146 sfep = dp->d_ops->sf_nextentry(sfp, sfep); in xfs_dir2_sf_getdents()