/linux-6.1.9/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 514 first_bno = bno = XFS_BB_TO_FSBT(mp, bmv->bmv_offset); in xfs_getbmap() 521 if (!xfs_iext_lookup_extent(ip, ifp, bno, &icur, &got)) { in xfs_getbmap() 527 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, in xfs_getbmap() 539 if (got.br_startoff > bno) { in xfs_getbmap() 540 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, in xfs_getbmap() 551 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap() [all …]
|
/linux-6.1.9/fs/xfs/libxfs/ |
D | xfs_rmap.c | 36 xfs_agblock_t bno, in xfs_rmap_lookup_le() argument 46 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_le() 72 xfs_agblock_t bno, in xfs_rmap_lookup_eq() argument 79 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_eq() 298 xfs_agblock_t bno, in xfs_rmap_find_left_neighbor() argument 310 if (bno == 0) in xfs_rmap_find_left_neighbor() 312 info.high.rm_startblock = bno - 1; in xfs_rmap_find_left_neighbor() 326 cur->bc_ag.pag->pag_agno, bno, 0, owner, offset, flags); in xfs_rmap_find_left_neighbor() 344 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec, in xfs_rmap_find_left_neighbor() 399 xfs_agblock_t bno, in xfs_rmap_lookup_le_range() argument [all …]
|
D | xfs_alloc.h | 102 xfs_agblock_t bno, int btreeblk); 133 xfs_fsblock_t bno, /* starting block number of extent */ 142 xfs_fsblock_t bno, in xfs_free_extent() argument 147 return __xfs_free_extent(tp, bno, len, oinfo, type, false); in xfs_free_extent() 153 xfs_agblock_t bno, /* starting block of extent */ 160 xfs_agblock_t bno, /* starting block of extent */ 167 xfs_agblock_t *bno, /* output: starting block of extent */ 197 int xfs_alloc_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno, 200 typedef int (*xfs_agfl_walk_fn)(struct xfs_mount *mp, xfs_agblock_t bno, 214 void __xfs_free_extent_later(struct xfs_trans *tp, xfs_fsblock_t bno, [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_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_lookup_le_range(struct xfs_btree_cur *cur, xfs_agblock_t bno, 195 int xfs_rmap_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno, 197 int xfs_rmap_record_exists(struct xfs_btree_cur *cur, xfs_agblock_t bno, 200 int xfs_rmap_has_other_keys(struct xfs_btree_cur *cur, xfs_agblock_t bno,
|
D | xfs_alloc.c | 163 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_eq() argument 169 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_eq() 183 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_ge() argument 189 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_ge() 203 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_le() argument 208 cur->bc_rec.a.ar_startblock = bno; 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() 246 xfs_agblock_t *bno, /* output: starting block of extent */ in xfs_alloc_get_rec() argument 259 *bno = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_get_rec() [all …]
|
D | xfs_refcount.h | 17 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat); 19 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat); 21 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat); 113 enum xfs_refc_domain domain, xfs_agblock_t bno,
|
D | xfs_bmap.h | 171 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno, 184 int xfs_bmapi_read(struct xfs_inode *ip, xfs_fileoff_t bno, 188 xfs_fileoff_t bno, xfs_filblks_t len, uint32_t flags, 191 xfs_fileoff_t bno, xfs_filblks_t *rlen, uint32_t flags, 194 xfs_fileoff_t bno, xfs_filblks_t len, uint32_t flags, 262 xfs_fileoff_t bno, xfs_filblks_t len, xfs_fsblock_t startblock,
|
D | xfs_da_btree.h | 198 xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork); 210 int xfs_da_grow_inode_int(struct xfs_da_args *args, xfs_fileoff_t *bno, 213 xfs_dablk_t bno, struct xfs_buf **bp, int whichfork); 215 xfs_dablk_t bno, unsigned int flags, struct xfs_buf **bpp, 217 int xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno,
|
D | xfs_rmap_btree.c | 90 xfs_agblock_t bno; in xfs_rmapbt_alloc_block() local 94 &bno, 1); in xfs_rmapbt_alloc_block() 98 trace_xfs_rmapbt_alloc_block(cur->bc_mp, pag->pag_agno, bno, 1); in xfs_rmapbt_alloc_block() 99 if (bno == NULLAGBLOCK) { in xfs_rmapbt_alloc_block() 104 xfs_extent_busy_reuse(cur->bc_mp, pag, bno, 1, false); in xfs_rmapbt_alloc_block() 106 new->s = cpu_to_be32(bno); in xfs_rmapbt_alloc_block() 124 xfs_agblock_t bno; in xfs_rmapbt_free_block() local 127 bno = xfs_daddr_to_agbno(cur->bc_mp, xfs_buf_daddr(bp)); in xfs_rmapbt_free_block() 129 bno, 1); in xfs_rmapbt_free_block() 132 error = xfs_alloc_put_freelist(pag, cur->bc_tp, agbp, NULL, bno, 1); in xfs_rmapbt_free_block() [all …]
|
D | xfs_dir2.c | 574 xfs_fileoff_t bno; /* directory offset of new block */ in xfs_dir2_grow_inode() local 583 bno = XFS_B_TO_FSBT(mp, space * XFS_DIR2_SPACE_SIZE); in xfs_dir2_grow_inode() 586 error = xfs_da_grow_inode_int(args, &bno, count); in xfs_dir2_grow_inode() 590 *dbp = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)bno); in xfs_dir2_grow_inode() 598 size = XFS_FSB_TO_B(mp, bno + count); in xfs_dir2_grow_inode() 667 xfs_fileoff_t bno; /* directory file offset */ in xfs_dir2_shrink_inode() local 714 bno = da; in xfs_dir2_shrink_inode() 715 if ((error = xfs_bmap_last_before(tp, dp, &bno, XFS_DATA_FORK))) { in xfs_dir2_shrink_inode() 722 ASSERT(bno == 0); in xfs_dir2_shrink_inode() 724 ASSERT(bno > 0); in xfs_dir2_shrink_inode() [all …]
|
D | xfs_bmap.c | 232 xfs_fsblock_t bno) in xfs_bmap_get_bp() argument 243 if (xfs_buf_daddr(cur->bc_levels[i].bp) == bno) in xfs_bmap_get_bp() 252 xfs_buf_daddr(bip->bli_buf) == bno) in xfs_bmap_get_bp() 324 xfs_fsblock_t bno; /* block # of "block" */ in xfs_bmap_check_leaf_extents() local 342 bno = NULLFSBLOCK; in xfs_bmap_check_leaf_extents() 351 bno = be64_to_cpu(*pp); in xfs_bmap_check_leaf_extents() 353 ASSERT(bno != NULLFSBLOCK); in xfs_bmap_check_leaf_extents() 354 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount); in xfs_bmap_check_leaf_extents() 355 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); in xfs_bmap_check_leaf_extents() 364 bp = xfs_bmap_get_bp(cur, XFS_FSB_TO_DADDR(mp, bno)); in xfs_bmap_check_leaf_extents() [all …]
|
D | xfs_alloc_btree.c | 60 xfs_agblock_t bno; in xfs_allocbt_alloc_block() local 64 cur->bc_ag.agbp, &bno, 1); in xfs_allocbt_alloc_block() 68 if (bno == NULLAGBLOCK) { in xfs_allocbt_alloc_block() 74 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_ag.pag, bno, 1, false); in xfs_allocbt_alloc_block() 76 new->s = cpu_to_be32(bno); in xfs_allocbt_alloc_block() 88 xfs_agblock_t bno; in xfs_allocbt_free_block() local 91 bno = xfs_daddr_to_agbno(cur->bc_mp, xfs_buf_daddr(bp)); in xfs_allocbt_free_block() 93 bno, 1); in xfs_allocbt_free_block() 98 xfs_extent_busy_insert(cur->bc_tp, agbp->b_pag, bno, 1, in xfs_allocbt_free_block()
|
D | xfs_refcount.c | 50 xfs_agblock_t bno, in xfs_refcount_lookup_le() argument 54 xfs_refcount_encode_startblock(bno, domain), in xfs_refcount_lookup_le() 56 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_le() 70 xfs_agblock_t bno, in xfs_refcount_lookup_ge() argument 74 xfs_refcount_encode_startblock(bno, domain), in xfs_refcount_lookup_ge() 76 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_ge() 90 xfs_agblock_t bno, in xfs_refcount_lookup_eq() argument 94 xfs_refcount_encode_startblock(bno, domain), in xfs_refcount_lookup_eq() 96 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_eq() 1227 xfs_agblock_t bno; in xfs_refcount_finish_one() local [all …]
|
D | xfs_da_btree.c | 384 xfs_dablk_t bno, in xfs_da3_node_read() argument 390 error = xfs_da_read_buf(tp, dp, bno, 0, bpp, whichfork, in xfs_da3_node_read() 2154 xfs_fileoff_t *bno, in xfs_da_grow_inode_int() argument 2167 error = xfs_bmap_first_unused(tp, dp, count, bno, w); in xfs_da_grow_inode_int() 2175 error = xfs_bmapi_write(tp, dp, *bno, count, in xfs_da_grow_inode_int() 2194 for (b = *bno, mapi = 0; b < *bno + count; ) { in xfs_da_grow_inode_int() 2195 c = (int)(*bno + count - b); in xfs_da_grow_inode_int() 2218 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int() 2220 *bno + count) { in xfs_da_grow_inode_int() 2243 xfs_fileoff_t bno; in xfs_da_grow_inode() local [all …]
|
/linux-6.1.9/fs/xfs/scrub/ |
D | refcount.c | 78 xfs_agblock_t bno; member 109 rc_last = refchk->bno + refchk->len - 1; in xchk_refcountbt_rmap_check() 117 if (rec->rm_startblock <= refchk->bno && rm_last >= rc_last) { in xchk_refcountbt_rmap_check() 155 xfs_agblock_t bno; in xchk_refcountbt_process_rmap_fragments() local 177 bno = 0; in xchk_refcountbt_process_rmap_fragments() 179 if (frag->rm.rm_startblock < bno) in xchk_refcountbt_process_rmap_fragments() 181 bno = frag->rm.rm_startblock; in xchk_refcountbt_process_rmap_fragments() 190 if (frag->rm.rm_startblock > refchk->bno || nr > target_nr) in xchk_refcountbt_process_rmap_fragments() 192 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments() 193 if (bno < rbno) in xchk_refcountbt_process_rmap_fragments() [all …]
|
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 | alloc.c | 97 xfs_agblock_t bno; in xchk_allocbt_rec() local 100 bno = be32_to_cpu(rec->alloc.ar_startblock); in xchk_allocbt_rec() 103 if (!xfs_verify_agbext(pag, bno, len)) in xchk_allocbt_rec() 106 xchk_allocbt_xref(bs->sc, bno, len); in xchk_allocbt_rec()
|
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 | repair.c | 294 xfs_agblock_t bno; in xrep_alloc_ag_block() local 301 sc->sa.agf_bp, &bno, 1); in xrep_alloc_ag_block() 304 if (bno == NULLAGBLOCK) in xrep_alloc_ag_block() 306 xfs_extent_busy_reuse(sc->mp, sc->sa.pag, bno, 1, false); in xrep_alloc_ag_block() 307 *fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.pag->pag_agno, bno); in xrep_alloc_ag_block() 669 xfs_agblock_t bno, in xrep_findroot_agfl_walk() argument 674 return (*agbno == bno) ? -ECANCELED : 0; in xrep_findroot_agfl_walk()
|
/linux-6.1.9/fs/iomap/ |
D | fiemap.c | 98 iomap_bmap(struct address_space *mapping, sector_t bno, in iomap_bmap() argument 103 .pos = (loff_t)bno << mapping->host->i_blkbits, in iomap_bmap() 113 bno = 0; in iomap_bmap() 116 bno = iomap_sector(&iter.iomap, iter.pos) >> blkshift; in iomap_bmap() 122 return bno; in iomap_bmap()
|
/linux-6.1.9/fs/freevxfs/ |
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()
|