Lines Matching refs:dep
59 xfs_dir2_data_entry_t *dep; /* data entry in the block */ in xfs_dir2_block_sfsize() local
93 dep = (xfs_dir2_data_entry_t *)((char *)hdr + in xfs_dir2_block_sfsize()
100 isdot = dep->namelen == 1 && dep->name[0] == '.'; in xfs_dir2_block_sfsize()
102 dep->namelen == 2 && in xfs_dir2_block_sfsize()
103 dep->name[0] == '.' && dep->name[1] == '.'; in xfs_dir2_block_sfsize()
106 i8count += be64_to_cpu(dep->inumber) > XFS_DIR2_MAX_SHORT_INUM; in xfs_dir2_block_sfsize()
111 namelen += dep->namelen + has_ftype; in xfs_dir2_block_sfsize()
113 parent = be64_to_cpu(dep->inumber); in xfs_dir2_block_sfsize()
147 xfs_dir2_data_entry_t *dep; /* data entry pointer */ in xfs_dir2_block_to_sf() local
198 dep = (xfs_dir2_data_entry_t *)ptr; in xfs_dir2_block_to_sf()
202 if (dep->namelen == 1 && dep->name[0] == '.') in xfs_dir2_block_to_sf()
203 ASSERT(be64_to_cpu(dep->inumber) == dp->i_ino); in xfs_dir2_block_to_sf()
207 else if (dep->namelen == 2 && in xfs_dir2_block_to_sf()
208 dep->name[0] == '.' && dep->name[1] == '.') in xfs_dir2_block_to_sf()
209 ASSERT(be64_to_cpu(dep->inumber) == in xfs_dir2_block_to_sf()
215 sfep->namelen = dep->namelen; in xfs_dir2_block_to_sf()
218 ((char *)dep - (char *)hdr)); in xfs_dir2_block_to_sf()
219 memcpy(sfep->name, dep->name, dep->namelen); in xfs_dir2_block_to_sf()
221 be64_to_cpu(dep->inumber)); in xfs_dir2_block_to_sf()
223 dp->d_ops->data_get_ftype(dep)); in xfs_dir2_block_to_sf()
227 ptr += dp->d_ops->data_entsize(dep->namelen); in xfs_dir2_block_to_sf()