/fs/xfs/libxfs/ |
D | xfs_dir2_block.c | 343 xfs_dir2_data_entry_t *dep; /* block data entry */ in xfs_dir2_block_addname() local 532 dep = (xfs_dir2_data_entry_t *)dup; in xfs_dir2_block_addname() 538 (char *)dep - (char *)hdr)); in xfs_dir2_block_addname() 549 dep->inumber = cpu_to_be64(args->inumber); in xfs_dir2_block_addname() 550 dep->namelen = args->namelen; in xfs_dir2_block_addname() 551 memcpy(dep->name, args->name, args->namelen); in xfs_dir2_block_addname() 552 dp->d_ops->data_put_ftype(dep, args->filetype); in xfs_dir2_block_addname() 553 tagp = dp->d_ops->data_entry_tag_p(dep); in xfs_dir2_block_addname() 554 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_block_addname() 563 xfs_dir2_data_log_entry(args, bp, dep); in xfs_dir2_block_addname() [all …]
|
D | xfs_dir2_sf.c | 71 xfs_dir2_data_entry_t *dep; /* data entry in the block */ in xfs_dir2_block_sfsize() local 105 dep = (xfs_dir2_data_entry_t *)((char *)hdr + in xfs_dir2_block_sfsize() 112 isdot = dep->namelen == 1 && dep->name[0] == '.'; in xfs_dir2_block_sfsize() 114 dep->namelen == 2 && in xfs_dir2_block_sfsize() 115 dep->name[0] == '.' && dep->name[1] == '.'; in xfs_dir2_block_sfsize() 118 i8count += be64_to_cpu(dep->inumber) > XFS_DIR2_MAX_SHORT_INUM; in xfs_dir2_block_sfsize() 123 namelen += dep->namelen + has_ftype; in xfs_dir2_block_sfsize() 125 parent = be64_to_cpu(dep->inumber); in xfs_dir2_block_sfsize() 161 xfs_dir2_data_entry_t *dep; /* data entry pointer */ in xfs_dir2_block_to_sf() local 213 dep = (xfs_dir2_data_entry_t *)ptr; in xfs_dir2_block_to_sf() [all …]
|
D | xfs_dir2_leaf.c | 614 xfs_dir2_data_entry_t *dep; /* data block entry */ in xfs_dir2_leaf_addname() local 859 dep = (xfs_dir2_data_entry_t *)dup; in xfs_dir2_leaf_addname() 860 dep->inumber = cpu_to_be64(args->inumber); in xfs_dir2_leaf_addname() 861 dep->namelen = args->namelen; in xfs_dir2_leaf_addname() 862 memcpy(dep->name, args->name, dep->namelen); in xfs_dir2_leaf_addname() 863 dp->d_ops->data_put_ftype(dep, args->filetype); in xfs_dir2_leaf_addname() 864 tagp = dp->d_ops->data_entry_tag_p(dep); in xfs_dir2_leaf_addname() 865 *tagp = cpu_to_be16((char *)dep - (char *)hdr); in xfs_dir2_leaf_addname() 876 xfs_dir2_data_log_entry(args, dbp, dep); in xfs_dir2_leaf_addname() 1158 xfs_dir2_data_entry_t *dep; /* data block entry */ in xfs_dir2_leaf_lookup() local [all …]
|
D | xfs_da_format.c | 252 struct xfs_dir2_data_entry *dep) in xfs_dir2_data_get_ftype() argument 259 struct xfs_dir2_data_entry *dep, in xfs_dir2_data_put_ftype() argument 267 struct xfs_dir2_data_entry *dep) in xfs_dir3_data_get_ftype() argument 269 __uint8_t ftype = dep->name[dep->namelen]; in xfs_dir3_data_get_ftype() 278 struct xfs_dir2_data_entry *dep, in xfs_dir3_data_put_ftype() argument 282 ASSERT(dep->namelen != 0); in xfs_dir3_data_put_ftype() 284 dep->name[dep->namelen] = type; in xfs_dir3_data_put_ftype() 292 struct xfs_dir2_data_entry *dep) in xfs_dir2_data_entry_tag_p() argument 294 return (__be16 *)((char *)dep + in xfs_dir2_data_entry_tag_p() 295 xfs_dir2_data_entsize(dep->namelen) - sizeof(__be16)); in xfs_dir2_data_entry_tag_p() [all …]
|
D | xfs_dir2_data.c | 51 xfs_dir2_data_entry_t *dep; /* data entry */ in __xfs_dir3_data_check() local 163 dep = (xfs_dir2_data_entry_t *)p; in __xfs_dir3_data_check() 164 XFS_WANT_CORRUPTED_RETURN(mp, dep->namelen != 0); in __xfs_dir3_data_check() 166 !xfs_dir_ino_validate(mp, be64_to_cpu(dep->inumber))); in __xfs_dir3_data_check() 168 be16_to_cpu(*ops->data_entry_tag_p(dep)) == in __xfs_dir3_data_check() 169 (char *)dep - (char *)hdr); in __xfs_dir3_data_check() 171 ops->data_get_ftype(dep) < XFS_DIR3_FT_MAX); in __xfs_dir3_data_check() 178 ((char *)dep - (char *)hdr)); in __xfs_dir3_data_check() 179 name.name = dep->name; in __xfs_dir3_data_check() 180 name.len = dep->namelen; in __xfs_dir3_data_check() [all …]
|
D | xfs_dir2_node.c | 675 xfs_dir2_data_entry_t *dep; /* data block entry */ in xfs_dir2_leafn_lookup_for_entry() local 761 dep = (xfs_dir2_data_entry_t *)((char *)curbp->b_addr + in xfs_dir2_leafn_lookup_for_entry() 769 cmp = mp->m_dirnameops->compname(args, dep->name, dep->namelen); in xfs_dir2_leafn_lookup_for_entry() 776 args->inumber = be64_to_cpu(dep->inumber); in xfs_dir2_leafn_lookup_for_entry() 777 args->filetype = dp->d_ops->data_get_ftype(dep); in xfs_dir2_leafn_lookup_for_entry() 782 state->extrablk.index = (int)((char *)dep - in xfs_dir2_leafn_lookup_for_entry() 1163 xfs_dir2_data_entry_t *dep; /* data block entry */ in xfs_dir2_leafn_remove() local 1214 dep = (xfs_dir2_data_entry_t *)((char *)hdr + off); in xfs_dir2_leafn_remove() 1219 dp->d_ops->data_entsize(dep->namelen), &needlog, &needscan); in xfs_dir2_leafn_remove() 1649 xfs_dir2_data_entry_t *dep; /* data entry pointer */ in xfs_dir2_node_addname_int() local [all …]
|
D | xfs_dir2.h | 61 __uint8_t (*data_get_ftype)(struct xfs_dir2_data_entry *dep); 62 void (*data_put_ftype)(struct xfs_dir2_data_entry *dep, 64 __be16 * (*data_entry_tag_p)(struct xfs_dir2_data_entry *dep); 163 struct xfs_buf *bp, struct xfs_dir2_data_entry *dep);
|
/fs/xfs/ |
D | xfs_dir2_readdir.c | 166 xfs_dir2_data_entry_t *dep; /* block data entry */ in xfs_dir2_block_getdents() local 218 dep = (xfs_dir2_data_entry_t *)ptr; in xfs_dir2_block_getdents() 223 ptr += dp->d_ops->data_entsize(dep->namelen); in xfs_dir2_block_getdents() 227 if ((char *)dep - (char *)hdr < wantoff) in xfs_dir2_block_getdents() 231 (char *)dep - (char *)hdr); in xfs_dir2_block_getdents() 234 filetype = dp->d_ops->data_get_ftype(dep); in xfs_dir2_block_getdents() 238 if (!dir_emit(ctx, (char *)dep->name, dep->namelen, in xfs_dir2_block_getdents() 239 be64_to_cpu(dep->inumber), in xfs_dir2_block_getdents() 488 xfs_dir2_data_entry_t *dep; /* data entry */ in xfs_dir2_leaf_getdents() local 593 dep = (xfs_dir2_data_entry_t *)ptr; in xfs_dir2_leaf_getdents() [all …]
|
/fs/hpfs/ |
D | namei.c | 520 struct hpfs_dirent *dep, *nde; in hpfs_rename() local 541 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename() 546 copy_de(&de, dep); in hpfs_rename() 551 if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 1)) != 2) { in hpfs_rename() 578 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) { in hpfs_rename() 584 if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 0))) { in hpfs_rename()
|
/fs/fscache/ |
D | object.c | 856 struct fscache_object *dep; in fscache_enqueue_dependents() local 867 dep = list_entry(object->dependents.next, in fscache_enqueue_dependents() 869 list_del_init(&dep->dep_link); in fscache_enqueue_dependents() 871 fscache_raise_event(dep, event); in fscache_enqueue_dependents() 872 fscache_put_object(dep); in fscache_enqueue_dependents()
|