/fs/hfs/ |
D | inode.c | 253 hfs_cat_rec *rec; member 259 hfs_cat_rec *rec; in hfs_test_inode() local 261 rec = idata->rec; in hfs_test_inode() 262 switch (rec->type) { in hfs_test_inode() 264 return inode->i_ino == be32_to_cpu(rec->dir.DirID); in hfs_test_inode() 266 return inode->i_ino == be32_to_cpu(rec->file.FlNum); in hfs_test_inode() 280 hfs_cat_rec *rec; in hfs_read_inode() local 298 rec = idata->rec; in hfs_read_inode() 299 switch (rec->type) { in hfs_read_inode() 302 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() 70 int size, key_len, rec; in hfs_brec_insert() local 88 rec = fd->record + 1; in hfs_brec_insert() 97 dprint(DBG_BNODE_MOD, "insert_rec: %d, %d, %d, %d\n", 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() 170 if (!rec) in hfs_brec_insert() [all …]
|
D | attr.c | 21 hfs_cat_rec rec; in hfs_setxattr() local 35 hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, in hfs_setxattr() 37 file = &rec.file; in hfs_setxattr() 52 hfs_bnode_write(fd.bnode, &rec, fd.entryoffset, in hfs_setxattr() 64 hfs_cat_rec rec; in hfs_getxattr() local 79 hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, in hfs_getxattr() 82 file = &rec.file; in hfs_getxattr()
|
D | bfind.c | 44 int rec; in __hfs_brec_find() local 52 rec = (e + b) / 2; in __hfs_brec_find() 53 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find() 54 keylen = hfs_brec_keylen(bnode, rec); in __hfs_brec_find() 62 e = rec; in __hfs_brec_find() 67 b = rec + 1; in __hfs_brec_find() 69 e = rec - 1; in __hfs_brec_find() 71 if (rec != e && e >= 0) { in __hfs_brec_find() 146 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument 155 hfs_bnode_read(fd->bnode, rec, fd->entryoffset, fd->entrylength); in hfs_brec_read()
|
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()
|
D | super.c | 357 hfs_cat_rec rec; in hfs_fill_super() local 390 hfs_bnode_read(fd.bnode, &rec, fd.entryoffset, fd.entrylength); in hfs_fill_super() 396 root_inode = hfs_iget(sb, &fd.search_key->cat, &rec); in hfs_fill_super()
|
/fs/ocfs2/ |
D | extent_map.c | 226 struct ocfs2_extent_rec *rec) in ocfs2_extent_map_insert_rec() argument 233 ins.ei_cpos = le32_to_cpu(rec->e_cpos); in ocfs2_extent_map_insert_rec() 235 le64_to_cpu(rec->e_blkno)); in ocfs2_extent_map_insert_rec() 236 ins.ei_clusters = le16_to_cpu(rec->e_leaf_clusters); in ocfs2_extent_map_insert_rec() 237 ins.ei_flags = rec->e_flags; in ocfs2_extent_map_insert_rec() 333 struct ocfs2_extent_rec *rec; in ocfs2_search_for_hole_index() local 336 rec = &el->l_recs[i]; in ocfs2_search_for_hole_index() 338 if (v_cluster < le32_to_cpu(rec->e_cpos)) in ocfs2_search_for_hole_index() 419 struct ocfs2_extent_rec *rec; in ocfs2_get_clusters_nocache() local 470 rec = &el->l_recs[i]; in ocfs2_get_clusters_nocache() [all …]
|
D | alloc.c | 92 struct ocfs2_extent_rec *rec); 129 struct ocfs2_extent_rec *rec); 173 struct ocfs2_extent_rec *rec) in ocfs2_dinode_insert_check() argument 180 le32_to_cpu(rec->e_cpos)), in ocfs2_dinode_insert_check() 185 rec->e_cpos, in ocfs2_dinode_insert_check() 371 struct ocfs2_extent_rec *rec) in ocfs2_et_insert_check() argument 376 ret = et->et_ops->eo_insert_check(inode, et, rec); in ocfs2_et_insert_check() 622 struct ocfs2_extent_rec *rec; in ocfs2_search_extent_list() local 626 rec = &el->l_recs[i]; in ocfs2_search_extent_list() 628 rec_start = le32_to_cpu(rec->e_cpos); in ocfs2_search_extent_list() [all …]
|
D | quota_local.c | 302 void ocfs2_free_quota_recovery(struct ocfs2_quota_recovery *rec) in ocfs2_free_quota_recovery() argument 307 free_recovery_list(&(rec->r_list[type])); in ocfs2_free_quota_recovery() 308 kfree(rec); in ocfs2_free_quota_recovery() 347 struct ocfs2_quota_recovery *rec; in ocfs2_alloc_quota_recovery() local 349 rec = kmalloc(sizeof(struct ocfs2_quota_recovery), GFP_NOFS); in ocfs2_alloc_quota_recovery() 350 if (!rec) in ocfs2_alloc_quota_recovery() 353 INIT_LIST_HEAD(&(rec->r_list[type])); in ocfs2_alloc_quota_recovery() 354 return rec; in ocfs2_alloc_quota_recovery() 372 struct ocfs2_quota_recovery *rec; in ocfs2_begin_quota_recovery() local 375 rec = ocfs2_alloc_quota_recovery(); in ocfs2_begin_quota_recovery() [all …]
|
D | alloc.h | 230 struct ocfs2_extent_rec *rec) in ocfs2_rec_clusters() argument 240 return le32_to_cpu(rec->e_int_clusters); in ocfs2_rec_clusters() 242 return le16_to_cpu(rec->e_leaf_clusters); in ocfs2_rec_clusters() 249 static inline int ocfs2_is_empty_extent(struct ocfs2_extent_rec *rec) in ocfs2_is_empty_extent() argument 251 return !rec->e_leaf_clusters; in ocfs2_is_empty_extent()
|
D | quota.h | 88 struct ocfs2_quota_recovery *rec, 90 void ocfs2_free_quota_recovery(struct ocfs2_quota_recovery *rec);
|
D | extent_map.h | 46 struct ocfs2_extent_rec *rec);
|
/fs/xfs/ |
D | xfs_ialloc.c | 124 union xfs_btree_rec rec; in xfs_inobt_update() local 126 rec.inobt.ir_startino = cpu_to_be32(ino); in xfs_inobt_update() 127 rec.inobt.ir_freecount = cpu_to_be32(fcnt); in xfs_inobt_update() 128 rec.inobt.ir_free = cpu_to_be64(free); in xfs_inobt_update() 129 return xfs_btree_update(cur, &rec); in xfs_inobt_update() 143 union xfs_btree_rec *rec; in xfs_inobt_get_rec() local 146 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_inobt_get_rec() 148 *ino = be32_to_cpu(rec->inobt.ir_startino); in xfs_inobt_get_rec() 149 *fcnt = be32_to_cpu(rec->inobt.ir_freecount); in xfs_inobt_get_rec() 150 *free = be64_to_cpu(rec->inobt.ir_free); in xfs_inobt_get_rec() [all …]
|
D | xfs_alloc_btree.c | 146 union xfs_btree_rec *rec, in xfs_allocbt_update_lastrec() argument 165 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec() 168 if (be32_to_cpu(rec->alloc.ar_blockcount) <= in xfs_allocbt_update_lastrec() 171 len = rec->alloc.ar_blockcount; in xfs_allocbt_update_lastrec() 218 union xfs_btree_rec *rec) in xfs_allocbt_init_key_from_rec() argument 220 ASSERT(rec->alloc.ar_startblock != 0); in xfs_allocbt_init_key_from_rec() 222 key->alloc.ar_startblock = rec->alloc.ar_startblock; in xfs_allocbt_init_key_from_rec() 223 key->alloc.ar_blockcount = rec->alloc.ar_blockcount; in xfs_allocbt_init_key_from_rec() 229 union xfs_btree_rec *rec) in xfs_allocbt_init_rec_from_key() argument 233 rec->alloc.ar_startblock = key->alloc.ar_startblock; in xfs_allocbt_init_rec_from_key() [all …]
|
D | xfs_ialloc_btree.c | 143 union xfs_btree_rec *rec) in xfs_inobt_init_key_from_rec() argument 145 key->inobt.ir_startino = rec->inobt.ir_startino; in xfs_inobt_init_key_from_rec() 151 union xfs_btree_rec *rec) in xfs_inobt_init_rec_from_key() argument 153 rec->inobt.ir_startino = key->inobt.ir_startino; in xfs_inobt_init_rec_from_key() 159 union xfs_btree_rec *rec) in xfs_inobt_init_rec_from_cur() argument 161 rec->inobt.ir_startino = cpu_to_be32(cur->bc_rec.i.ir_startino); in xfs_inobt_init_rec_from_cur() 162 rec->inobt.ir_freecount = cpu_to_be32(cur->bc_rec.i.ir_freecount); in xfs_inobt_init_rec_from_cur() 163 rec->inobt.ir_free = cpu_to_be64(cur->bc_rec.i.ir_free); in xfs_inobt_init_rec_from_cur() 299 union xfs_btree_rec *rec, in xfs_inobt_trace_record() argument 304 *l0 = be32_to_cpu(rec->inobt.ir_startino); in xfs_inobt_trace_record() [all …]
|
D | xfs_btree_trace.c | 147 union xfs_btree_rec *rec, in xfs_btree_trace_argipr() argument 154 cur->bc_ops->trace_record(cur, rec, &l0, &l1, &l2); in xfs_btree_trace_argipr() 192 union xfs_btree_rec *rec, in xfs_btree_trace_argr() argument 197 cur->bc_ops->trace_record(cur, rec, &l0, &l1, &l2); in xfs_btree_trace_argr()
|
D | xfs_btree.h | 169 union xfs_btree_rec *rec, 181 union xfs_btree_rec *rec); 183 union xfs_btree_rec *rec); 185 union xfs_btree_rec *rec);
|
D | xfs_bmap_btree.c | 686 union xfs_btree_rec *rec) in xfs_bmbt_init_key_from_rec() argument 689 cpu_to_be64(xfs_bmbt_disk_get_startoff(&rec->bmbt)); in xfs_bmbt_init_key_from_rec() 695 union xfs_btree_rec *rec) in xfs_bmbt_init_rec_from_key() argument 699 xfs_bmbt_disk_set_allf(&rec->bmbt, be64_to_cpu(key->bmbt.br_startoff), in xfs_bmbt_init_rec_from_key() 706 union xfs_btree_rec *rec) in xfs_bmbt_init_rec_from_cur() argument 708 xfs_bmbt_disk_set_all(&rec->bmbt, &cur->bc_rec.b); in xfs_bmbt_init_rec_from_cur() 822 union xfs_btree_rec *rec, in xfs_bmbt_trace_record() argument 829 xfs_bmbt_disk_get_all(&rec->bmbt, &irec); in xfs_bmbt_trace_record()
|
D | xfs_btree.c | 1137 union xfs_btree_rec *rec, in xfs_btree_shift_recs() argument 1146 dst_rec = (char *)rec + (dir * cur->bc_ops->rec_len); in xfs_btree_shift_recs() 1147 memmove(dst_rec, rec, numrecs * cur->bc_ops->rec_len); in xfs_btree_shift_recs() 1767 union xfs_btree_rec *rec) in xfs_btree_update() argument 1776 XFS_BTREE_TRACE_ARGR(cur, rec); in xfs_btree_update() 1791 xfs_btree_copy_recs(cur, rp, rec, 1); in xfs_btree_update() 1799 cur->bc_ops->update_lastrec(cur, block, rec, in xfs_btree_update() 1807 cur->bc_ops->init_key_from_rec(&key, rec); in xfs_btree_update() 2889 union xfs_btree_rec rec; /* record to insert */ in xfs_btree_insert() local 2896 cur->bc_ops->init_rec_from_cur(cur, &rec); in xfs_btree_insert() [all …]
|
D | xfs_alloc.c | 150 union xfs_btree_rec rec; in xfs_alloc_update() local 152 rec.alloc.ar_startblock = cpu_to_be32(bno); in xfs_alloc_update() 153 rec.alloc.ar_blockcount = cpu_to_be32(len); in xfs_alloc_update() 154 return xfs_btree_update(cur, &rec); in xfs_alloc_update() 167 union xfs_btree_rec *rec; in xfs_alloc_get_rec() local 170 error = xfs_btree_get_rec(cur, &rec, stat); in xfs_alloc_get_rec() 172 *bno = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_get_rec() 173 *len = be32_to_cpu(rec->alloc.ar_blockcount); in xfs_alloc_get_rec()
|
/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 42 recoff = hfs_bnode_read_u16(node, node->tree->node_size - (rec + 1) * 2); in hfs_brec_keylen() 57 int size, key_len, rec; in hfs_brec_insert() local 75 rec = fd->record + 1; in hfs_brec_insert() 84 dprint(DBG_BNODE_MOD, "insert_rec: %d, %d, %d, %d\n", rec, size, end_off, end_rec_off); in hfs_brec_insert() 103 idx_rec_off = tree->node_size - (rec + 1) * 2; in hfs_brec_insert() 126 if (!rec && new_node != node) in hfs_brec_insert() 157 if (!rec) in hfs_brec_insert() [all …]
|
D | bfind.c | 44 int rec; in __hfs_brec_find() local 52 rec = (e + b) / 2; in __hfs_brec_find() 53 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find() 54 keylen = hfs_brec_keylen(bnode, rec); in __hfs_brec_find() 58 e = rec; in __hfs_brec_find() 63 b = rec + 1; in __hfs_brec_find() 65 e = rec - 1; in __hfs_brec_find() 67 if (rec != e && e >= 0) { in __hfs_brec_find() 137 int hfs_brec_read(struct hfs_find_data *fd, void *rec, int rec_len) in hfs_brec_read() argument 146 hfs_bnode_read(fd->bnode, rec, fd->entryoffset, fd->entrylength); in hfs_brec_read()
|
/fs/partitions/ |
D | ldm.h | 108 u8 rec; /* This is record number n */ member 181 u16 rec; member
|
D | ldm.c | 1293 int rec, num, group; in ldm_frag_add() local 1298 rec = get_unaligned_be16(data + 0x0C); in ldm_frag_add() 1319 f->rec = rec; in ldm_frag_add() 1324 if (f->map & (1 << rec)) { in ldm_frag_add() 1325 ldm_error ("Duplicate VBLK, part %d.", rec); in ldm_frag_add() 1330 f->map |= (1 << rec); in ldm_frag_add() 1336 memcpy (f->data+rec*(size-VBLK_SIZE_HEAD)+VBLK_SIZE_HEAD, data, size); in ldm_frag_add()
|