| /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_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_log.c | 1543 uint64_t bno, in xlog_write_iclog() argument 1546 ASSERT(bno < log->l_logBBsize); in xlog_write_iclog() 1578 iclog->ic_bio.bi_iter.bi_sector = log->l_logBBstart + bno; in xlog_write_iclog() 1615 if (bno + BTOBB(count) > log->l_logBBsize) { in xlog_write_iclog() 1618 split = bio_split(&iclog->ic_bio, log->l_logBBsize - bno, in xlog_write_iclog() 1645 uint64_t bno, in xlog_split_iclog() argument 1648 unsigned int split_offset = BBTOB(log->l_logBBsize - bno); in xlog_split_iclog() 1710 uint64_t bno; in xlog_sync() local 1742 bno = BLOCK_LSN(be64_to_cpu(iclog->ic_header->h_lsn)); in xlog_sync() 1745 if (bno + BTOBB(count) > log->l_logBBsize) in xlog_sync() [all …]
|
| H A D | xfs_rtalloc.h | 77 bool wasdel, bool initial_user_data, xfs_rtblock_t *bno,
|
| /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 | rtrefcount_repair.c | 162 xfs_rgblock_t bno, in xrep_rtrefc_stash() argument 167 .rc_startblock = bno, in xrep_rtrefc_stash() 192 xfs_rgblock_t bno, in xrep_rtrefc_stash_cow() argument 195 return xrep_rtrefc_stash(rr, XFS_REFC_DOMAIN_COW, bno, len, 1); in xrep_rtrefc_stash_cow() 385 xfs_rgblock_t bno, in xrep_rtrefc_push_rmaps_at() argument 393 while (*have && rmap->rm_startblock == bno) { in xrep_rtrefc_push_rmaps_at()
|
| 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 …]
|
| /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_rmap.h | 120 struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len, 123 struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len, 126 int xfs_rmap_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno, 129 int xfs_rmap_lookup_eq(struct xfs_btree_cur *cur, xfs_agblock_t bno, 197 enum xfs_rmap_intent_type op, xfs_agblock_t bno, 201 int xfs_rmap_lookup_le_range(struct xfs_btree_cur *cur, xfs_agblock_t bno, 214 int xfs_rmap_has_records(struct xfs_btree_cur *cur, xfs_agblock_t bno, 228 int xfs_rmap_count_owners(struct xfs_btree_cur *cur, xfs_agblock_t bno, 231 int xfs_rmap_has_other_keys(struct xfs_btree_cur *cur, xfs_agblock_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_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_dir2.c | 615 xfs_fileoff_t bno; /* directory offset of new block */ in xfs_dir2_grow_inode() local 624 bno = XFS_B_TO_FSBT(mp, space * XFS_DIR2_SPACE_SIZE); in xfs_dir2_grow_inode() 627 error = xfs_da_grow_inode_int(args, &bno, count); in xfs_dir2_grow_inode() 631 *dbp = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)bno); in xfs_dir2_grow_inode() 639 size = XFS_FSB_TO_B(mp, bno + count); in xfs_dir2_grow_inode() 659 xfs_fileoff_t bno; /* directory file offset */ in xfs_dir2_shrink_inode() local 706 bno = da; in xfs_dir2_shrink_inode() 707 if ((error = xfs_bmap_last_before(tp, dp, &bno, XFS_DATA_FORK))) { in xfs_dir2_shrink_inode() 714 ASSERT(bno == 0); in xfs_dir2_shrink_inode() 716 ASSERT(bno > 0); in xfs_dir2_shrink_inode() [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,
|
| H A D | xfs_ag.c | 168 xfs_agblock_t bno; in __xfs_agino_range() local 174 bno = round_up(XFS_AGFL_BLOCK(mp) + 1, M_IGEO(mp)->cluster_align); in __xfs_agino_range() 175 *first = XFS_AGB_TO_AGINO(mp, bno); in __xfs_agino_range() 181 bno = round_down(eoag, M_IGEO(mp)->cluster_align); in __xfs_agino_range() 182 *last = XFS_AGB_TO_AGINO(mp, bno) - 1; in __xfs_agino_range()
|
| H A D | xfs_ialloc.h | 103 xfs_agblock_t bno, xfs_extlen_t len,
|
| /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/fs/freevxfs/ |
| H A D | vxfs_bmap.c | 64 daddr_t bno; in vxfs_bmap_ext4() local 73 bno = fs32_to_cpu(sbi, indir[(bn / indsize) % (indsize * bn)]) + in vxfs_bmap_ext4() 77 return bno; in vxfs_bmap_ext4()
|
| /linux/net/ceph/crush/ |
| H A D | mapper.c | 1008 int bno; in crush_do_rule() local 1017 bno = -1 - w[i]; in crush_do_rule() 1018 if (bno < 0 || bno >= map->max_buckets) { in crush_do_rule() 1035 map->buckets[bno], in crush_do_rule() 1057 map->buckets[bno], in crush_do_rule()
|
| /linux/fs/ext2/ |
| H A D | inode.c | 626 u32 *bno, bool *new, bool *boundary, in ext2_get_blocks() argument 779 *bno = le32_to_cpu(chain[depth-1].key); in ext2_get_blocks() 788 u32 bno; in ext2_get_block() local 791 ret = ext2_get_blocks(inode, iblock, max_blocks, &bno, &new, &boundary, in ext2_get_block() 796 map_bh(bh_result, inode->i_sb, bno); in ext2_get_block() 814 u32 bno; in ext2_iomap_begin() local 836 &bno, &new, &boundary, create); in ext2_iomap_begin() 859 iomap->addr = (u64)bno << blkbits; in ext2_iomap_begin()
|