/fs/jffs2/ |
D | read.c | 161 struct jffs2_node_frag *frag; in jffs2_read_inode_range() local 167 frag = jffs2_lookup_node_frag(&f->fragtree, offset); in jffs2_read_inode_range() 177 if (unlikely(!frag || frag->ofs > offset || in jffs2_read_inode_range() 178 frag->ofs + frag->size <= offset)) { in jffs2_read_inode_range() 180 if (frag && frag->ofs > offset) { in jffs2_read_inode_range() 182 f->inocache->ino, frag->ofs, offset); in jffs2_read_inode_range() 183 holesize = min(holesize, frag->ofs - offset); in jffs2_read_inode_range() 191 } else if (unlikely(!frag->node)) { in jffs2_read_inode_range() 192 uint32_t holeend = min(end, frag->ofs + frag->size); in jffs2_read_inode_range() 194 offset, holeend, frag->ofs, in jffs2_read_inode_range() [all …]
|
D | gc.c | 500 struct jffs2_node_frag *frag; in jffs2_garbage_collect_live() local 534 for (frag = frag_first(&f->fragtree); frag; frag = frag_next(frag)) { in jffs2_garbage_collect_live() 535 if (frag->node && frag->node->raw == raw) { in jffs2_garbage_collect_live() 536 fn = frag->node; in jffs2_garbage_collect_live() 537 end = frag->ofs + frag->size; in jffs2_garbage_collect_live() 539 start = frag->ofs; in jffs2_garbage_collect_live() 540 if (nrfrags == frag->node->frags) in jffs2_garbage_collect_live() 549 frag->node->raw = f->inocache->nodes; in jffs2_garbage_collect_live() 1018 struct jffs2_node_frag *frag; in jffs2_garbage_collect_hole() local 1083 frag = frag_last(&f->fragtree); in jffs2_garbage_collect_hole() [all …]
|
D | nodelist.c | 61 struct jffs2_node_frag *frag = jffs2_lookup_node_frag(list, size); in jffs2_truncate_fragtree() local 66 if (frag && frag->ofs != size) { in jffs2_truncate_fragtree() 67 if (frag->ofs+frag->size > size) { in jffs2_truncate_fragtree() 68 frag->size = size - frag->ofs; in jffs2_truncate_fragtree() 70 frag = frag_next(frag); in jffs2_truncate_fragtree() 72 while (frag && frag->ofs >= size) { in jffs2_truncate_fragtree() 73 struct jffs2_node_frag *next = frag_next(frag); in jffs2_truncate_fragtree() 75 frag_erase(frag, list); in jffs2_truncate_fragtree() 76 jffs2_obsolete_node_frag(c, frag); in jffs2_truncate_fragtree() 77 frag = next; in jffs2_truncate_fragtree() [all …]
|
D | nodelist.h | 347 #define frag_next(frag) rb_entry(rb_next(&(frag)->rb), struct jffs2_node_frag, rb) argument 348 #define frag_prev(frag) rb_entry(rb_prev(&(frag)->rb), struct jffs2_node_frag, rb) argument 349 #define frag_parent(frag) rb_entry(rb_parent(&(frag)->rb), struct jffs2_node_frag, rb) argument 350 #define frag_left(frag) rb_entry((frag)->rb.rb_left, struct jffs2_node_frag, rb) argument 351 #define frag_right(frag) rb_entry((frag)->rb.rb_right, struct jffs2_node_frag, rb) argument 352 #define frag_erase(frag, list) rb_erase(&frag->rb, list) argument
|
D | debug.c | 77 struct jffs2_node_frag *frag; in __jffs2_dbg_fragtree_paranoia_check_nolock() local 80 for (frag = frag_first(&f->fragtree); frag; frag = frag_next(frag)) { in __jffs2_dbg_fragtree_paranoia_check_nolock() 81 struct jffs2_full_dnode *fn = frag->node; in __jffs2_dbg_fragtree_paranoia_check_nolock() 98 if (frag->ofs & (PAGE_SIZE-1) && frag_prev(frag) in __jffs2_dbg_fragtree_paranoia_check_nolock() 99 && frag_prev(frag)->size < PAGE_SIZE && frag_prev(frag)->node) { in __jffs2_dbg_fragtree_paranoia_check_nolock() 105 if ((frag->ofs+frag->size) & (PAGE_SIZE-1) && frag_next(frag) in __jffs2_dbg_fragtree_paranoia_check_nolock() 106 && frag_next(frag)->size < PAGE_SIZE && frag_next(frag)->node) { in __jffs2_dbg_fragtree_paranoia_check_nolock() 108 ref_offset(fn->raw), frag->ofs, frag->ofs+frag->size); in __jffs2_dbg_fragtree_paranoia_check_nolock()
|
D | wbuf.c | 187 struct jffs2_node_frag *frag; in jffs2_incore_replace_raw() local 202 frag = jffs2_lookup_node_frag(&f->fragtree, je32_to_cpu(node->i.offset)); in jffs2_incore_replace_raw() 203 BUG_ON(!frag); in jffs2_incore_replace_raw() 205 while (!frag->node || frag->node->raw != raw) { in jffs2_incore_replace_raw() 206 frag = frag_next(frag); in jffs2_incore_replace_raw() 207 BUG_ON(!frag); in jffs2_incore_replace_raw() 209 dbg_noderef("Will replace ->raw in full_dnode at %p\n", frag->node); in jffs2_incore_replace_raw() 210 return &frag->node->raw; in jffs2_incore_replace_raw()
|
/fs/xfs/scrub/ |
D | refcount.c | 98 struct xchk_refcnt_frag *frag; in xchk_refcountbt_rmap_check() local 128 frag = kmem_alloc(sizeof(struct xchk_refcnt_frag), in xchk_refcountbt_rmap_check() 130 if (!frag) in xchk_refcountbt_rmap_check() 132 memcpy(&frag->rm, rec, sizeof(frag->rm)); in xchk_refcountbt_rmap_check() 133 list_add_tail(&frag->list, &refchk->fragments); in xchk_refcountbt_rmap_check() 151 struct xchk_refcnt_frag *frag; in xchk_refcountbt_process_rmap_fragments() local 176 list_for_each_entry(frag, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments() 177 if (frag->rm.rm_startblock < bno) in xchk_refcountbt_process_rmap_fragments() 179 bno = frag->rm.rm_startblock; in xchk_refcountbt_process_rmap_fragments() 187 list_for_each_entry_safe(frag, n, &refchk->fragments, list) { in xchk_refcountbt_process_rmap_fragments() [all …]
|
/fs/ceph/ |
D | inode.c | 150 struct ceph_inode_frag *frag; in __get_or_create_frag() local 156 frag = rb_entry(parent, struct ceph_inode_frag, node); in __get_or_create_frag() 157 c = ceph_frag_compare(f, frag->frag); in __get_or_create_frag() 163 return frag; in __get_or_create_frag() 166 frag = kmalloc(sizeof(*frag), GFP_NOFS); in __get_or_create_frag() 167 if (!frag) in __get_or_create_frag() 170 frag->frag = f; in __get_or_create_frag() 171 frag->split_by = 0; in __get_or_create_frag() 172 frag->mds = -1; in __get_or_create_frag() 173 frag->ndist = 0; in __get_or_create_frag() [all …]
|
D | dir.c | 300 return !ceph_frag_contains_value(dfi->frag, fpos_hash(pos)); in need_send_readdir() 302 return dfi->frag != fpos_frag(pos); in need_send_readdir() 314 unsigned frag = -1; in ceph_readdir() local 380 if (frag == (unsigned)-1) in ceph_readdir() 381 frag = ceph_choose_frag(ci, fpos_hash(ctx->pos), in ceph_readdir() 384 frag = fpos_frag(ctx->pos); in ceph_readdir() 388 ceph_vinop(inode), frag, dfi->last_name); in ceph_readdir() 400 req->r_direct_hash = ceph_frag_value(frag); in ceph_readdir() 419 req->r_args.readdir.frag = cpu_to_le32(frag); in ceph_readdir() 433 err, frag, in ceph_readdir() [all …]
|
D | mds_client.c | 1097 struct ceph_inode_frag frag; in __choose_mds() local 1100 ceph_choose_frag(ci, hash, &frag, &found); in __choose_mds() 1102 if (mode == USE_ANY_MDS && frag.ndist > 0) { in __choose_mds() 1107 r %= frag.ndist; in __choose_mds() 1108 mds = frag.dist[r]; in __choose_mds() 1111 frag.frag, mds, (int)r, frag.ndist); in __choose_mds() 1121 if (frag.mds >= 0) { in __choose_mds() 1123 mds = frag.mds; in __choose_mds() 1126 frag.frag, mds); in __choose_mds()
|
D | super.h | 249 u32 frag; member 782 u32 frag; member
|
/fs/configfs/ |
D | file.c | 58 struct configfs_fragment *frag = to_frag(file); in fill_read_buffer() local 66 down_read(&frag->frag_sem); in fill_read_buffer() 67 if (!frag->frag_dead) in fill_read_buffer() 69 up_read(&frag->frag_sem); in fill_read_buffer() 109 struct configfs_fragment *frag = to_frag(file); in configfs_bin_read_iter() local 125 down_read(&frag->frag_sem); in configfs_bin_read_iter() 126 if (!frag->frag_dead) in configfs_bin_read_iter() 130 up_read(&frag->frag_sem); in configfs_bin_read_iter() 150 down_read(&frag->frag_sem); in configfs_bin_read_iter() 151 if (!frag->frag_dead) in configfs_bin_read_iter() [all …]
|
D | dir.c | 172 void put_fragment(struct configfs_fragment *frag) in put_fragment() argument 174 if (frag && atomic_dec_and_test(&frag->frag_count)) in put_fragment() 175 kfree(frag); in put_fragment() 178 struct configfs_fragment *get_fragment(struct configfs_fragment *frag) in get_fragment() argument 180 if (likely(frag)) in get_fragment() 181 atomic_inc(&frag->frag_count); in get_fragment() 182 return frag; in get_fragment() 190 struct configfs_fragment *frag) in configfs_new_dirent() argument 209 sd->s_frag = get_fragment(frag); in configfs_new_dirent() 244 umode_t mode, int type, struct configfs_fragment *frag) in configfs_make_dirent() argument [all …]
|
/fs/adfs/ |
D | map.c | 76 u32 frag; in lookup_zone() local 78 frag = GET_FRAG_ID(map, 8, idmask & 0x7fff); in lookup_zone() 79 freelink = frag ? 8 + frag : 0; in lookup_zone() 82 frag = GET_FRAG_ID(map, start, idmask); in lookup_zone() 89 freelink += frag & 0x7fff; in lookup_zone() 90 } else if (frag == frag_id) { in lookup_zone() 104 frag, start, fragend); in lookup_zone() 123 u32 frag; in scan_free_map() local 129 frag = GET_FRAG_ID(map, start, idmask); in scan_free_map() 135 if (frag == 0) in scan_free_map() [all …]
|
/fs/squashfs/ |
D | inode.c | 130 unsigned int frag_offset, frag; in squashfs_read_inode() local 140 frag = le32_to_cpu(sqsh_ino->fragment); in squashfs_read_inode() 141 if (frag != SQUASHFS_INVALID_FRAG) { in squashfs_read_inode() 143 frag_size = squashfs_frag_lookup(sb, frag, &frag_blk); in squashfs_read_inode() 173 unsigned int frag_offset, frag; in squashfs_read_inode() local 183 frag = le32_to_cpu(sqsh_ino->fragment); in squashfs_read_inode() 184 if (frag != SQUASHFS_INVALID_FRAG) { in squashfs_read_inode() 186 frag_size = squashfs_frag_lookup(sb, frag, &frag_blk); in squashfs_read_inode()
|
/fs/ufs/ |
D | inode.c | 404 unsigned frag = fragment & uspi->s_fpbmask; in ufs_getfrag_block() local 456 phys64 += frag; in ufs_getfrag_block() 466 map_bh(bh_result, sb, phys64 + frag); in ufs_getfrag_block()
|