Lines Matching refs:dep

75 	xfs_dir2_data_entry_t	*dep;		/* block data entry */  in xfs_dir2_block_addname()  local
394 dep = (xfs_dir2_data_entry_t *)dup; in xfs_dir2_block_addname()
400 (char *)dep - (char *)block)); in xfs_dir2_block_addname()
411 dep->inumber = cpu_to_be64(args->inumber); in xfs_dir2_block_addname()
412 dep->namelen = args->namelen; in xfs_dir2_block_addname()
413 memcpy(dep->name, args->name, args->namelen); in xfs_dir2_block_addname()
414 tagp = xfs_dir2_data_entry_tag_p(dep); in xfs_dir2_block_addname()
415 *tagp = cpu_to_be16((char *)dep - (char *)block); in xfs_dir2_block_addname()
424 xfs_dir2_data_log_entry(tp, bp, dep); in xfs_dir2_block_addname()
443 xfs_dir2_data_entry_t *dep; /* block data entry */ in xfs_dir2_block_getdents() local
496 dep = (xfs_dir2_data_entry_t *)ptr; in xfs_dir2_block_getdents()
501 ptr += xfs_dir2_data_entsize(dep->namelen); in xfs_dir2_block_getdents()
505 if ((char *)dep - (char *)block < wantoff) in xfs_dir2_block_getdents()
509 (char *)dep - (char *)block); in xfs_dir2_block_getdents()
514 if (filldir(dirent, (char *)dep->name, dep->namelen, in xfs_dir2_block_getdents()
515 cook & 0x7fffffff, be64_to_cpu(dep->inumber), in xfs_dir2_block_getdents()
587 xfs_dir2_data_entry_t *dep; /* block data entry */ in xfs_dir2_block_lookup() local
610 dep = (xfs_dir2_data_entry_t *)((char *)block + in xfs_dir2_block_lookup()
615 args->inumber = be64_to_cpu(dep->inumber); in xfs_dir2_block_lookup()
616 error = xfs_dir_cilookup_result(args, dep->name, dep->namelen); in xfs_dir2_block_lookup()
635 xfs_dir2_data_entry_t *dep; /* block data entry */ in xfs_dir2_block_lookup_int() local
696 dep = (xfs_dir2_data_entry_t *) in xfs_dir2_block_lookup_int()
703 cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen); in xfs_dir2_block_lookup_int()
740 xfs_dir2_data_entry_t *dep; /* block data entry */ in xfs_dir2_block_removename() local
769 dep = (xfs_dir2_data_entry_t *) in xfs_dir2_block_removename()
776 (xfs_dir2_data_aoff_t)((char *)dep - (char *)block), in xfs_dir2_block_removename()
777 xfs_dir2_data_entsize(dep->namelen), &needlog, &needscan); in xfs_dir2_block_removename()
822 xfs_dir2_data_entry_t *dep; /* block data entry */ in xfs_dir2_block_replace() local
845 dep = (xfs_dir2_data_entry_t *) in xfs_dir2_block_replace()
847 ASSERT(be64_to_cpu(dep->inumber) != args->inumber); in xfs_dir2_block_replace()
851 dep->inumber = cpu_to_be64(args->inumber); in xfs_dir2_block_replace()
852 xfs_dir2_data_log_entry(args->trans, bp, dep); in xfs_dir2_block_replace()
1033 xfs_dir2_data_entry_t *dep; /* data entry pointer */ in xfs_dir2_sf_to_block() local
1133 dep = (xfs_dir2_data_entry_t *) in xfs_dir2_sf_to_block()
1135 dep->inumber = cpu_to_be64(dp->i_ino); in xfs_dir2_sf_to_block()
1136 dep->namelen = 1; in xfs_dir2_sf_to_block()
1137 dep->name[0] = '.'; in xfs_dir2_sf_to_block()
1138 tagp = xfs_dir2_data_entry_tag_p(dep); in xfs_dir2_sf_to_block()
1139 *tagp = cpu_to_be16((char *)dep - (char *)block); in xfs_dir2_sf_to_block()
1140 xfs_dir2_data_log_entry(tp, bp, dep); in xfs_dir2_sf_to_block()
1143 (char *)dep - (char *)block)); in xfs_dir2_sf_to_block()
1147 dep = (xfs_dir2_data_entry_t *) in xfs_dir2_sf_to_block()
1149 dep->inumber = cpu_to_be64(xfs_dir2_sf_get_inumber(sfp, &sfp->hdr.parent)); in xfs_dir2_sf_to_block()
1150 dep->namelen = 2; in xfs_dir2_sf_to_block()
1151 dep->name[0] = dep->name[1] = '.'; in xfs_dir2_sf_to_block()
1152 tagp = xfs_dir2_data_entry_tag_p(dep); in xfs_dir2_sf_to_block()
1153 *tagp = cpu_to_be16((char *)dep - (char *)block); in xfs_dir2_sf_to_block()
1154 xfs_dir2_data_log_entry(tp, bp, dep); in xfs_dir2_sf_to_block()
1157 (char *)dep - (char *)block)); in xfs_dir2_sf_to_block()
1197 dep = (xfs_dir2_data_entry_t *)((char *)block + newoffset); in xfs_dir2_sf_to_block()
1198 dep->inumber = cpu_to_be64(xfs_dir2_sf_get_inumber(sfp, 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()
1202 tagp = xfs_dir2_data_entry_tag_p(dep); in xfs_dir2_sf_to_block()
1203 *tagp = cpu_to_be16((char *)dep - (char *)block); in xfs_dir2_sf_to_block()
1204 xfs_dir2_data_log_entry(tp, bp, dep); in xfs_dir2_sf_to_block()
1210 (char *)dep - (char *)block)); in xfs_dir2_sf_to_block()