Home
last modified time | relevance | path

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

/fs/xfs/libxfs/
Dxfs_dir2_sf.c268 struct xfs_dir2_sf_hdr *sfp; /* shortform directory header */ in xfs_dir2_block_to_sf() local
279 sfp = kmem_alloc(mp->m_sb.sb_inodesize, 0); in xfs_dir2_block_to_sf()
280 memcpy(sfp, sfhp, xfs_dir2_sf_hdr_size(sfhp->i8count)); in xfs_dir2_block_to_sf()
287 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_block_to_sf()
311 xfs_dir2_sf_get_parent_ino(sfp)); in xfs_dir2_block_to_sf()
319 xfs_dir2_sf_put_ino(mp, sfp, sfep, in xfs_dir2_block_to_sf()
324 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_block_to_sf()
328 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf()
345 xfs_init_local_fork(dp, XFS_DATA_FORK, sfp, size); in xfs_dir2_block_to_sf()
353 kmem_free(sfp); in xfs_dir2_block_to_sf()
[all …]
Dxfs_dir2_block.c1093 xfs_dir2_sf_hdr_t *sfp; /* shortform header */ in xfs_dir2_sf_to_block() local
1113 sfp = kmem_alloc(ifp->if_bytes, 0); in xfs_dir2_sf_to_block()
1114 memcpy(sfp, oldsfp, ifp->if_bytes); in xfs_dir2_sf_to_block()
1139 (sfp->count + 2) * (uint)sizeof(xfs_dir2_leaf_entry_t); in xfs_dir2_sf_to_block()
1155 btp->count = cpu_to_be32(sfp->count + 2); /* ., .. */ in xfs_dir2_sf_to_block()
1187 dep->inumber = cpu_to_be64(xfs_dir2_sf_get_parent_ino(sfp)); in xfs_dir2_sf_to_block()
1202 if (!sfp->count) in xfs_dir2_sf_to_block()
1205 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_to_block()
1238 dep->inumber = cpu_to_be64(xfs_dir2_sf_get_ino(mp, sfp, sfep)); in xfs_dir2_sf_to_block()
1252 if (++i == sfp->count) in xfs_dir2_sf_to_block()
[all …]
Dxfs_symlink_remote.c208 char *sfp = (char *)ifp->if_u1.if_data; in xfs_symlink_shortform_verify() local
210 char *endp = sfp + size; in xfs_symlink_shortform_verify()
226 if (memchr(sfp, 0, size - 1)) in xfs_symlink_shortform_verify()
Dxfs_dir2.c179 xfs_dir2_sf_hdr_t *sfp; in xfs_dir_isempty() local
186 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir_isempty()
187 return !sfp->count; in xfs_dir_isempty()
Dxfs_attr_leaf.c1017 struct xfs_attr_shortform *sfp; in xfs_attr_shortform_verify() local
1027 sfp = (struct xfs_attr_shortform *)ifp->if_u1.if_data; in xfs_attr_shortform_verify()
1036 endp = (char *)sfp + size; in xfs_attr_shortform_verify()
1039 sfep = &sfp->list[0]; in xfs_attr_shortform_verify()
1040 for (i = 0; i < sfp->hdr.count; i++) { in xfs_attr_shortform_verify()
/fs/freevxfs/
Dvxfs_fshead.c111 struct vxfs_fsh *pfp, *sfp; in vxfs_read_fshead() local
132 sfp = vxfs_getfsh(infp->vsi_fship, 0); in vxfs_read_fshead()
133 if (!sfp) { in vxfs_read_fshead()
139 vxfs_dumpfsh(sfp); in vxfs_read_fshead()
153 fs32_to_cpu(infp, sfp->fsh_ilistino[0])); in vxfs_read_fshead()
176 kfree(sfp); in vxfs_read_fshead()
186 kfree(sfp); in vxfs_read_fshead()
/fs/xfs/
Dxfs_dir2_readdir.c54 xfs_dir2_sf_hdr_t *sfp; /* shortform structure */ in xfs_dir2_sf_getdents() local
64 sfp = (xfs_dir2_sf_hdr_t *)dp->i_df.if_u1.if_data; in xfs_dir2_sf_getdents()
96 ino = xfs_dir2_sf_get_parent_ino(sfp); in xfs_dir2_sf_getdents()
105 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_getdents()
106 for (i = 0; i < sfp->count; i++) { in xfs_dir2_sf_getdents()
113 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_sf_getdents()
117 ino = xfs_dir2_sf_get_ino(mp, sfp, sfep); in xfs_dir2_sf_getdents()
127 sfep = xfs_dir2_sf_nextentry(mp, sfp, sfep); in xfs_dir2_sf_getdents()