Home
last modified time | relevance | path

Searched refs:sfep (Results 1 – 6 of 6) sorted by relevance

/linux-2.4.37.9/fs/xfs/
Dxfs_dir2_sf.h127 xfs_dir2_inou_t *xfs_dir2_sf_inumberp(xfs_dir2_sf_entry_t *sfep);
128 #define XFS_DIR2_SF_INUMBERP(sfep) xfs_dir2_sf_inumberp(sfep) argument
130 #define XFS_DIR2_SF_INUMBERP(sfep) \ argument
131 ((xfs_dir2_inou_t *)&(sfep)->name[(sfep)->namelen])
162 xfs_dir2_data_aoff_t xfs_dir2_sf_get_offset_arch(xfs_dir2_sf_entry_t *sfep,
164 xfs_dir2_data_aoff_t xfs_dir2_sf_get_offset(xfs_dir2_sf_entry_t *sfep);
165 #define XFS_DIR2_SF_GET_OFFSET_ARCH(sfep,arch) \ argument
166 xfs_dir2_sf_get_offset_arch(sfep,arch)
168 #define XFS_DIR2_SF_GET_OFFSET_ARCH(sfep,arch) \ argument
169 INT_GET_UNALIGNED_16_ARCH(&(sfep)->offset.i,arch)
[all …]
Dxfs_dir2_sf.c69 xfs_dir2_sf_entry_t *sfep,
191 xfs_dir2_sf_entry_t *sfep; /* shortform entry */ in xfs_dir2_block_to_sf() local
234 sfep = XFS_DIR2_SF_FIRSTENTRY(sfp); in xfs_dir2_block_to_sf()
265 sfep->namelen = dep->namelen; in xfs_dir2_block_to_sf()
266 XFS_DIR2_SF_PUT_OFFSET_ARCH(sfep, in xfs_dir2_block_to_sf()
269 memcpy(sfep->name, dep->name, dep->namelen); in xfs_dir2_block_to_sf()
272 XFS_DIR2_SF_INUMBERP(sfep), ARCH_CONVERT); in xfs_dir2_block_to_sf()
273 sfep = XFS_DIR2_SF_NEXTENTRY(sfp, sfep); in xfs_dir2_block_to_sf()
277 ASSERT((char *)sfep - (char *)sfp == size); in xfs_dir2_block_to_sf()
305 xfs_dir2_sf_entry_t *sfep; /* shortform entry */ in xfs_dir2_sf_addname() local
[all …]
Dxfs_attr_sf.h85 int xfs_attr_sf_entsize(xfs_attr_sf_entry_t *sfep);
86 #define XFS_ATTR_SF_ENTSIZE(sfep) xfs_attr_sf_entsize(sfep) argument
88 #define XFS_ATTR_SF_ENTSIZE(sfep) /* space an entry uses */ \ argument
89 ((int)sizeof(xfs_attr_sf_entry_t)-1 + (sfep)->namelen+(sfep)->valuelen)
92 xfs_attr_sf_entry_t *xfs_attr_sf_nextentry(xfs_attr_sf_entry_t *sfep);
93 #define XFS_ATTR_SF_NEXTENTRY(sfep) xfs_attr_sf_nextentry(sfep) argument
95 #define XFS_ATTR_SF_NEXTENTRY(sfep) /* next entry in struct */ \ argument
97 ((char *)(sfep) + XFS_ATTR_SF_ENTSIZE(sfep)))
Dxfs_dir_sf.h105 int xfs_dir_sf_entsize_byentry(xfs_dir_sf_entry_t *sfep);
106 #define XFS_DIR_SF_ENTSIZE_BYENTRY(sfep) xfs_dir_sf_entsize_byentry(sfep) argument
108 #define XFS_DIR_SF_ENTSIZE_BYENTRY(sfep) /* space an entry uses */ \ argument
109 ((uint)sizeof(xfs_dir_sf_entry_t)-1 + (sfep)->namelen)
112 xfs_dir_sf_entry_t *xfs_dir_sf_nextentry(xfs_dir_sf_entry_t *sfep);
113 #define XFS_DIR_SF_NEXTENTRY(sfep) xfs_dir_sf_nextentry(sfep) argument
115 #define XFS_DIR_SF_NEXTENTRY(sfep) /* next entry in struct */ \ argument
117 ((char *)(sfep) + XFS_DIR_SF_ENTSIZE_BYENTRY(sfep)))
Dxfs_macros.c323 xfs_attr_sf_entsize(xfs_attr_sf_entry_t *sfep) in xfs_attr_sf_entsize() argument
325 return XFS_ATTR_SF_ENTSIZE(sfep); in xfs_attr_sf_entsize()
339 xfs_attr_sf_nextentry(xfs_attr_sf_entry_t *sfep) in xfs_attr_sf_nextentry() argument
341 return XFS_ATTR_SF_NEXTENTRY(sfep); in xfs_attr_sf_nextentry()
1095 xfs_dir_sf_entsize_byentry(xfs_dir_sf_entry_t *sfep) in xfs_dir_sf_entsize_byentry() argument
1097 return XFS_DIR_SF_ENTSIZE_BYENTRY(sfep); in xfs_dir_sf_entsize_byentry()
1124 xfs_dir_sf_nextentry(xfs_dir_sf_entry_t *sfep) in xfs_dir_sf_nextentry() argument
1126 return XFS_DIR_SF_NEXTENTRY(sfep); in xfs_dir_sf_nextentry()
1325 xfs_dir2_sf_entsize_byentry(xfs_dir2_sf_t *sfp, xfs_dir2_sf_entry_t *sfep) in xfs_dir2_sf_entsize_byentry() argument
1327 return XFS_DIR2_SF_ENTSIZE_BYENTRY(sfp, sfep); in xfs_dir2_sf_entsize_byentry()
[all …]
Dxfs_dir2_block.c1066 xfs_dir2_sf_entry_t *sfep; /* sf entry pointer */ in xfs_dir2_sf_to_block() local
1180 sfep = NULL; in xfs_dir2_sf_to_block()
1182 sfep = XFS_DIR2_SF_FIRSTENTRY(sfp); in xfs_dir2_sf_to_block()
1191 if (sfep == NULL) in xfs_dir2_sf_to_block()
1194 newoffset = XFS_DIR2_SF_GET_OFFSET_ARCH(sfep, ARCH_CONVERT); in xfs_dir2_sf_to_block()
1217 XFS_DIR2_SF_INUMBERP(sfep), ARCH_CONVERT)); in xfs_dir2_sf_to_block()
1218 dep->namelen = sfep->namelen; in xfs_dir2_sf_to_block()
1219 memcpy(dep->name, sfep->name, dep->namelen); in xfs_dir2_sf_to_block()
1223 INT_SET(blp[2 + i].hashval, ARCH_CONVERT, xfs_da_hashname((char *)sfep->name, sfep->namelen)); in xfs_dir2_sf_to_block()
1228 sfep = NULL; in xfs_dir2_sf_to_block()
[all …]