| /Linux-v5.15/fs/xfs/ |
| D | xfs_extent_busy.c | 26 xfs_agblock_t bno, in xfs_extent_busy_insert() argument 37 new->bno = bno; in xfs_extent_busy_insert() 43 trace_xfs_extent_busy(tp->t_mountp, pag->pag_agno, bno, len); in xfs_extent_busy_insert() 51 if (new->bno < busyp->bno) { in xfs_extent_busy_insert() 53 ASSERT(new->bno + new->length <= busyp->bno); in xfs_extent_busy_insert() 54 } else if (new->bno > busyp->bno) { in xfs_extent_busy_insert() 56 ASSERT(bno >= busyp->bno + busyp->length); in xfs_extent_busy_insert() 82 xfs_agblock_t bno, in xfs_extent_busy_search() argument 94 if (bno < busyp->bno) { in xfs_extent_busy_search() 96 if (bno + len > busyp->bno) in xfs_extent_busy_search() [all …]
|
| D | xfs_extent_busy.h | 27 xfs_agblock_t bno; member 36 xfs_agblock_t bno, xfs_extlen_t len, unsigned int flags); 44 xfs_agblock_t bno, xfs_extlen_t len); 51 xfs_extent_busy_trim(struct xfs_alloc_arg *args, xfs_agblock_t *bno,
|
| D | xfs_rtalloc.c | 344 xfs_rtblock_t bno, /* starting block number to allocate */ in xfs_rtallocate_extent_exact() argument 362 error = xfs_rtcheck_range(mp, tp, bno, maxlen, 1, &next, &isfree); in xfs_rtallocate_extent_exact() 370 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); in xfs_rtallocate_extent_exact() 375 *rtblock = bno; in xfs_rtallocate_extent_exact() 381 maxlen = next - bno; in xfs_rtallocate_extent_exact() 405 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); in xfs_rtallocate_extent_exact() 410 *rtblock = bno; in xfs_rtallocate_extent_exact() 423 xfs_rtblock_t bno, /* starting block number to allocate */ in xfs_rtallocate_extent_near() argument 446 if (bno >= mp->m_sb.sb_rextents) in xfs_rtallocate_extent_near() 447 bno = mp->m_sb.sb_rextents - 1; in xfs_rtallocate_extent_near() [all …]
|
| D | xfs_bmap_util.c | 355 xfs_fileoff_t bno, in xfs_getbmap_report_hole() argument 364 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, bno); in xfs_getbmap_report_hole() 365 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, end - bno); in xfs_getbmap_report_hole() 414 xfs_fileoff_t bno, first_bno; in xfs_getbmap() local 513 first_bno = bno = XFS_BB_TO_FSBT(mp, bmv->bmv_offset); in xfs_getbmap() 520 if (!xfs_iext_lookup_extent(ip, ifp, bno, &icur, &got)) { in xfs_getbmap() 526 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, in xfs_getbmap() 538 if (got.br_startoff > bno) { in xfs_getbmap() 539 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, in xfs_getbmap() 550 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap() [all …]
|
| /Linux-v5.15/fs/xfs/scrub/ |
| D | refcount.c | 76 xfs_agblock_t bno; member 107 rc_last = refchk->bno + refchk->len - 1; in xchk_refcountbt_rmap_check() 115 if (rec->rm_startblock <= refchk->bno && rm_last >= rc_last) { in xchk_refcountbt_rmap_check() 153 xfs_agblock_t bno; in xchk_refcountbt_process_rmap_fragments() local 175 bno = 0; 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() 188 if (frag->rm.rm_startblock > refchk->bno || nr > target_nr) in xchk_refcountbt_process_rmap_fragments() 190 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments() 191 if (bno < rbno) in xchk_refcountbt_process_rmap_fragments() [all …]
|
| D | alloc.c | 98 xfs_agblock_t bno; in xchk_allocbt_rec() local 101 bno = be32_to_cpu(rec->alloc.ar_startblock); in xchk_allocbt_rec() 104 if (bno + len <= bno || in xchk_allocbt_rec() 105 !xfs_verify_agbno(mp, agno, bno) || in xchk_allocbt_rec() 106 !xfs_verify_agbno(mp, agno, bno + len - 1)) in xchk_allocbt_rec() 109 xchk_allocbt_xref(bs->sc, bno, len); in xchk_allocbt_rec()
|
| D | rmap.c | 176 xfs_agblock_t bno, in xchk_xref_check_owner() argument 187 error = xfs_rmap_record_exists(sc->sa.rmap_cur, bno, len, oinfo, in xchk_xref_check_owner() 199 xfs_agblock_t bno, in xchk_xref_is_owned_by() argument 203 xchk_xref_check_owner(sc, bno, len, oinfo, true); in xchk_xref_is_owned_by() 210 xfs_agblock_t bno, in xchk_xref_is_not_owned_by() argument 214 xchk_xref_check_owner(sc, bno, len, oinfo, false); in xchk_xref_is_not_owned_by() 221 xfs_agblock_t bno, in xchk_xref_has_no_owner() argument 230 error = xfs_rmap_has_record(sc->sa.rmap_cur, bno, len, &has_rmap); in xchk_xref_has_no_owner()
|
| D | trace.h | 144 xfs_agblock_t bno, int error, void *ret_ip), 145 TP_ARGS(sc, agno, bno, error, ret_ip), 150 __field(xfs_agblock_t, bno) 158 __entry->bno = bno; 166 __entry->bno, 337 __field(xfs_agblock_t, bno) 350 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 362 __entry->bno, 380 __field(xfs_agblock_t, bno) 394 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); [all …]
|
| D | ialloc.c | 108 xfs_agblock_t bno; in xchk_iallocbt_chunk() local 110 bno = XFS_AGINO_TO_AGBNO(mp, agino); in xchk_iallocbt_chunk() 111 if (bno + len <= bno || in xchk_iallocbt_chunk() 112 !xfs_verify_agbno(mp, agno, bno) || in xchk_iallocbt_chunk() 113 !xfs_verify_agbno(mp, agno, bno + len - 1)) in xchk_iallocbt_chunk() 116 xchk_iallocbt_chunk_xref(bs->sc, irec, agino, bno, len); in xchk_iallocbt_chunk()
|
| /Linux-v5.15/fs/xfs/libxfs/ |
| D | xfs_rmap.c | 34 xfs_agblock_t bno, in xfs_rmap_lookup_le() argument 41 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_le() 56 xfs_agblock_t bno, in xfs_rmap_lookup_eq() argument 63 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_eq() 289 xfs_agblock_t bno, in xfs_rmap_find_left_neighbor() argument 300 if (bno == 0) in xfs_rmap_find_left_neighbor() 302 info.high.rm_startblock = bno - 1; in xfs_rmap_find_left_neighbor() 317 cur->bc_ag.pag->pag_agno, bno, 0, owner, offset, flags); in xfs_rmap_find_left_neighbor() 367 xfs_agblock_t bno, in xfs_rmap_lookup_le_range() argument 377 info.high.rm_startblock = bno; in xfs_rmap_lookup_le_range() [all …]
|
| D | xfs_attr_remote.c | 72 xfs_daddr_t bno) in xfs_attr3_rmt_hdr_ok() argument 76 if (bno != be64_to_cpu(rmt->rm_blkno)) in xfs_attr3_rmt_hdr_ok() 95 xfs_daddr_t bno) in xfs_attr3_rmt_verify() argument 103 if (be64_to_cpu(rmt->rm_blkno) != bno) in xfs_attr3_rmt_verify() 125 xfs_daddr_t bno; in __xfs_attr3_rmt_read_verify() local 133 bno = xfs_buf_daddr(bp); in __xfs_attr3_rmt_read_verify() 143 *failaddr = xfs_attr3_rmt_verify(mp, bp, ptr, blksize, bno); in __xfs_attr3_rmt_read_verify() 148 bno += BTOBB(blksize); in __xfs_attr3_rmt_read_verify() 191 xfs_daddr_t bno; in xfs_attr3_rmt_write_verify() local 198 bno = xfs_buf_daddr(bp); in xfs_attr3_rmt_write_verify() [all …]
|
| D | xfs_alloc.h | 145 xfs_agblock_t bno, /* block being freed */ 172 xfs_fsblock_t bno, /* starting block number of extent */ 181 xfs_fsblock_t bno, in xfs_free_extent() argument 186 return __xfs_free_extent(tp, bno, len, oinfo, type, false); in xfs_free_extent() 192 xfs_agblock_t bno, /* starting block of extent */ 199 xfs_agblock_t bno, /* starting block of extent */ 206 xfs_agblock_t *bno, /* output: starting block of extent */ 234 int xfs_alloc_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno, 237 typedef int (*xfs_agfl_walk_fn)(struct xfs_mount *mp, xfs_agblock_t bno,
|
| D | xfs_rmap.h | 118 struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len, 121 struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len, 124 int xfs_rmap_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno, 127 int xfs_rmap_lookup_eq(struct xfs_btree_cur *cur, xfs_agblock_t bno, 176 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner); 178 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner); 187 int xfs_rmap_find_left_neighbor(struct xfs_btree_cur *cur, xfs_agblock_t bno, 190 int xfs_rmap_lookup_le_range(struct xfs_btree_cur *cur, xfs_agblock_t bno, 198 int xfs_rmap_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno, 200 int xfs_rmap_record_exists(struct xfs_btree_cur *cur, xfs_agblock_t bno, [all …]
|
| D | xfs_alloc.c | 145 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_eq() argument 151 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_eq() 165 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_ge() argument 171 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_ge() 185 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_le() argument 190 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_le() 212 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_update() argument 217 rec.alloc.ar_startblock = cpu_to_be32(bno); in xfs_alloc_update() 228 xfs_agblock_t *bno, /* output: starting block of extent */ in xfs_alloc_get_rec() argument 241 *bno = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_get_rec() [all …]
|
| D | xfs_bmap.h | 186 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno, 192 void __xfs_bmap_add_free(struct xfs_trans *tp, xfs_fsblock_t bno, 202 int xfs_bmapi_read(struct xfs_inode *ip, xfs_fileoff_t bno, 206 xfs_fileoff_t bno, xfs_filblks_t len, int flags, 209 xfs_fileoff_t bno, xfs_filblks_t *rlen, int flags, 212 xfs_fileoff_t bno, xfs_filblks_t len, int flags, 245 xfs_fsblock_t bno, in xfs_bmap_add_free() argument 249 __xfs_bmap_add_free(tp, bno, len, oinfo, false); in xfs_bmap_add_free() 290 xfs_fileoff_t bno, xfs_filblks_t len, xfs_fsblock_t startblock,
|
| D | xfs_refcount.h | 17 xfs_agblock_t bno, int *stat); 19 xfs_agblock_t bno, int *stat); 21 xfs_agblock_t bno, int *stat); 79 xfs_agblock_t bno, xfs_extlen_t len, bool *exists);
|
| D | xfs_da_btree.h | 192 xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork); 204 int xfs_da_grow_inode_int(struct xfs_da_args *args, xfs_fileoff_t *bno, 207 xfs_dablk_t bno, struct xfs_buf **bp, int whichfork); 209 xfs_dablk_t bno, unsigned int flags, struct xfs_buf **bpp, 211 int xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno,
|
| D | xfs_types.c | 96 xfs_agblock_t bno; in xfs_agino_range() local 105 bno = round_up(XFS_AGFL_BLOCK(mp) + 1, M_IGEO(mp)->cluster_align); in xfs_agino_range() 106 *first = XFS_AGB_TO_AGINO(mp, bno); in xfs_agino_range() 112 bno = round_down(eoag, M_IGEO(mp)->cluster_align); in xfs_agino_range() 113 *last = XFS_AGB_TO_AGINO(mp, bno) - 1; in xfs_agino_range()
|
| D | xfs_rmap_btree.c | 88 xfs_agblock_t bno; in xfs_rmapbt_alloc_block() local 92 &bno, 1); in xfs_rmapbt_alloc_block() 96 trace_xfs_rmapbt_alloc_block(cur->bc_mp, pag->pag_agno, bno, 1); in xfs_rmapbt_alloc_block() 97 if (bno == NULLAGBLOCK) { in xfs_rmapbt_alloc_block() 102 xfs_extent_busy_reuse(cur->bc_mp, pag, bno, 1, false); in xfs_rmapbt_alloc_block() 104 new->s = cpu_to_be32(bno); in xfs_rmapbt_alloc_block() 122 xfs_agblock_t bno; in xfs_rmapbt_free_block() local 125 bno = xfs_daddr_to_agbno(cur->bc_mp, xfs_buf_daddr(bp)); in xfs_rmapbt_free_block() 127 bno, 1); in xfs_rmapbt_free_block() 130 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_rmapbt_free_block() [all …]
|
| D | xfs_dir2.c | 562 xfs_fileoff_t bno; /* directory offset of new block */ in xfs_dir2_grow_inode() local 571 bno = XFS_B_TO_FSBT(mp, space * XFS_DIR2_SPACE_SIZE); in xfs_dir2_grow_inode() 574 error = xfs_da_grow_inode_int(args, &bno, count); in xfs_dir2_grow_inode() 578 *dbp = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)bno); in xfs_dir2_grow_inode() 586 size = XFS_FSB_TO_B(mp, bno + count); in xfs_dir2_grow_inode() 645 xfs_fileoff_t bno; /* directory file offset */ in xfs_dir2_shrink_inode() local 692 bno = da; in xfs_dir2_shrink_inode() 693 if ((error = xfs_bmap_last_before(tp, dp, &bno, XFS_DATA_FORK))) { in xfs_dir2_shrink_inode() 700 ASSERT(bno == 0); in xfs_dir2_shrink_inode() 702 ASSERT(bno > 0); in xfs_dir2_shrink_inode() [all …]
|
| D | xfs_alloc_btree.c | 59 xfs_agblock_t bno; in xfs_allocbt_alloc_block() local 63 &bno, 1); in xfs_allocbt_alloc_block() 67 if (bno == NULLAGBLOCK) { in xfs_allocbt_alloc_block() 73 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_ag.agbp->b_pag, bno, 1, false); in xfs_allocbt_alloc_block() 75 new->s = cpu_to_be32(bno); in xfs_allocbt_alloc_block() 87 xfs_agblock_t bno; in xfs_allocbt_free_block() local 90 bno = xfs_daddr_to_agbno(cur->bc_mp, xfs_buf_daddr(bp)); in xfs_allocbt_free_block() 91 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_allocbt_free_block() 96 xfs_extent_busy_insert(cur->bc_tp, agbp->b_pag, bno, 1, in xfs_allocbt_free_block()
|
| D | xfs_bmap.c | 234 xfs_fsblock_t bno) in xfs_bmap_get_bp() argument 245 if (xfs_buf_daddr(cur->bc_bufs[i]) == bno) in xfs_bmap_get_bp() 254 xfs_buf_daddr(bip->bli_buf) == bno) in xfs_bmap_get_bp() 326 xfs_fsblock_t bno; /* block # of "block" */ in xfs_bmap_check_leaf_extents() local 344 bno = NULLFSBLOCK; in xfs_bmap_check_leaf_extents() 353 bno = be64_to_cpu(*pp); in xfs_bmap_check_leaf_extents() 355 ASSERT(bno != NULLFSBLOCK); in xfs_bmap_check_leaf_extents() 356 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount); in xfs_bmap_check_leaf_extents() 357 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); in xfs_bmap_check_leaf_extents() 366 bp = xfs_bmap_get_bp(cur, XFS_FSB_TO_DADDR(mp, bno)); in xfs_bmap_check_leaf_extents() [all …]
|
| D | xfs_refcount.c | 47 xfs_agblock_t bno, in xfs_refcount_lookup_le() argument 50 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, bno, in xfs_refcount_lookup_le() 52 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_le() 64 xfs_agblock_t bno, in xfs_refcount_lookup_ge() argument 67 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, bno, in xfs_refcount_lookup_ge() 69 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_ge() 81 xfs_agblock_t bno, in xfs_refcount_lookup_eq() argument 84 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.pag->pag_agno, bno, in xfs_refcount_lookup_eq() 86 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_eq() 1146 xfs_agblock_t bno; in xfs_refcount_finish_one() local [all …]
|
| D | xfs_da_btree.c | 372 xfs_dablk_t bno, in xfs_da3_node_read() argument 378 error = xfs_da_read_buf(tp, dp, bno, 0, bpp, whichfork, in xfs_da3_node_read() 2142 xfs_fileoff_t *bno, in xfs_da_grow_inode_int() argument 2155 error = xfs_bmap_first_unused(tp, dp, count, bno, w); in xfs_da_grow_inode_int() 2163 error = xfs_bmapi_write(tp, dp, *bno, count, in xfs_da_grow_inode_int() 2182 for (b = *bno, mapi = 0; b < *bno + count; ) { in xfs_da_grow_inode_int() 2184 c = (int)(*bno + count - b); in xfs_da_grow_inode_int() 2206 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int() 2208 *bno + count) { in xfs_da_grow_inode_int() 2231 xfs_fileoff_t bno; in xfs_da_grow_inode() local [all …]
|
| /Linux-v5.15/fs/iomap/ |
| D | fiemap.c | 97 iomap_bmap(struct address_space *mapping, sector_t bno, in iomap_bmap() argument 102 .pos = (loff_t)bno << mapping->host->i_blkbits, in iomap_bmap() 112 bno = 0; in iomap_bmap() 115 bno = iomap_sector(&iter.iomap, iter.pos) >> blkshift; in iomap_bmap() 121 return bno; in iomap_bmap()
|