| /linux/fs/xfs/scrub/ |
| H A D | rtrefcount.c | 107 xfs_rgblock_t bno; member 138 rc_last = refchk->bno + refchk->len - 1; in xchk_rtrefcountbt_rmap_check() 146 if (rec->rm_startblock <= refchk->bno && rm_last >= rc_last) { in xchk_rtrefcountbt_rmap_check() 183 xfs_rgblock_t bno; in xchk_rtrefcountbt_process_rmap_fragments() local 205 bno = 0; in xchk_rtrefcountbt_process_rmap_fragments() 207 if (frag->rm.rm_startblock < bno) in xchk_rtrefcountbt_process_rmap_fragments() 209 bno = frag->rm.rm_startblock; in xchk_rtrefcountbt_process_rmap_fragments() 218 if (frag->rm.rm_startblock > refchk->bno || nr > target_nr) in xchk_rtrefcountbt_process_rmap_fragments() 220 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_rtrefcountbt_process_rmap_fragments() 221 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 | scrub.h | 319 void xchk_xref_is_cow_staging(struct xfs_scrub *sc, xfs_agblock_t bno, 321 void xchk_xref_is_not_shared(struct xfs_scrub *sc, xfs_agblock_t bno, 323 void xchk_xref_is_not_cow_staging(struct xfs_scrub *sc, xfs_agblock_t bno, 344 # define xchk_xref_is_only_rt_owned_by(sc, bno, len, oinfo) do { } while (0) argument 345 # define xchk_xref_is_rt_cow_staging(sc, bno, len) do { } while (0) argument 346 # define xchk_xref_is_not_rt_shared(sc, bno, len) do { } while (0) argument 347 # 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 | 586 xfs_agblock_t bno, in xchk_xref_is_only_owned_by() argument 596 error = xfs_rmap_count_owners(sc->sa.rmap_cur, bno, len, oinfo, &res); in xchk_xref_is_only_owned_by() 611 xfs_agblock_t bno, in xchk_xref_is_not_owned_by() argument 621 error = xfs_rmap_count_owners(sc->sa.rmap_cur, bno, len, oinfo, &res); in xchk_xref_is_not_owned_by() 634 xfs_agblock_t bno, in xchk_xref_has_no_owner() argument 643 error = xfs_rmap_has_records(sc->sa.rmap_cur, bno, len, &outcome); in xchk_xref_has_no_owner()
|
| H A D | trace.h | 301 xfs_agblock_t bno, int error, void *ret_ip), 302 TP_ARGS(sc, agno, bno, error, ret_ip), 307 __field(xfs_agblock_t, bno) 315 __entry->bno = bno; 323 __entry->bno, 566 __field(xfs_agblock_t, bno) 579 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 591 __entry->bno, 609 __field(xfs_agblock_t, bno) 623 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); [all …]
|
| H A D | refcount_repair.c | 371 xfs_agblock_t bno, in xrep_refc_push_rmaps_at() argument 379 while (*have && rmap->rm_startblock == bno) { in xrep_refc_push_rmaps_at()
|
| /linux/fs/xfs/ |
| 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_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_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 = got.br_startoff + got.br_blockcount; in xfs_getbmap() [all …]
|
| H A D | xfs_rtalloc.h | 77 bool wasdel, bool initial_user_data, xfs_rtblock_t *bno,
|
| H A D | xfs_log.c | 1545 uint64_t bno, in xlog_write_iclog() argument 1548 ASSERT(bno < log->l_logBBsize); in xlog_write_iclog() 1580 iclog->ic_bio.bi_iter.bi_sector = log->l_logBBstart + bno; in xlog_write_iclog() 1617 if (bno + BTOBB(count) > log->l_logBBsize) { in xlog_write_iclog() 1620 split = bio_split(&iclog->ic_bio, log->l_logBBsize - bno, in xlog_write_iclog() 1647 uint64_t bno, in xlog_split_iclog() argument 1650 unsigned int split_offset = BBTOB(log->l_logBBsize - bno); in xlog_split_iclog() 1712 uint64_t bno; in xlog_sync() local 1744 bno = BLOCK_LSN(be64_to_cpu(iclog->ic_header->h_lsn)); in xlog_sync() 1747 if (bno + BTOBB(count) > log->l_logBBsize) in xlog_sync() [all …]
|
| /linux/fs/xfs/libxfs/ |
| 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.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_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.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_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_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,
|
| H A D | xfs_ialloc.h | 103 xfs_agblock_t bno, xfs_extlen_t len,
|
| H A D | xfs_attr_leaf.h | 105 xfs_ino_t owner, xfs_dablk_t bno, struct xfs_buf **bpp);
|
| H A D | xfs_dir2_data.c | 450 xfs_dablk_t bno, in xfs_dir3_data_read() argument 457 err = xfs_da_read_buf(tp, dp, bno, flags, bpp, XFS_DATA_FORK, in xfs_dir3_data_read() 479 xfs_dablk_t bno, in xfs_dir3_data_readahead() argument 482 return xfs_da_reada_buf(dp, bno, flags, XFS_DATA_FORK, in xfs_dir3_data_readahead()
|
| /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()
|