Lines Matching refs:dep
176 xfs_dir2_data_entry_t *dep; /* data entry in the block */ in xfs_dir2_block_sfsize() local
210 dep = (xfs_dir2_data_entry_t *)((char *)hdr + in xfs_dir2_block_sfsize()
217 isdot = dep->namelen == 1 && dep->name[0] == '.'; in xfs_dir2_block_sfsize()
219 dep->namelen == 2 && in xfs_dir2_block_sfsize()
220 dep->name[0] == '.' && dep->name[1] == '.'; in xfs_dir2_block_sfsize()
223 i8count += be64_to_cpu(dep->inumber) > XFS_DIR2_MAX_SHORT_INUM; in xfs_dir2_block_sfsize()
228 namelen += dep->namelen + has_ftype; in xfs_dir2_block_sfsize()
230 parent = be64_to_cpu(dep->inumber); in xfs_dir2_block_sfsize()
290 struct xfs_dir2_data_entry *dep = bp->b_addr + offset; in xfs_dir2_block_to_sf() local
303 if (dep->namelen == 1 && dep->name[0] == '.') in xfs_dir2_block_to_sf()
304 ASSERT(be64_to_cpu(dep->inumber) == dp->i_ino); in xfs_dir2_block_to_sf()
308 else if (dep->namelen == 2 && in xfs_dir2_block_to_sf()
309 dep->name[0] == '.' && dep->name[1] == '.') in xfs_dir2_block_to_sf()
310 ASSERT(be64_to_cpu(dep->inumber) == in xfs_dir2_block_to_sf()
316 sfep->namelen = dep->namelen; in xfs_dir2_block_to_sf()
318 memcpy(sfep->name, dep->name, dep->namelen); in xfs_dir2_block_to_sf()
320 be64_to_cpu(dep->inumber)); in xfs_dir2_block_to_sf()
322 xfs_dir2_data_get_ftype(mp, dep)); in xfs_dir2_block_to_sf()
326 offset += xfs_dir2_data_entsize(mp, dep->namelen); in xfs_dir2_block_to_sf()