Home
last modified time | relevance | path

Searched refs:rec (Results 1 – 25 of 54) sorted by relevance

123

/fs/hfs/
Dinode.c290 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 …]
Dcatalog.c36 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 …]
Dbrec.c19 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 …]
Dbfind.c47 int rec; in __hfs_brec_find() local
55 rec = (e + b) / 2; in __hfs_brec_find()
56 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find()
57 keylen = hfs_brec_keylen(bnode, rec); in __hfs_brec_find()
65 e = rec; in __hfs_brec_find()
70 b = rec + 1; in __hfs_brec_find()
72 e = rec - 1; in __hfs_brec_find()
74 if (rec != e && e >= 0) { in __hfs_brec_find()
149 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument
158 hfs_bnode_read(fd->bnode, rec, fd->entryoffset, fd->entrylength); in hfs_brec_read()
Dattr.c26 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/
Dxfs_ialloc.c86 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()
105 union xfs_btree_rec *rec, in xfs_inobt_btrec_to_irec() argument
108 irec->ir_startino = be32_to_cpu(rec->inobt.ir_startino); in xfs_inobt_btrec_to_irec()
[all …]
Dxfs_alloc_btree.c131 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 key->alloc.ar_startblock = rec->alloc.ar_startblock; in xfs_allocbt_init_key_from_rec()
209 key->alloc.ar_blockcount = rec->alloc.ar_blockcount; in xfs_allocbt_init_key_from_rec()
215 union xfs_btree_rec *rec) in xfs_bnobt_init_high_key_from_rec() argument
219 x = be32_to_cpu(rec->alloc.ar_startblock); in xfs_bnobt_init_high_key_from_rec()
220 x += be32_to_cpu(rec->alloc.ar_blockcount) - 1; in xfs_bnobt_init_high_key_from_rec()
[all …]
Dxfs_rmap_btree.c183 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 …]
Dxfs_ialloc_btree.c172 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_high_key_from_rec() argument
184 x = be32_to_cpu(rec->inobt.ir_startino); in xfs_inobt_init_high_key_from_rec()
192 union xfs_btree_rec *rec) in xfs_inobt_init_rec_from_cur() argument
194 rec->inobt.ir_startino = cpu_to_be32(cur->bc_rec.i.ir_startino); in xfs_inobt_init_rec_from_cur()
196 rec->inobt.ir_u.sp.ir_holemask = in xfs_inobt_init_rec_from_cur()
198 rec->inobt.ir_u.sp.ir_count = cur->bc_rec.i.ir_count; in xfs_inobt_init_rec_from_cur()
199 rec->inobt.ir_u.sp.ir_freecount = cur->bc_rec.i.ir_freecount; in xfs_inobt_init_rec_from_cur()
202 rec->inobt.ir_u.f.ir_freecount = in xfs_inobt_init_rec_from_cur()
[all …]
Dxfs_refcount_btree.c165 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 …]
Dxfs_rmap.c96 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()
185 union xfs_btree_rec *rec, in xfs_rmap_btrec_to_irec() argument
189 irec->rm_startblock = be32_to_cpu(rec->rmap.rm_startblock); in xfs_rmap_btrec_to_irec()
190 irec->rm_blockcount = be32_to_cpu(rec->rmap.rm_blockcount); in xfs_rmap_btrec_to_irec()
191 irec->rm_owner = be64_to_cpu(rec->rmap.rm_owner); in xfs_rmap_btrec_to_irec()
[all …]
Dxfs_refcount.c93 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/
Dextent_map.c228 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 …]
Dalloc.c103 struct ocfs2_extent_rec *rec);
117 struct ocfs2_extent_rec *rec);
161 struct ocfs2_extent_rec *rec);
165 struct ocfs2_extent_rec *rec);
209 struct ocfs2_extent_rec *rec) in ocfs2_dinode_extent_map_insert() argument
213 ocfs2_extent_map_insert_rec(inode, rec); in ocfs2_dinode_extent_map_insert()
225 struct ocfs2_extent_rec *rec) in ocfs2_dinode_insert_check() argument
232 (oi->ip_clusters != le32_to_cpu(rec->e_cpos)), in ocfs2_dinode_insert_check()
237 rec->e_cpos, oi->ip_clusters); in ocfs2_dinode_insert_check()
517 struct ocfs2_extent_rec *rec) in ocfs2_et_extent_map_insert() argument
[all …]
Dquota_local.c329 void ocfs2_free_quota_recovery(struct ocfs2_quota_recovery *rec) in ocfs2_free_quota_recovery() argument
334 free_recovery_list(&(rec->r_list[type])); in ocfs2_free_quota_recovery()
335 kfree(rec); in ocfs2_free_quota_recovery()
374 struct ocfs2_quota_recovery *rec; in ocfs2_alloc_quota_recovery() local
376 rec = kmalloc(sizeof(struct ocfs2_quota_recovery), GFP_NOFS); in ocfs2_alloc_quota_recovery()
377 if (!rec) in ocfs2_alloc_quota_recovery()
380 INIT_LIST_HEAD(&(rec->r_list[type])); in ocfs2_alloc_quota_recovery()
381 return rec; in ocfs2_alloc_quota_recovery()
400 struct ocfs2_quota_recovery *rec; in ocfs2_begin_quota_recovery() local
405 rec = ocfs2_alloc_quota_recovery(); in ocfs2_begin_quota_recovery()
[all …]
Drefcounttree.c891 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 …]
Dalloc.h248 struct ocfs2_extent_rec *rec) in ocfs2_rec_clusters() argument
258 return le32_to_cpu(rec->e_int_clusters); in ocfs2_rec_clusters()
260 return le16_to_cpu(rec->e_leaf_clusters); in ocfs2_rec_clusters()
267 static inline int ocfs2_is_empty_extent(struct ocfs2_extent_rec *rec) in ocfs2_is_empty_extent() argument
269 return !rec->e_leaf_clusters; in ocfs2_is_empty_extent()
Dmove_extents.c67 struct ocfs2_extent_rec *rec, replace_rec; in __ocfs2_move_extent() local
109 rec = &el->l_recs[index]; in __ocfs2_move_extent()
111 BUG_ON(ext_flags != rec->e_flags); in __ocfs2_move_extent()
394 struct ocfs2_chain_rec *rec; in ocfs2_find_victim_alloc_group() local
414 rec = &(cl->cl_recs[0]); in ocfs2_find_victim_alloc_group()
422 if ((vict_blkno < le64_to_cpu(rec->c_blkno)) || in ocfs2_find_victim_alloc_group()
431 rec = &(cl->cl_recs[i]); in ocfs2_find_victim_alloc_group()
432 if (!rec) in ocfs2_find_victim_alloc_group()
439 blkno = le64_to_cpu(rec->c_blkno); in ocfs2_find_victim_alloc_group()
/fs/hfsplus/
Dbrec.c20 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
85 rec = fd->record + 1; in hfs_brec_insert()
95 rec, size, end_off, end_rec_off); in hfs_brec_insert()
116 idx_rec_off = tree->node_size - (rec + 1) * 2; in hfs_brec_insert()
139 if (!rec && new_node != node) { in hfs_brec_insert()
360 int rec, rec_off, end_rec_off; in hfs_brec_update_parent() local
[all …]
Dbfind.c118 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/
Dxfs_fsmap.c212 struct xfs_rmap_irec *rec, in xfs_getfsmap_is_shared() argument
233 error = xfs_refcount_find_shared(cur, rec->rm_startblock, in xfs_getfsmap_is_shared()
234 rec->rm_blockcount, &fbno, &flen, false); in xfs_getfsmap_is_shared()
252 struct xfs_rmap_irec *rec, in xfs_getfsmap_helper() argument
267 if (xfs_rmap_compare(rec, &info->low) < 0) { in xfs_getfsmap_helper()
268 rec_daddr += XFS_FSB_TO_BB(mp, rec->rm_blockcount); in xfs_getfsmap_helper()
284 rec_daddr += XFS_FSB_TO_BB(mp, rec->rm_blockcount); in xfs_getfsmap_helper()
318 trace_xfs_fsmap_mapping(mp, info->dev, info->agno, rec); in xfs_getfsmap_helper()
322 error = xfs_fsmap_owner_from_rmap(&fmr, rec); in xfs_getfsmap_helper()
325 fmr.fmr_offset = XFS_FSB_TO_BB(mp, rec->rm_offset); in xfs_getfsmap_helper()
[all …]
/fs/pstore/
Dftrace.c39 struct pstore_ftrace_record rec = {}; in pstore_ftrace_call() local
42 .buf = (char *)&rec, in pstore_ftrace_call()
43 .size = sizeof(rec), in pstore_ftrace_call()
52 rec.ip = ip; in pstore_ftrace_call()
53 rec.parent_ip = parent_ip; in pstore_ftrace_call()
54 pstore_ftrace_write_timestamp(&rec, pstore_ftrace_stamp++); in pstore_ftrace_call()
55 pstore_ftrace_encode_cpu(&rec, raw_smp_processor_id()); in pstore_ftrace_call()
Dinode.c114 struct pstore_ftrace_record *rec; in pstore_ftrace_seq_show() local
116 rec = (struct pstore_ftrace_record *)(ps->record->buf + data->off); in pstore_ftrace_seq_show()
119 pstore_ftrace_decode_cpu(rec), in pstore_ftrace_seq_show()
120 pstore_ftrace_read_timestamp(rec), in pstore_ftrace_seq_show()
121 rec->ip, rec->parent_ip, (void *)rec->ip, in pstore_ftrace_seq_show()
122 (void *)rec->parent_ip); in pstore_ftrace_seq_show()
/fs/btrfs/
Dreada.c147 struct reada_extctl *rec; in __readahead_hook() local
160 list_for_each_entry(rec, &list, list) { in __readahead_hook()
161 struct reada_control *rc = rec->rc; in __readahead_hook()
171 if (rec->generation != generation) { in __readahead_hook()
175 rec->generation, generation); in __readahead_hook()
178 if (rec->generation == generation && in __readahead_hook()
191 struct reada_extctl *rec; in __readahead_hook() local
193 rec = list_first_entry(&list, struct reada_extctl, list); in __readahead_hook()
194 list_del(&rec->list); in __readahead_hook()
195 rc = rec->rc; in __readahead_hook()
[all …]
/fs/ext4/
Dfsmap.c88 struct ext4_fsmap *rec) in ext4_getfsmap_rec_before_low_key() argument
90 return rec->fmr_physical < info->gfi_low.fmr_physical; in ext4_getfsmap_rec_before_low_key()
99 struct ext4_fsmap *rec) in ext4_getfsmap_helper() argument
103 ext4_fsblk_t rec_fsblk = rec->fmr_physical; in ext4_getfsmap_helper()
115 if (ext4_getfsmap_rec_before_low_key(info, rec)) { in ext4_getfsmap_helper()
116 rec_fsblk += rec->fmr_length; in ext4_getfsmap_helper()
132 rec_fsblk += rec->fmr_length; in ext4_getfsmap_helper()
174 rec->fmr_length, rec->fmr_owner); in ext4_getfsmap_helper()
178 fmr.fmr_owner = rec->fmr_owner; in ext4_getfsmap_helper()
180 fmr.fmr_length = rec->fmr_length; in ext4_getfsmap_helper()
[all …]

123