| /linux/fs/xfs/ |
| H A D | xfs_extent_busy.c | 33 xfs_agblock_t bno, in xfs_extent_busy_insert_list() argument 46 new->bno = bno; in xfs_extent_busy_insert_list() 52 trace_xfs_extent_busy(xg, bno, len); in xfs_extent_busy_insert_list() 60 if (new->bno < busyp->bno) { in xfs_extent_busy_insert_list() 62 ASSERT(new->bno + new->length <= busyp->bno); in xfs_extent_busy_insert_list() 63 } else if (new->bno > busyp->bno) { in xfs_extent_busy_insert_list() 65 ASSERT(bno >= busyp->bno + busyp->length); in xfs_extent_busy_insert_list() 83 xfs_agblock_t bno, in xfs_extent_busy_insert() argument 87 xfs_extent_busy_insert_list(xg, bno, len, flags, &tp->t_busy); in xfs_extent_busy_insert() 93 xfs_agblock_t bno, in xfs_extent_busy_insert_discard() argument [all …]
|
| H A D | xfs_extent_busy.h | 23 xfs_agblock_t bno; member 47 xfs_agblock_t bno, xfs_extlen_t len, unsigned int flags); 48 void xfs_extent_busy_insert_discard(struct xfs_group *xg, xfs_agblock_t bno, 51 int xfs_extent_busy_search(struct xfs_group *xg, xfs_agblock_t bno, 56 xfs_extlen_t maxlen, xfs_agblock_t *bno, xfs_extlen_t *len,
|
| H A D | xfs_bmap_util.c | 199 xfs_fileoff_t bno, in xfs_getbmap_report_hole() argument 208 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, bno); in xfs_getbmap_report_hole() 209 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, end - bno); in xfs_getbmap_report_hole() 258 xfs_fileoff_t bno, first_bno; in xfs_getbmap() local 357 first_bno = bno = XFS_BB_TO_FSBT(mp, bmv->bmv_offset); in xfs_getbmap() 364 if (!xfs_iext_lookup_extent(ip, ifp, bno, &icur, &got)) { in xfs_getbmap() 370 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, in xfs_getbmap() 382 if (got.br_startoff > bno) { in xfs_getbmap() 383 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, in xfs_getbmap() 394 bno in xfs_getbmap() [all...] |
| H A D | xfs_discard.c | 126 trace_xfs_discard_extent(xg, busyp->bno, busyp->length); in xfs_discard_extents() 129 xfs_gbno_to_daddr(xg, busyp->bno), in xfs_discard_extents() 445 xfs_rtblock_t bno; member 481 start = busyp->bno; in xfs_discard_rtdev_extents() 484 trace_xfs_discard_rtextent(mp, busyp->bno, busyp->length); in xfs_discard_rtdev_extents() 487 xfs_rtb_to_daddr(mp, busyp->bno), in xfs_discard_rtdev_extents() 544 busyp->bno = rbno; in xfs_trim_gather_rtextent()
|
| H A D | xfs_rtalloc.h | 77 bool wasdel, bool initial_user_data, xfs_rtblock_t *bno,
|
| H A D | xfs_log.c | 1580 uint64_t bno, in xlog_write_iclog() argument 1583 ASSERT(bno < log->l_logBBsize); in xlog_write_iclog() 1615 iclog->ic_bio.bi_iter.bi_sector = log->l_logBBstart + bno; in xlog_write_iclog() 1640 if (bno + BTOBB(count) > log->l_logBBsize) { in xlog_write_iclog() 1643 split = bio_split(&iclog->ic_bio, log->l_logBBsize - bno, in xlog_write_iclog() 1670 uint64_t bno, in xlog_split_iclog() argument 1673 unsigned int split_offset = BBTOB(log->l_logBBsize - bno); in xlog_split_iclog() 1735 uint64_t bno; in xlog_sync() local 1767 bno = BLOCK_LSN(be64_to_cpu(iclog->ic_header->h_lsn)); in xlog_sync() 1770 if (bno + BTOBB(count) > log->l_logBBsize) in xlog_sync() [all …]
|
| /linux/fs/xfs/scrub/ |
| H A D | rtrefcount.c | 108 xfs_rgblock_t bno; member 139 rc_last = refchk->bno + refchk->len - 1; in xchk_rtrefcountbt_rmap_check() 147 if (rec->rm_startblock <= refchk->bno && rm_last >= rc_last) { in xchk_rtrefcountbt_rmap_check() 184 xfs_rgblock_t bno; in xchk_rtrefcountbt_process_rmap_fragments() local 206 bno = 0; in xchk_rtrefcountbt_process_rmap_fragments() 208 if (frag->rm.rm_startblock < bno) in xchk_rtrefcountbt_process_rmap_fragments() 210 bno = frag->rm.rm_startblock; in xchk_rtrefcountbt_process_rmap_fragments() 219 if (frag->rm.rm_startblock > refchk->bno || nr > target_nr) in xchk_rtrefcountbt_process_rmap_fragments() 221 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_rtrefcountbt_process_rmap_fragments() 222 if (bno < rbno) in xchk_rtrefcountbt_process_rmap_fragments() [all …]
|
| H A D | refcount.c | 93 xfs_agblock_t bno; member 124 rc_last = refchk->bno + refchk->len - 1; in xchk_refcountbt_rmap_check() 132 if (rec->rm_startblock <= refchk->bno && rm_last >= rc_last) { in xchk_refcountbt_rmap_check() 169 xfs_agblock_t bno; in xchk_refcountbt_process_rmap_fragments() local 191 bno = 0; in xchk_refcountbt_process_rmap_fragments() 193 if (frag->rm.rm_startblock < bno) in xchk_refcountbt_process_rmap_fragments() 195 bno = frag->rm.rm_startblock; in xchk_refcountbt_process_rmap_fragments() 204 if (frag->rm.rm_startblock > refchk->bno || nr > target_nr) in xchk_refcountbt_process_rmap_fragments() 206 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments() 207 if (bno < rbno) in xchk_refcountbt_process_rmap_fragments() [all …]
|
| H A D | reap.c | 293 xfs_agblock_t bno = agbno; in xreap_agextent_binval() local 310 while (bno < agbno_next) { in xreap_agextent_binval() 312 .daddr = xfs_agbno_to_daddr(pag, bno), in xreap_agextent_binval() 314 agbno_next - bno), in xreap_agextent_binval() 329 *aglenp -= agbno_next - bno; in xreap_agextent_binval() 334 bno++; in xreap_agextent_binval() 357 xfs_agblock_t bno = agbno + 1; in xreap_agextent_select() local 380 while (bno < agbno_next) { in xreap_agextent_select() 383 error = xfs_rmap_has_other_keys(cur, bno, 1, rs->oinfo, in xreap_agextent_select() 392 bno++; in xreap_agextent_select() [all …]
|
| H A D | scrub.h | 318 void xchk_xref_is_cow_staging(struct xfs_scrub *sc, xfs_agblock_t bno, 320 void xchk_xref_is_not_shared(struct xfs_scrub *sc, xfs_agblock_t bno, 322 void xchk_xref_is_not_cow_staging(struct xfs_scrub *sc, xfs_agblock_t bno, 343 # define xchk_xref_is_only_rt_owned_by(sc, bno, len, oinfo) do { } while (0) argument 344 # define xchk_xref_is_rt_cow_staging(sc, bno, len) do { } while (0) argument 345 # define xchk_xref_is_not_rt_shared(sc, bno, len) do { } while (0) argument 346 # define xchk_xref_is_not_rt_cow_staging(sc, bno, len) do { } while (0) argument
|
| H A D | rtrmap.c | 269 xfs_rgblock_t bno, in xchk_xref_has_no_rt_owner() argument 278 error = xfs_rmap_has_records(sc->sr.rmap_cur, bno, len, &outcome); in xchk_xref_has_no_rt_owner() 289 xfs_rgblock_t bno, in xchk_xref_has_rt_owner() argument 298 error = xfs_rmap_has_records(sc->sr.rmap_cur, bno, len, &outcome); in xchk_xref_has_rt_owner() 309 xfs_agblock_t bno, in xchk_xref_is_only_rt_owned_by() argument 319 error = xfs_rmap_count_owners(sc->sr.rmap_cur, bno, len, oinfo, &res); in xchk_xref_is_only_rt_owned_by()
|
| H A D | bmap.c | 148 xfs_agblock_t bno, in xchk_bmap_get_rmap() argument 184 error = xfs_rmap_lookup_le_range(*curp, bno, owner, offset, in xchk_bmap_get_rmap() 187 error = xfs_rmap_lookup_le(*curp, bno, owner, offset, in xchk_bmap_get_rmap() 204 xfs_agblock_t bno) in xchk_bmap_xref_rmap() argument 214 if (!xchk_bmap_get_rmap(info, irec, bno, owner, &rmap)) in xchk_bmap_xref_rmap() 221 if (rmap.rm_startblock != bno) in xchk_bmap_xref_rmap() 226 if (rmap_end != bno + irec->br_blockcount) in xchk_bmap_xref_rmap() 271 xfs_agblock_t bno) in xchk_bmap_xref_rmap_cow() argument 281 if (!xchk_bmap_get_rmap(info, irec, bno, owner, &rmap)) in xchk_bmap_xref_rmap_cow() 289 if (rmap.rm_startblock > bno) in xchk_bmap_xref_rmap_cow() [all …]
|
| H A D | rmap.c | 594 xfs_agblock_t bno, in xchk_xref_is_only_owned_by() argument 604 error = xfs_rmap_count_owners(sc->sa.rmap_cur, bno, len, oinfo, &res); in xchk_xref_is_only_owned_by() 619 xfs_agblock_t bno, in xchk_xref_is_not_owned_by() argument 629 error = xfs_rmap_count_owners(sc->sa.rmap_cur, bno, len, oinfo, &res); in xchk_xref_is_not_owned_by() 642 xfs_agblock_t bno, in xchk_xref_has_no_owner() argument 651 error = xfs_rmap_has_records(sc->sa.rmap_cur, bno, len, &outcome); in xchk_xref_has_no_owner()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_btree_mem.c | 91 xfbno_t bno = xfbt->highest_bno++; in xfbtree_init_leaf_block() local 94 error = xfs_buf_get(xfbt->target, xfbno_to_daddr(bno), XFBNO_BBSIZE, in xfbtree_init_leaf_block() 105 xfbt->root.l = cpu_to_be64(bno); in xfbtree_init_leaf_block() 171 xfbno_t bno = xfbt->highest_bno++; in xfbtree_alloc_block() local 175 trace_xfbtree_alloc_block(xfbt, cur, bno); in xfbtree_alloc_block() 178 if (!xfbtree_verify_bno(xfbt, bno)) { in xfbtree_alloc_block() 179 ASSERT(xfbtree_verify_bno(xfbt, bno)); in xfbtree_alloc_block() 184 new->l = cpu_to_be64(bno); in xfbtree_alloc_block() 197 xfbno_t bno = xfs_daddr_to_xfbno(daddr); in xfbtree_free_block() local 201 trace_xfbtree_free_block(xfbt, cur, bno); in xfbtree_free_block() [all …]
|
| H A D | xfs_alloc.c | 158 xfs_agblock_t bno, in xfs_alloc_lookup() argument 164 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup() 180 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_eq() argument 184 return xfs_alloc_lookup(cur, XFS_LOOKUP_EQ, bno, len, stat); in xfs_alloc_lookup_eq() 194 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_ge() argument 198 return xfs_alloc_lookup(cur, XFS_LOOKUP_GE, bno, len, stat); in xfs_alloc_lookup_ge() 208 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_le() argument 212 return xfs_alloc_lookup(cur, XFS_LOOKUP_LE, bno, len, stat); in xfs_alloc_lookup_le() 230 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_update() argument 235 rec.alloc.ar_startblock = cpu_to_be32(bno); in xfs_alloc_update() [all …]
|
| H A D | xfs_alloc.h | 80 xfs_agblock_t bno, int btreeblk); 82 xfs_agblock_t bno, xfs_extlen_t len, 168 xfs_agblock_t bno, /* starting block of extent */ 175 xfs_agblock_t bno, /* starting block of extent */ 182 xfs_agblock_t *bno, /* output: starting block of extent */ 216 int xfs_alloc_has_records(struct xfs_btree_cur *cur, xfs_agblock_t bno, 219 typedef int (*xfs_agfl_walk_fn)(struct xfs_mount *mp, xfs_agblock_t bno, 233 int xfs_free_extent_later(struct xfs_trans *tp, xfs_fsblock_t bno,
|
| H A D | xfs_refcount.c | 55 xfs_agblock_t bno, in xfs_refcount_lookup_le() argument 59 xfs_refcount_encode_startblock(bno, domain), in xfs_refcount_lookup_le() 61 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_le() 75 xfs_agblock_t bno, in xfs_refcount_lookup_ge() argument 79 xfs_refcount_encode_startblock(bno, domain), in xfs_refcount_lookup_ge() 81 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_ge() 95 xfs_agblock_t bno, in xfs_refcount_lookup_eq() argument 99 xfs_refcount_encode_startblock(bno, domain), in xfs_refcount_lookup_eq() 101 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_eq() 1392 xfs_agblock_t bno; in xfs_refcount_finish_one() local [all …]
|
| H A D | xfs_da_btree.h | 202 xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork); 214 int xfs_da_grow_inode_int(struct xfs_da_args *args, xfs_fileoff_t *bno, 217 xfs_dablk_t bno, struct xfs_buf **bp, int whichfork); 219 xfs_dablk_t bno, unsigned int flags, struct xfs_buf **bpp, 221 int xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno,
|
| H A D | xfs_refcount.h | 18 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat); 20 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat); 22 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat); 119 enum xfs_refc_domain domain, xfs_agblock_t bno,
|
| H A D | xfs_btree_mem.h | 45 static inline bool xfbtree_verify_bno(struct xfbtree *xfbt, xfbno_t bno) in xfbtree_verify_bno() argument 47 return xmbuf_verify_daddr(xfbt->target, xfbno_to_daddr(bno)); in xfbtree_verify_bno()
|
| H A D | xfs_da_btree.c | 434 xfs_dablk_t bno, in xfs_da3_node_read() argument 440 error = xfs_da_read_buf(tp, dp, bno, 0, bpp, whichfork, in xfs_da3_node_read() 2325 xfs_fileoff_t *bno, in xfs_da_grow_inode_int() argument 2338 error = xfs_bmap_first_unused(tp, dp, count, bno, w); in xfs_da_grow_inode_int() 2346 error = xfs_bmapi_write(tp, dp, *bno, count, in xfs_da_grow_inode_int() 2358 for (b = *bno, mapi = 0; b < *bno + count; ) { in xfs_da_grow_inode_int() 2359 c = (int)(*bno + count - b); in xfs_da_grow_inode_int() 2379 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int() 2381 *bno + count) { in xfs_da_grow_inode_int() 2405 xfs_fileoff_t bno; in xfs_da_grow_inode() local [all …]
|
| H A D | xfs_rtgroup.h | 264 xfs_rfsblock_t bno; in xfs_daddr_to_rtb() local 266 bno = XFS_BB_TO_FSBT(mp, daddr) - g->start_fsb; in xfs_daddr_to_rtb() 271 rgno = div_u64_rem(bno, g->blocks, &rgbno); in xfs_daddr_to_rtb() 275 return bno; in xfs_daddr_to_rtb()
|
| H A D | xfs_dir2_priv.h | 81 xfs_ino_t owner, xfs_dablk_t bno, unsigned int flags, 83 int xfs_dir3_data_readahead(struct xfs_inode *dp, xfs_dablk_t bno, 110 extern int xfs_dir3_leaf_get_buf(struct xfs_da_args *args, xfs_dir2_db_t bno,
|
| /linux/fs/iomap/ |
| H A D | fiemap.c | 94 iomap_bmap(struct address_space *mapping, sector_t bno, in iomap_bmap() argument 99 .pos = (loff_t)bno << mapping->host->i_blkbits, in iomap_bmap() 109 bno = 0; in iomap_bmap() 112 bno = iomap_sector(&iter.iomap, iter.pos) >> blkshift; in iomap_bmap() 118 return bno; in iomap_bmap()
|
| /linux/net/ceph/crush/ |
| H A D | mapper.c | 1008 int bno; in crush_do_rule() local 1016 bno = -1 - w[i]; in crush_do_rule() 1017 if (bno < 0 || bno >= map->max_buckets) { in crush_do_rule() 1034 map->buckets[bno], in crush_do_rule() 1056 map->buckets[bno], in crush_do_rule()
|