Searched refs:sfep (Results 1 – 4 of 4) sorted by relevance
/linux-2.6.39/fs/xfs/ |
D | xfs_dir2_sf.c | 44 xfs_dir2_sf_entry_t *sfep, 166 xfs_dir2_sf_entry_t *sfep; /* shortform entry */ in xfs_dir2_block_to_sf() local 210 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_block_to_sf() 241 sfep->namelen = dep->namelen; in xfs_dir2_block_to_sf() 242 xfs_dir2_sf_put_offset(sfep, in xfs_dir2_block_to_sf() 245 memcpy(sfep->name, dep->name, dep->namelen); in xfs_dir2_block_to_sf() 248 xfs_dir2_sf_inumberp(sfep)); in xfs_dir2_block_to_sf() 249 sfep = xfs_dir2_sf_nextentry(sfp, sfep); in xfs_dir2_block_to_sf() 253 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf() 281 xfs_dir2_sf_entry_t *sfep = NULL; /* shortform entry */ in xfs_dir2_sf_addname() local [all …]
|
D | xfs_dir2_sf.h | 93 static inline xfs_dir2_inou_t *xfs_dir2_sf_inumberp(xfs_dir2_sf_entry_t *sfep) in xfs_dir2_sf_inumberp() argument 95 return (xfs_dir2_inou_t *)&(sfep)->name[(sfep)->namelen]; in xfs_dir2_sf_inumberp() 116 xfs_dir2_sf_get_offset(xfs_dir2_sf_entry_t *sfep) in xfs_dir2_sf_get_offset() argument 118 return INT_GET_UNALIGNED_16_BE(&(sfep)->offset.i); in xfs_dir2_sf_get_offset() 122 xfs_dir2_sf_put_offset(xfs_dir2_sf_entry_t *sfep, xfs_dir2_data_aoff_t off) in xfs_dir2_sf_put_offset() argument 124 INT_SET_UNALIGNED_16_BE(&(sfep)->offset.i, off); in xfs_dir2_sf_put_offset() 135 xfs_dir2_sf_entsize_byentry(xfs_dir2_sf_t *sfp, xfs_dir2_sf_entry_t *sfep) in xfs_dir2_sf_entsize_byentry() argument 137 return ((uint)sizeof(xfs_dir2_sf_entry_t) - 1 + (sfep)->namelen - \ in xfs_dir2_sf_entsize_byentry() 149 xfs_dir2_sf_nextentry(xfs_dir2_sf_t *sfp, xfs_dir2_sf_entry_t *sfep) in xfs_dir2_sf_nextentry() argument 152 ((char *)(sfep) + xfs_dir2_sf_entsize_byentry(sfp,sfep))); in xfs_dir2_sf_nextentry()
|
D | xfs_attr_sf.h | 62 #define XFS_ATTR_SF_ENTSIZE(sfep) /* space an entry uses */ \ argument 63 ((int)sizeof(xfs_attr_sf_entry_t)-1 + (sfep)->namelen+(sfep)->valuelen) 64 #define XFS_ATTR_SF_NEXTENTRY(sfep) /* next entry in struct */ \ argument 65 ((xfs_attr_sf_entry_t *)((char *)(sfep) + XFS_ATTR_SF_ENTSIZE(sfep)))
|
D | xfs_dir2_block.c | 1045 xfs_dir2_sf_entry_t *sfep; /* sf entry pointer */ in xfs_dir2_sf_to_block() local 1163 sfep = NULL; in xfs_dir2_sf_to_block() 1165 sfep = xfs_dir2_sf_firstentry(sfp); in xfs_dir2_sf_to_block() 1174 if (sfep == NULL) in xfs_dir2_sf_to_block() 1177 newoffset = xfs_dir2_sf_get_offset(sfep); in xfs_dir2_sf_to_block() 1199 xfs_dir2_sf_inumberp(sfep))); in xfs_dir2_sf_to_block() 1200 dep->namelen = sfep->namelen; in xfs_dir2_sf_to_block() 1201 memcpy(dep->name, sfep->name, dep->namelen); in xfs_dir2_sf_to_block() 1205 name.name = sfep->name; in xfs_dir2_sf_to_block() 1206 name.len = sfep->namelen; in xfs_dir2_sf_to_block() [all …]
|