/fs/hfs/ |
D | inode.c | 289 hfs_cat_rec *rec; member 295 hfs_cat_rec *rec; in hfs_test_inode() local 297 rec = idata->rec; in hfs_test_inode() 298 switch (rec->type) { in hfs_test_inode() 300 return inode->i_ino == be32_to_cpu(rec->dir.DirID); in hfs_test_inode() 302 return inode->i_ino == be32_to_cpu(rec->file.FlNum); in hfs_test_inode() 316 hfs_cat_rec *rec; in hfs_read_inode() local 335 rec = idata->rec; in hfs_read_inode() 336 switch (rec->type) { in hfs_read_inode() 339 hfs_inode_read_fork(inode, rec->file.ExtRec, rec->file.LgLen, in hfs_read_inode() [all …]
|
D | catalog.c | 36 static int hfs_cat_build_record(hfs_cat_rec *rec, u32 cnid, struct inode *inode) in hfs_cat_build_record() argument 40 memset(rec, 0, sizeof(*rec)); in hfs_cat_build_record() 42 rec->type = HFS_CDR_DIR; in hfs_cat_build_record() 43 rec->dir.DirID = cpu_to_be32(cnid); in hfs_cat_build_record() 44 rec->dir.CrDat = mtime; in hfs_cat_build_record() 45 rec->dir.MdDat = mtime; in hfs_cat_build_record() 46 rec->dir.BkDat = 0; in hfs_cat_build_record() 47 rec->dir.UsrInfo.frView = cpu_to_be16(0xff); in hfs_cat_build_record() 51 rec->type = HFS_CDR_FIL; in hfs_cat_build_record() 52 rec->file.Flags = HFS_FIL_USED | HFS_FIL_THD; in hfs_cat_build_record() [all …]
|
D | brec.c | 18 u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off) in hfs_brec_lenoff() argument 23 dataoff = node->tree->node_size - (rec + 2) * 2; in hfs_brec_lenoff() 30 u16 hfs_brec_keylen(struct hfs_bnode *node, u16 rec) in hfs_brec_keylen() argument 44 recoff = hfs_bnode_read_u16(node, node->tree->node_size - (rec + 1) * 2); in hfs_brec_keylen() 68 int size, key_len, rec; in hfs_brec_insert() local 86 rec = fd->record + 1; in hfs_brec_insert() 96 rec, size, end_off, end_rec_off); in hfs_brec_insert() 115 idx_rec_off = tree->node_size - (rec + 1) * 2; in hfs_brec_insert() 138 if (!rec && new_node != node) { in hfs_brec_insert() 355 int rec, rec_off, end_rec_off; in hfs_brec_update_parent() local [all …]
|
D | bfind.c | 46 int rec; in __hfs_brec_find() local 54 rec = (e + b) / 2; in __hfs_brec_find() 55 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find() 56 keylen = hfs_brec_keylen(bnode, rec); in __hfs_brec_find() 64 e = rec; in __hfs_brec_find() 69 b = rec + 1; in __hfs_brec_find() 71 e = rec - 1; in __hfs_brec_find() 73 if (rec != e && e >= 0) { in __hfs_brec_find() 148 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument 157 hfs_bnode_read(fd->bnode, rec, fd->entryoffset, fd->entrylength); in hfs_brec_read()
|
D | attr.c | 25 hfs_cat_rec rec; in __hfs_setxattr() local 39 hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, in __hfs_setxattr() 41 file = &rec.file; in __hfs_setxattr() 60 hfs_bnode_write(fd.bnode, &rec, fd.entryoffset, in __hfs_setxattr() 71 hfs_cat_rec rec; in __hfs_getxattr() local 86 hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, in __hfs_getxattr() 89 file = &rec.file; in __hfs_getxattr()
|
D | dir.c | 23 hfs_cat_rec rec; in hfs_lookup() local 32 res = hfs_brec_read(&fd, &rec, sizeof(rec)); in hfs_lookup() 42 inode = hfs_iget(dir->i_sb, &fd.search_key->cat, &rec); in hfs_lookup()
|
/fs/xfs/libxfs/ |
D | xfs_ialloc.c | 86 union xfs_btree_rec rec; in xfs_inobt_update() local 88 rec.inobt.ir_startino = cpu_to_be32(irec->ir_startino); in xfs_inobt_update() 90 rec.inobt.ir_u.sp.ir_holemask = cpu_to_be16(irec->ir_holemask); in xfs_inobt_update() 91 rec.inobt.ir_u.sp.ir_count = irec->ir_count; in xfs_inobt_update() 92 rec.inobt.ir_u.sp.ir_freecount = irec->ir_freecount; in xfs_inobt_update() 95 rec.inobt.ir_u.f.ir_freecount = cpu_to_be32(irec->ir_freecount); in xfs_inobt_update() 97 rec.inobt.ir_free = cpu_to_be64(irec->ir_free); in xfs_inobt_update() 98 return xfs_btree_update(cur, &rec); in xfs_inobt_update() 110 union xfs_btree_rec *rec; in xfs_inobt_get_rec() local 113 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_inobt_get_rec() [all …]
|
D | xfs_rmap_btree.c | 183 union xfs_btree_rec *rec) in xfs_rmapbt_init_key_from_rec() argument 185 key->rmap.rm_startblock = rec->rmap.rm_startblock; in xfs_rmapbt_init_key_from_rec() 186 key->rmap.rm_owner = rec->rmap.rm_owner; in xfs_rmapbt_init_key_from_rec() 187 key->rmap.rm_offset = rec->rmap.rm_offset; in xfs_rmapbt_init_key_from_rec() 200 union xfs_btree_rec *rec) in xfs_rmapbt_init_high_key_from_rec() argument 205 adj = be32_to_cpu(rec->rmap.rm_blockcount) - 1; in xfs_rmapbt_init_high_key_from_rec() 207 key->rmap.rm_startblock = rec->rmap.rm_startblock; in xfs_rmapbt_init_high_key_from_rec() 209 key->rmap.rm_owner = rec->rmap.rm_owner; in xfs_rmapbt_init_high_key_from_rec() 210 key->rmap.rm_offset = rec->rmap.rm_offset; in xfs_rmapbt_init_high_key_from_rec() 211 if (XFS_RMAP_NON_INODE_OWNER(be64_to_cpu(rec->rmap.rm_owner)) || in xfs_rmapbt_init_high_key_from_rec() [all …]
|
D | xfs_alloc_btree.c | 131 union xfs_btree_rec *rec, in xfs_allocbt_update_lastrec() argument 151 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec() 154 if (be32_to_cpu(rec->alloc.ar_blockcount) <= in xfs_allocbt_update_lastrec() 157 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec() 206 union xfs_btree_rec *rec) in xfs_allocbt_init_key_from_rec() argument 208 ASSERT(rec->alloc.ar_startblock != 0); in xfs_allocbt_init_key_from_rec() 210 key->alloc.ar_startblock = rec->alloc.ar_startblock; in xfs_allocbt_init_key_from_rec() 211 key->alloc.ar_blockcount = rec->alloc.ar_blockcount; in xfs_allocbt_init_key_from_rec() 217 union xfs_btree_rec *rec) in xfs_allocbt_init_rec_from_cur() argument 221 rec->alloc.ar_startblock = cpu_to_be32(cur->bc_rec.a.ar_startblock); in xfs_allocbt_init_rec_from_cur() [all …]
|
D | xfs_ialloc_btree.c | 172 union xfs_btree_rec *rec) in xfs_inobt_init_key_from_rec() argument 174 key->inobt.ir_startino = rec->inobt.ir_startino; in xfs_inobt_init_key_from_rec() 180 union xfs_btree_rec *rec) in xfs_inobt_init_rec_from_cur() argument 182 rec->inobt.ir_startino = cpu_to_be32(cur->bc_rec.i.ir_startino); in xfs_inobt_init_rec_from_cur() 184 rec->inobt.ir_u.sp.ir_holemask = in xfs_inobt_init_rec_from_cur() 186 rec->inobt.ir_u.sp.ir_count = cur->bc_rec.i.ir_count; in xfs_inobt_init_rec_from_cur() 187 rec->inobt.ir_u.sp.ir_freecount = cur->bc_rec.i.ir_freecount; in xfs_inobt_init_rec_from_cur() 190 rec->inobt.ir_u.f.ir_freecount = in xfs_inobt_init_rec_from_cur() 193 rec->inobt.ir_free = cpu_to_be64(cur->bc_rec.i.ir_free); in xfs_inobt_init_rec_from_cur() 433 struct xfs_inobt_rec_incore *rec) in xfs_inobt_irec_to_allocmask() argument [all …]
|
D | xfs_refcount_btree.c | 165 union xfs_btree_rec *rec) in xfs_refcountbt_init_key_from_rec() argument 167 key->refc.rc_startblock = rec->refc.rc_startblock; in xfs_refcountbt_init_key_from_rec() 173 union xfs_btree_rec *rec) in xfs_refcountbt_init_high_key_from_rec() argument 177 x = be32_to_cpu(rec->refc.rc_startblock); in xfs_refcountbt_init_high_key_from_rec() 178 x += be32_to_cpu(rec->refc.rc_blockcount) - 1; in xfs_refcountbt_init_high_key_from_rec() 185 union xfs_btree_rec *rec) in xfs_refcountbt_init_rec_from_cur() argument 187 rec->refc.rc_startblock = cpu_to_be32(cur->bc_rec.rc.rc_startblock); in xfs_refcountbt_init_rec_from_cur() 188 rec->refc.rc_blockcount = cpu_to_be32(cur->bc_rec.rc.rc_blockcount); in xfs_refcountbt_init_rec_from_cur() 189 rec->refc.rc_refcount = cpu_to_be32(cur->bc_rec.rc.rc_refcount); in xfs_refcountbt_init_rec_from_cur() 210 struct xfs_refcount_irec *rec = &cur->bc_rec.rc; in xfs_refcountbt_key_diff() local [all …]
|
D | xfs_rmap.c | 96 union xfs_btree_rec rec; in xfs_rmap_update() local 103 rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock); in xfs_rmap_update() 104 rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount); in xfs_rmap_update() 105 rec.rmap.rm_owner = cpu_to_be64(irec->rm_owner); in xfs_rmap_update() 106 rec.rmap.rm_offset = cpu_to_be64( in xfs_rmap_update() 108 error = xfs_btree_update(cur, &rec); in xfs_rmap_update() 184 union xfs_btree_rec *rec, in xfs_rmap_btrec_to_irec() argument 188 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock); in xfs_rmap_btrec_to_irec() 189 irec->rm_blockcount = be32_to_cpu(rec->rmap.rm_blockcount); in xfs_rmap_btrec_to_irec() 190 irec->rm_owner = be64_to_cpu(rec->rmap.rm_owner); in xfs_rmap_btrec_to_irec() [all …]
|
D | xfs_refcount.c | 93 union xfs_btree_rec *rec, in xfs_refcount_btrec_to_irec() argument 96 irec->rc_startblock = be32_to_cpu(rec->refc.rc_startblock); in xfs_refcount_btrec_to_irec() 97 irec->rc_blockcount = be32_to_cpu(rec->refc.rc_blockcount); in xfs_refcount_btrec_to_irec() 98 irec->rc_refcount = be32_to_cpu(rec->refc.rc_refcount); in xfs_refcount_btrec_to_irec() 110 union xfs_btree_rec *rec; in xfs_refcount_get_rec() local 113 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_refcount_get_rec() 115 xfs_refcount_btrec_to_irec(rec, irec); in xfs_refcount_get_rec() 132 union xfs_btree_rec rec; in xfs_refcount_update() local 136 rec.refc.rc_startblock = cpu_to_be32(irec->rc_startblock); in xfs_refcount_update() 137 rec.refc.rc_blockcount = cpu_to_be32(irec->rc_blockcount); in xfs_refcount_update() [all …]
|
/fs/ocfs2/ |
D | extent_map.c | 228 struct ocfs2_extent_rec *rec) in ocfs2_extent_map_insert_rec() argument 235 ins.ei_cpos = le32_to_cpu(rec->e_cpos); in ocfs2_extent_map_insert_rec() 237 le64_to_cpu(rec->e_blkno)); in ocfs2_extent_map_insert_rec() 238 ins.ei_clusters = le16_to_cpu(rec->e_leaf_clusters); in ocfs2_extent_map_insert_rec() 239 ins.ei_flags = rec->e_flags; in ocfs2_extent_map_insert_rec() 334 struct ocfs2_extent_rec *rec; in ocfs2_search_for_hole_index() local 337 rec = &el->l_recs[i]; in ocfs2_search_for_hole_index() 339 if (v_cluster < le32_to_cpu(rec->e_cpos)) in ocfs2_search_for_hole_index() 420 struct ocfs2_extent_rec *rec; in ocfs2_get_clusters_nocache() local 473 rec = &el->l_recs[i]; in ocfs2_get_clusters_nocache() [all …]
|
D | alloc.c | 102 struct ocfs2_extent_rec *rec); 116 struct ocfs2_extent_rec *rec); 160 struct ocfs2_extent_rec *rec); 164 struct ocfs2_extent_rec *rec); 208 struct ocfs2_extent_rec *rec) in ocfs2_dinode_extent_map_insert() argument 212 ocfs2_extent_map_insert_rec(inode, rec); in ocfs2_dinode_extent_map_insert() 224 struct ocfs2_extent_rec *rec) in ocfs2_dinode_insert_check() argument 231 (oi->ip_clusters != le32_to_cpu(rec->e_cpos)), in ocfs2_dinode_insert_check() 236 rec->e_cpos, oi->ip_clusters); in ocfs2_dinode_insert_check() 516 struct ocfs2_extent_rec *rec) in ocfs2_et_extent_map_insert() argument [all …]
|
D | refcounttree.c | 891 struct ocfs2_refcount_rec *rec = NULL; in ocfs2_find_refcount_rec_in_rl() local 894 rec = &rb->rf_records.rl_recs[i]; in ocfs2_find_refcount_rec_in_rl() 896 if (le64_to_cpu(rec->r_cpos) + in ocfs2_find_refcount_rec_in_rl() 897 le32_to_cpu(rec->r_clusters) <= cpos) in ocfs2_find_refcount_rec_in_rl() 899 else if (le64_to_cpu(rec->r_cpos) > cpos) in ocfs2_find_refcount_rec_in_rl() 904 *ret_rec = *rec; in ocfs2_find_refcount_rec_in_rl() 913 le64_to_cpu(rec->r_cpos) < cpos + len) in ocfs2_find_refcount_rec_in_rl() 915 cpu_to_le32(le64_to_cpu(rec->r_cpos) - cpos); in ocfs2_find_refcount_rec_in_rl() 1074 struct ocfs2_extent_rec *rec = NULL; in ocfs2_get_refcount_rec() local 1113 rec = &el->l_recs[i]; in ocfs2_get_refcount_rec() [all …]
|
D | quota_local.c | 328 void ocfs2_free_quota_recovery(struct ocfs2_quota_recovery *rec) in ocfs2_free_quota_recovery() argument 333 free_recovery_list(&(rec->r_list[type])); in ocfs2_free_quota_recovery() 334 kfree(rec); in ocfs2_free_quota_recovery() 373 struct ocfs2_quota_recovery *rec; in ocfs2_alloc_quota_recovery() local 375 rec = kmalloc(sizeof(struct ocfs2_quota_recovery), GFP_NOFS); in ocfs2_alloc_quota_recovery() 376 if (!rec) in ocfs2_alloc_quota_recovery() 379 INIT_LIST_HEAD(&(rec->r_list[type])); in ocfs2_alloc_quota_recovery() 380 return rec; in ocfs2_alloc_quota_recovery() 399 struct ocfs2_quota_recovery *rec; in ocfs2_begin_quota_recovery() local 404 rec = ocfs2_alloc_quota_recovery(); in ocfs2_begin_quota_recovery() [all …]
|
D | alloc.h | 249 struct ocfs2_extent_rec *rec) in ocfs2_rec_clusters() argument 259 return le32_to_cpu(rec->e_int_clusters); in ocfs2_rec_clusters() 261 return le16_to_cpu(rec->e_leaf_clusters); in ocfs2_rec_clusters() 268 static inline int ocfs2_is_empty_extent(struct ocfs2_extent_rec *rec) in ocfs2_is_empty_extent() argument 270 return !rec->e_leaf_clusters; in ocfs2_is_empty_extent()
|
D | move_extents.c | 66 struct ocfs2_extent_rec *rec, replace_rec; in __ocfs2_move_extent() local 108 rec = &el->l_recs[index]; in __ocfs2_move_extent() 110 BUG_ON(ext_flags != rec->e_flags); in __ocfs2_move_extent() 376 struct ocfs2_chain_rec *rec; in ocfs2_find_victim_alloc_group() local 396 rec = &(cl->cl_recs[0]); in ocfs2_find_victim_alloc_group() 404 if ((vict_blkno < le64_to_cpu(rec->c_blkno)) || in ocfs2_find_victim_alloc_group() 413 rec = &(cl->cl_recs[i]); in ocfs2_find_victim_alloc_group() 414 if (!rec) in ocfs2_find_victim_alloc_group() 421 blkno = le64_to_cpu(rec->c_blkno); in ocfs2_find_victim_alloc_group()
|
/fs/hfsplus/ |
D | brec.c | 19 u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off) in hfs_brec_lenoff() argument 24 dataoff = node->tree->node_size - (rec + 2) * 2; in hfs_brec_lenoff() 31 u16 hfs_brec_keylen(struct hfs_bnode *node, u16 rec) in hfs_brec_keylen() argument 44 node->tree->node_size - (rec + 1) * 2); in hfs_brec_keylen() 66 int size, key_len, rec; in hfs_brec_insert() local 84 rec = fd->record + 1; in hfs_brec_insert() 94 rec, size, end_off, end_rec_off); in hfs_brec_insert() 115 idx_rec_off = tree->node_size - (rec + 1) * 2; in hfs_brec_insert() 138 if (!rec && new_node != node) { in hfs_brec_insert() 359 int rec, rec_off, end_rec_off; in hfs_brec_update_parent() local [all …]
|
D | bfind.c | 117 int rec; in __hfs_brec_find() local 126 rec = (e + b) / 2; in __hfs_brec_find() 127 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find() 128 keylen = hfs_brec_keylen(bnode, rec); in __hfs_brec_find() 134 if (rec_found(bnode, fd, &b, &e, &rec)) { in __hfs_brec_find() 140 if (rec != e && e >= 0) { in __hfs_brec_find() 217 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument 226 hfs_bnode_read(fd->bnode, rec, fd->entryoffset, fd->entrylength); in hfs_brec_read()
|
/fs/pstore/ |
D | internal.h | 23 pstore_ftrace_encode_cpu(struct pstore_ftrace_record *rec, unsigned int cpu) in pstore_ftrace_encode_cpu() argument 26 rec->cpu = cpu; in pstore_ftrace_encode_cpu() 28 rec->ip |= cpu; in pstore_ftrace_encode_cpu() 33 pstore_ftrace_decode_cpu(struct pstore_ftrace_record *rec) in pstore_ftrace_decode_cpu() argument 36 return rec->cpu; in pstore_ftrace_decode_cpu() 38 return rec->ip & PSTORE_CPU_IN_IP; in pstore_ftrace_decode_cpu()
|
D | ftrace.c | 36 struct pstore_ftrace_record rec = {}; in pstore_ftrace_call() local 43 rec.ip = ip; in pstore_ftrace_call() 44 rec.parent_ip = parent_ip; in pstore_ftrace_call() 45 pstore_ftrace_encode_cpu(&rec, raw_smp_processor_id()); in pstore_ftrace_call() 46 psinfo->write_buf(PSTORE_TYPE_FTRACE, 0, NULL, 0, (void *)&rec, in pstore_ftrace_call() 47 0, sizeof(rec), psinfo); in pstore_ftrace_call()
|
D | inode.c | 108 struct pstore_ftrace_record *rec = (void *)(ps->data + data->off); in pstore_ftrace_seq_show() local 111 pstore_ftrace_decode_cpu(rec), rec->ip, rec->parent_ip, in pstore_ftrace_seq_show() 112 (void *)rec->ip, (void *)rec->parent_ip); in pstore_ftrace_seq_show()
|
/fs/btrfs/ |
D | reada.c | 152 struct reada_extctl *rec; in __readahead_hook() local 165 list_for_each_entry(rec, &list, list) { in __readahead_hook() 166 struct reada_control *rc = rec->rc; in __readahead_hook() 176 if (rec->generation != generation) { in __readahead_hook() 180 rec->generation, generation); in __readahead_hook() 183 if (rec->generation == generation && in __readahead_hook() 196 struct reada_extctl *rec; in __readahead_hook() local 198 rec = list_first_entry(&list, struct reada_extctl, list); in __readahead_hook() 199 list_del(&rec->list); in __readahead_hook() 200 rc = rec->rc; in __readahead_hook() [all …]
|