/fs/hfs/ |
D | inode.c | 290 hfs_cat_rec *rec; member 296 hfs_cat_rec *rec; in hfs_test_inode() local 298 rec = idata->rec; in hfs_test_inode() 299 switch (rec->type) { in hfs_test_inode() 301 return inode->i_ino == be32_to_cpu(rec->dir.DirID); in hfs_test_inode() 303 return inode->i_ino == be32_to_cpu(rec->file.FlNum); in hfs_test_inode() 317 hfs_cat_rec *rec; in hfs_read_inode() local 336 rec = idata->rec; in hfs_read_inode() 337 switch (rec->type) { in hfs_read_inode() 340 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 | 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 45 recoff = hfs_bnode_read_u16(node, node->tree->node_size - (rec + 1) * 2); in hfs_brec_keylen() 69 int size, key_len, rec; in hfs_brec_insert() local 88 rec = fd->record + 1; in hfs_brec_insert() 98 rec, size, end_off, end_rec_off); in hfs_brec_insert() 117 idx_rec_off = tree->node_size - (rec + 1) * 2; in hfs_brec_insert() 140 if (!rec && new_node != node) { in hfs_brec_insert() 357 int rec, rec_off, end_rec_off; in hfs_brec_update_parent() local [all …]
|
D | bfind.c | 59 int rec; in __hfs_brec_find() local 67 rec = (e + b) / 2; in __hfs_brec_find() 68 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find() 69 keylen = hfs_brec_keylen(bnode, rec); in __hfs_brec_find() 77 e = rec; in __hfs_brec_find() 82 b = rec + 1; in __hfs_brec_find() 84 e = rec - 1; in __hfs_brec_find() 86 if (rec != e && e >= 0) { in __hfs_brec_find() 161 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument 170 hfs_bnode_read(fd->bnode, rec, fd->entryoffset, fd->entrylength); in hfs_brec_read()
|
D | attr.c | 26 hfs_cat_rec rec; in __hfs_setxattr() local 40 hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, in __hfs_setxattr() 42 file = &rec.file; in __hfs_setxattr() 61 hfs_bnode_write(fd.bnode, &rec, fd.entryoffset, in __hfs_setxattr() 72 hfs_cat_rec rec; in __hfs_getxattr() local 87 hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, in __hfs_getxattr() 90 file = &rec.file; in __hfs_getxattr()
|
/fs/xfs/libxfs/ |
D | xfs_ialloc.c | 58 union xfs_btree_rec rec; in xfs_inobt_update() local 60 rec.inobt.ir_startino = cpu_to_be32(irec->ir_startino); in xfs_inobt_update() 62 rec.inobt.ir_u.sp.ir_holemask = cpu_to_be16(irec->ir_holemask); in xfs_inobt_update() 63 rec.inobt.ir_u.sp.ir_count = irec->ir_count; in xfs_inobt_update() 64 rec.inobt.ir_u.sp.ir_freecount = irec->ir_freecount; in xfs_inobt_update() 67 rec.inobt.ir_u.f.ir_freecount = cpu_to_be32(irec->ir_freecount); in xfs_inobt_update() 69 rec.inobt.ir_free = cpu_to_be64(irec->ir_free); in xfs_inobt_update() 70 return xfs_btree_update(cur, &rec); in xfs_inobt_update() 77 union xfs_btree_rec *rec, in xfs_inobt_btrec_to_irec() argument 80 irec->ir_startino = be32_to_cpu(rec->inobt.ir_startino); in xfs_inobt_btrec_to_irec() [all …]
|
D | xfs_alloc_btree.c | 112 union xfs_btree_rec *rec, in xfs_allocbt_update_lastrec() argument 132 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec() 135 if (be32_to_cpu(rec->alloc.ar_blockcount) <= in xfs_allocbt_update_lastrec() 138 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec() 187 union xfs_btree_rec *rec) in xfs_allocbt_init_key_from_rec() argument 189 key->alloc.ar_startblock = rec->alloc.ar_startblock; in xfs_allocbt_init_key_from_rec() 190 key->alloc.ar_blockcount = rec->alloc.ar_blockcount; in xfs_allocbt_init_key_from_rec() 196 union xfs_btree_rec *rec) in xfs_bnobt_init_high_key_from_rec() argument 200 x = be32_to_cpu(rec->alloc.ar_startblock); in xfs_bnobt_init_high_key_from_rec() 201 x += be32_to_cpu(rec->alloc.ar_blockcount) - 1; in xfs_bnobt_init_high_key_from_rec() [all …]
|
D | xfs_rmap_btree.c | 165 union xfs_btree_rec *rec) in xfs_rmapbt_init_key_from_rec() argument 167 key->rmap.rm_startblock = rec->rmap.rm_startblock; in xfs_rmapbt_init_key_from_rec() 168 key->rmap.rm_owner = rec->rmap.rm_owner; in xfs_rmapbt_init_key_from_rec() 169 key->rmap.rm_offset = rec->rmap.rm_offset; in xfs_rmapbt_init_key_from_rec() 182 union xfs_btree_rec *rec) in xfs_rmapbt_init_high_key_from_rec() argument 187 adj = be32_to_cpu(rec->rmap.rm_blockcount) - 1; in xfs_rmapbt_init_high_key_from_rec() 189 key->rmap.rm_startblock = rec->rmap.rm_startblock; in xfs_rmapbt_init_high_key_from_rec() 191 key->rmap.rm_owner = rec->rmap.rm_owner; in xfs_rmapbt_init_high_key_from_rec() 192 key->rmap.rm_offset = rec->rmap.rm_offset; in xfs_rmapbt_init_high_key_from_rec() 193 if (XFS_RMAP_NON_INODE_OWNER(be64_to_cpu(rec->rmap.rm_owner)) || in xfs_rmapbt_init_high_key_from_rec() [all …]
|
D | xfs_ialloc_btree.c | 171 union xfs_btree_rec *rec) in xfs_inobt_init_key_from_rec() argument 173 key->inobt.ir_startino = rec->inobt.ir_startino; in xfs_inobt_init_key_from_rec() 179 union xfs_btree_rec *rec) in xfs_inobt_init_high_key_from_rec() argument 183 x = be32_to_cpu(rec->inobt.ir_startino); in xfs_inobt_init_high_key_from_rec() 191 union xfs_btree_rec *rec) in xfs_inobt_init_rec_from_cur() argument 193 rec->inobt.ir_startino = cpu_to_be32(cur->bc_rec.i.ir_startino); in xfs_inobt_init_rec_from_cur() 195 rec->inobt.ir_u.sp.ir_holemask = in xfs_inobt_init_rec_from_cur() 197 rec->inobt.ir_u.sp.ir_count = cur->bc_rec.i.ir_count; in xfs_inobt_init_rec_from_cur() 198 rec->inobt.ir_u.sp.ir_freecount = cur->bc_rec.i.ir_freecount; in xfs_inobt_init_rec_from_cur() 201 rec->inobt.ir_u.f.ir_freecount = in xfs_inobt_init_rec_from_cur() [all …]
|
D | xfs_iext_tree.c | 41 static bool xfs_iext_rec_is_empty(struct xfs_iext_rec *rec) in xfs_iext_rec_is_empty() argument 43 return rec->hi == 0; in xfs_iext_rec_is_empty() 46 static inline void xfs_iext_rec_clear(struct xfs_iext_rec *rec) in xfs_iext_rec_clear() argument 48 rec->lo = 0; in xfs_iext_rec_clear() 49 rec->hi = 0; in xfs_iext_rec_clear() 54 struct xfs_iext_rec *rec, in xfs_iext_set() argument 61 rec->lo = irec->br_startoff & XFS_IEXT_STARTOFF_MASK; in xfs_iext_set() 62 rec->hi = irec->br_blockcount & XFS_IEXT_LENGTH_MASK; in xfs_iext_set() 64 rec->lo |= (irec->br_startblock << 54); in xfs_iext_set() 65 rec->hi |= ((irec->br_startblock & ~xfs_mask64lo(10)) << (22 - 10)); in xfs_iext_set() [all …]
|
D | xfs_rmap.c | 79 union xfs_btree_rec rec; in xfs_rmap_update() local 86 rec.rmap.rm_startblock = cpu_to_be32(irec->rm_startblock); in xfs_rmap_update() 87 rec.rmap.rm_blockcount = cpu_to_be32(irec->rm_blockcount); in xfs_rmap_update() 88 rec.rmap.rm_owner = cpu_to_be64(irec->rm_owner); in xfs_rmap_update() 89 rec.rmap.rm_offset = cpu_to_be64( in xfs_rmap_update() 91 error = xfs_btree_update(cur, &rec); in xfs_rmap_update() 168 union xfs_btree_rec *rec, in xfs_rmap_btrec_to_irec() argument 171 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock); in xfs_rmap_btrec_to_irec() 172 irec->rm_blockcount = be32_to_cpu(rec->rmap.rm_blockcount); in xfs_rmap_btrec_to_irec() 173 irec->rm_owner = be64_to_cpu(rec->rmap.rm_owner); in xfs_rmap_btrec_to_irec() [all …]
|
D | xfs_refcount_btree.c | 140 union xfs_btree_rec *rec) in xfs_refcountbt_init_key_from_rec() argument 142 key->refc.rc_startblock = rec->refc.rc_startblock; in xfs_refcountbt_init_key_from_rec() 148 union xfs_btree_rec *rec) in xfs_refcountbt_init_high_key_from_rec() argument 152 x = be32_to_cpu(rec->refc.rc_startblock); in xfs_refcountbt_init_high_key_from_rec() 153 x += be32_to_cpu(rec->refc.rc_blockcount) - 1; in xfs_refcountbt_init_high_key_from_rec() 160 union xfs_btree_rec *rec) in xfs_refcountbt_init_rec_from_cur() argument 162 rec->refc.rc_startblock = cpu_to_be32(cur->bc_rec.rc.rc_startblock); in xfs_refcountbt_init_rec_from_cur() 163 rec->refc.rc_blockcount = cpu_to_be32(cur->bc_rec.rc.rc_blockcount); in xfs_refcountbt_init_rec_from_cur() 164 rec->refc.rc_refcount = cpu_to_be32(cur->bc_rec.rc.rc_refcount); in xfs_refcountbt_init_rec_from_cur() 184 struct xfs_refcount_irec *rec = &cur->bc_rec.rc; in xfs_refcountbt_key_diff() local [all …]
|
/fs/ocfs2/ |
D | extent_map.c | 216 struct ocfs2_extent_rec *rec) in ocfs2_extent_map_insert_rec() argument 223 ins.ei_cpos = le32_to_cpu(rec->e_cpos); in ocfs2_extent_map_insert_rec() 225 le64_to_cpu(rec->e_blkno)); in ocfs2_extent_map_insert_rec() 226 ins.ei_clusters = le16_to_cpu(rec->e_leaf_clusters); in ocfs2_extent_map_insert_rec() 227 ins.ei_flags = rec->e_flags; in ocfs2_extent_map_insert_rec() 322 struct ocfs2_extent_rec *rec; in ocfs2_search_for_hole_index() local 325 rec = &el->l_recs[i]; in ocfs2_search_for_hole_index() 327 if (v_cluster < le32_to_cpu(rec->e_cpos)) in ocfs2_search_for_hole_index() 408 struct ocfs2_extent_rec *rec; in ocfs2_get_clusters_nocache() local 461 rec = &el->l_recs[i]; in ocfs2_get_clusters_nocache() [all …]
|
D | alloc.c | 89 struct ocfs2_extent_rec *rec); 103 struct ocfs2_extent_rec *rec); 147 struct ocfs2_extent_rec *rec); 151 struct ocfs2_extent_rec *rec); 202 struct ocfs2_extent_rec *rec) in ocfs2_dinode_extent_map_insert() argument 206 ocfs2_extent_map_insert_rec(inode, rec); in ocfs2_dinode_extent_map_insert() 218 struct ocfs2_extent_rec *rec) in ocfs2_dinode_insert_check() argument 225 (oi->ip_clusters != le32_to_cpu(rec->e_cpos)), in ocfs2_dinode_insert_check() 230 rec->e_cpos, oi->ip_clusters); in ocfs2_dinode_insert_check() 511 struct ocfs2_extent_rec *rec) in ocfs2_et_extent_map_insert() argument [all …]
|
D | refcounttree.c | 883 struct ocfs2_refcount_rec *rec = NULL; in ocfs2_find_refcount_rec_in_rl() local 886 rec = &rb->rf_records.rl_recs[i]; in ocfs2_find_refcount_rec_in_rl() 888 if (le64_to_cpu(rec->r_cpos) + in ocfs2_find_refcount_rec_in_rl() 889 le32_to_cpu(rec->r_clusters) <= cpos) in ocfs2_find_refcount_rec_in_rl() 891 else if (le64_to_cpu(rec->r_cpos) > cpos) in ocfs2_find_refcount_rec_in_rl() 896 *ret_rec = *rec; in ocfs2_find_refcount_rec_in_rl() 905 le64_to_cpu(rec->r_cpos) < cpos + len) in ocfs2_find_refcount_rec_in_rl() 907 cpu_to_le32(le64_to_cpu(rec->r_cpos) - cpos); in ocfs2_find_refcount_rec_in_rl() 1066 struct ocfs2_extent_rec *rec = NULL; in ocfs2_get_refcount_rec() local 1105 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 …]
|
/fs/hfsplus/ |
D | brec.c | 20 u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off) in hfs_brec_lenoff() argument 25 dataoff = node->tree->node_size - (rec + 2) * 2; in hfs_brec_lenoff() 32 u16 hfs_brec_keylen(struct hfs_bnode *node, u16 rec) in hfs_brec_keylen() argument 45 node->tree->node_size - (rec + 1) * 2); in hfs_brec_keylen() 67 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() 117 idx_rec_off = tree->node_size - (rec + 1) * 2; in hfs_brec_insert() 140 if (!rec && new_node != node) { in hfs_brec_insert() 361 int rec, rec_off, end_rec_off; in hfs_brec_update_parent() local [all …]
|
D | bfind.c | 118 int rec; in __hfs_brec_find() local 127 rec = (e + b) / 2; in __hfs_brec_find() 128 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find() 129 keylen = hfs_brec_keylen(bnode, rec); in __hfs_brec_find() 135 if (rec_found(bnode, fd, &b, &e, &rec)) { in __hfs_brec_find() 141 if (rec != e && e >= 0) { in __hfs_brec_find() 218 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument 227 hfs_bnode_read(fd->bnode, rec, fd->entryoffset, fd->entrylength); in hfs_brec_read()
|
/fs/xfs/ |
D | xfs_fsmap.c | 194 struct xfs_rmap_irec *rec, in xfs_getfsmap_is_shared() argument 215 error = xfs_refcount_find_shared(cur, rec->rm_startblock, in xfs_getfsmap_is_shared() 216 rec->rm_blockcount, &fbno, &flen, false); in xfs_getfsmap_is_shared() 232 struct fsmap *rec; in xfs_getfsmap_format() local 236 rec = &info->fsmap_recs[info->head->fmh_entries++]; in xfs_getfsmap_format() 237 xfs_fsmap_from_internal(rec, xfm); in xfs_getfsmap_format() 248 struct xfs_rmap_irec *rec, in xfs_getfsmap_helper() argument 263 if (xfs_rmap_compare(rec, &info->low) < 0) { in xfs_getfsmap_helper() 264 rec_daddr += XFS_FSB_TO_BB(mp, rec->rm_blockcount); in xfs_getfsmap_helper() 283 rec_daddr += XFS_FSB_TO_BB(mp, rec->rm_blockcount); in xfs_getfsmap_helper() [all …]
|
/fs/pstore/ |
D | ftrace.c | 31 struct pstore_ftrace_record rec = {}; in pstore_ftrace_call() local 34 .buf = (char *)&rec, in pstore_ftrace_call() 35 .size = sizeof(rec), in pstore_ftrace_call() 44 rec.ip = ip; in pstore_ftrace_call() 45 rec.parent_ip = parent_ip; in pstore_ftrace_call() 46 pstore_ftrace_write_timestamp(&rec, pstore_ftrace_stamp++); in pstore_ftrace_call() 47 pstore_ftrace_encode_cpu(&rec, raw_smp_processor_id()); in pstore_ftrace_call()
|
D | inode.c | 102 struct pstore_ftrace_record *rec; in pstore_ftrace_seq_show() local 107 rec = (struct pstore_ftrace_record *)(ps->record->buf + data->off); in pstore_ftrace_seq_show() 110 pstore_ftrace_decode_cpu(rec), in pstore_ftrace_seq_show() 111 pstore_ftrace_read_timestamp(rec), in pstore_ftrace_seq_show() 112 rec->ip, rec->parent_ip, (void *)rec->ip, in pstore_ftrace_seq_show() 113 (void *)rec->parent_ip); in pstore_ftrace_seq_show()
|
/fs/xfs/scrub/ |
D | bmap.c | 391 union xfs_btree_rec *rec) in xchk_bmapbt_rec() argument 429 xfs_bmbt_disk_get_all(&rec->bmbt, &irec); in xchk_bmapbt_rec() 482 struct xfs_rmap_irec *rec, in xchk_bmap_check_rmap() argument 492 if (rec->rm_owner != sc->ip->i_ino) in xchk_bmap_check_rmap() 495 !!(rec->rm_flags & XFS_RMAP_ATTR_FORK)) in xchk_bmap_check_rmap() 497 if (rec->rm_flags & XFS_RMAP_BMBT_BLOCK) in xchk_bmap_check_rmap() 504 rec->rm_offset); in xchk_bmap_check_rmap() 507 have_map = xfs_iext_lookup_extent(sc->ip, ifp, rec->rm_offset, in xchk_bmap_check_rmap() 511 rec->rm_offset); in xchk_bmap_check_rmap() 520 if (irec.br_startoff != rec->rm_offset) in xchk_bmap_check_rmap() [all …]
|
D | refcount.c | 94 struct xfs_rmap_irec *rec, in xchk_refcountbt_rmap_check() argument 106 rm_last = rec->rm_startblock + rec->rm_blockcount - 1; in xchk_refcountbt_rmap_check() 110 if (refchk->refcount == 1 && rec->rm_owner != XFS_RMAP_OWN_COW) { in xchk_refcountbt_rmap_check() 115 if (rec->rm_startblock <= refchk->bno && rm_last >= rc_last) { in xchk_refcountbt_rmap_check() 132 memcpy(&frag->rm, rec, sizeof(frag->rm)); in xchk_refcountbt_rmap_check() 333 union xfs_btree_rec *rec) in xchk_refcountbt_rec() argument 343 bno = be32_to_cpu(rec->refc.rc_startblock); in xchk_refcountbt_rec() 344 len = be32_to_cpu(rec->refc.rc_blockcount); in xchk_refcountbt_rec() 345 refcount = be32_to_cpu(rec->refc.rc_refcount); in xchk_refcountbt_rec()
|
/fs/btrfs/ |
D | reada.c | 134 struct reada_extctl *rec; in __readahead_hook() local 147 list_for_each_entry(rec, &list, list) { in __readahead_hook() 148 struct reada_control *rc = rec->rc; in __readahead_hook() 158 if (rec->generation != generation) { in __readahead_hook() 162 rec->generation, generation); in __readahead_hook() 165 if (rec->generation == generation && in __readahead_hook() 178 struct reada_extctl *rec; in __readahead_hook() local 180 rec = list_first_entry(&list, struct reada_extctl, list); in __readahead_hook() 181 list_del(&rec->list); in __readahead_hook() 182 rc = rec->rc; in __readahead_hook() [all …]
|
/fs/ext4/ |
D | fsmap.c | 75 struct ext4_fsmap *rec) in ext4_getfsmap_rec_before_low_key() argument 77 return rec->fmr_physical < info->gfi_low.fmr_physical; in ext4_getfsmap_rec_before_low_key() 86 struct ext4_fsmap *rec) in ext4_getfsmap_helper() argument 90 ext4_fsblk_t rec_fsblk = rec->fmr_physical; in ext4_getfsmap_helper() 102 if (ext4_getfsmap_rec_before_low_key(info, rec)) { in ext4_getfsmap_helper() 103 rec_fsblk += rec->fmr_length; in ext4_getfsmap_helper() 122 rec_fsblk += rec->fmr_length; in ext4_getfsmap_helper() 164 rec->fmr_length, rec->fmr_owner); in ext4_getfsmap_helper() 168 fmr.fmr_owner = rec->fmr_owner; in ext4_getfsmap_helper() 170 fmr.fmr_length = rec->fmr_length; in ext4_getfsmap_helper() [all …]
|