/linux-6.3-rc2/fs/xfs/ |
A D | xfs_extent_busy.c | 37 new->bno = bno; 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() 94 if (bno < busyp->bno) { in xfs_extent_busy_search() 96 if (bno + len > busyp->bno) in xfs_extent_busy_search() 99 } else if (bno > busyp->bno) { in xfs_extent_busy_search() 101 if (bno < busyp->bno + busyp->length) in xfs_extent_busy_search() 336 fbno = *bno; in xfs_extent_busy_trim() [all …]
|
A 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,
|
A D | xfs_rtalloc.c | 375 *rtblock = bno; in xfs_rtallocate_extent_exact() 381 maxlen = next - bno; in xfs_rtallocate_extent_exact() 410 *rtblock = bno; in xfs_rtallocate_extent_exact() 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() 450 maxlen = min(mp->m_sb.sb_rextents, bno + maxlen) - bno; in xfs_rtallocate_extent_near() 471 bbno = XFS_BITTOBLOCK(mp, bno); in xfs_rtallocate_extent_near() 773 xfs_fileoff_t bno; /* block number in file */ in xfs_growfs_rt_alloc() local 836 bno < map.br_startoff + map.br_blockcount; in xfs_growfs_rt_alloc() 837 bno++, fsbno++) { in xfs_growfs_rt_alloc() [all …]
|
A 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() 414 xfs_fileoff_t bno, first_bno; in xfs_getbmap() local 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() 558 } while (xfs_getbmap_next_rec(&rec, bno)); in xfs_getbmap() 565 if (whichfork != XFS_ATTR_FORK && bno < end && in xfs_getbmap() 568 bno, end); in xfs_getbmap() [all …]
|
/linux-6.3-rc2/fs/xfs/libxfs/ |
A D | xfs_rmap.c | 36 xfs_agblock_t bno, in xfs_rmap_lookup_le() argument 72 xfs_agblock_t bno, in xfs_rmap_lookup_eq() argument 298 xfs_agblock_t bno, in xfs_rmap_find_left_neighbor() argument 310 if (bno == 0) in xfs_rmap_find_left_neighbor() 399 xfs_agblock_t bno, in xfs_rmap_lookup_le_range() argument 540 xfs_agblock_t bno, in xfs_rmap_unmap() argument 591 bno < in xfs_rmap_unmap() 630 bno + len)) { in xfs_rmap_unmap() 1112 bno)) { in xfs_rmap_convert() 1587 bno)) { in xfs_rmap_convert_shared() [all …]
|
A D | xfs_alloc.h | 81 xfs_agblock_t bno, int btreeblk); 144 xfs_fsblock_t bno, /* starting block number of extent */ 153 xfs_fsblock_t bno, in xfs_free_extent() argument 158 return __xfs_free_extent(tp, bno, len, oinfo, type, false); in xfs_free_extent() 164 xfs_agblock_t bno, /* starting block of extent */ 171 xfs_agblock_t bno, /* starting block of extent */ 178 xfs_agblock_t *bno, /* output: starting block of extent */ 208 int xfs_alloc_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno, 225 void __xfs_free_extent_later(struct xfs_trans *tp, xfs_fsblock_t bno, 248 xfs_fsblock_t bno, in xfs_free_extent_later() argument [all …]
|
A D | xfs_attr_remote.c | 72 xfs_daddr_t bno) in xfs_attr3_rmt_hdr_ok() argument 95 xfs_daddr_t bno) in xfs_attr3_rmt_verify() argument 125 xfs_daddr_t bno; in __xfs_attr3_rmt_read_verify() local 133 bno = xfs_buf_daddr(bp); 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() 223 bno += BTOBB(blksize); in xfs_attr3_rmt_write_verify() 245 xfs_daddr_t bno) in xfs_attr3_rmt_hdr_set() argument 315 bno += BTOBB(blksize); in xfs_attr_rmtval_copyout() [all …]
|
A 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); 185 int xfs_rmap_lookup_le_range(struct xfs_btree_cur *cur, xfs_agblock_t bno, 193 int xfs_rmap_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno, 195 int xfs_rmap_record_exists(struct xfs_btree_cur *cur, xfs_agblock_t bno, 198 int xfs_rmap_has_other_keys(struct xfs_btree_cur *cur, xfs_agblock_t bno,
|
A D | xfs_alloc.c | 302 if (bno < args->min_agbno && bno + len > args->min_agbno) { in xfs_alloc_compute_aligned() 305 bno += diff; in xfs_alloc_compute_aligned() 318 *resbno = bno; in xfs_alloc_compute_aligned() 774 acur->bno = 0; in xfs_alloc_cur_setup() 902 acur->bno = bnew; in xfs_alloc_cur_check() 962 xfs_agblock_t bno; in xfs_alloc_cntbt_iter() local 1497 xfs_agblock_t bno; in xfs_alloc_ag_vextent_near() local 2059 nbno = bno; in xfs_free_ag_extent() 2069 nbno = bno; in xfs_free_ag_extent() 2672 for (bno = targs.agbno; bno < targs.agbno + targs.len; bno++) { in xfs_alloc_fix_freelist() [all …]
|
A 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); 111 enum xfs_refc_domain domain, xfs_agblock_t bno,
|
A 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,
|
A D | xfs_bmap.h | 174 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno, 187 int xfs_bmapi_read(struct xfs_inode *ip, xfs_fileoff_t bno, 191 xfs_fileoff_t bno, xfs_filblks_t len, uint32_t flags, 194 xfs_fileoff_t bno, xfs_filblks_t *rlen, uint32_t flags, 197 xfs_fileoff_t bno, xfs_filblks_t len, uint32_t flags, 266 xfs_fileoff_t bno, xfs_filblks_t len, xfs_fsblock_t startblock,
|
A 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 …]
|
A 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 …]
|
A D | xfs_bmap.c | 232 xfs_fsblock_t bno) in xfs_bmap_get_bp() argument 342 bno = NULLFSBLOCK; in xfs_bmap_check_leaf_extents() 442 bno = nextbno; in xfs_bmap_check_leaf_extents() 505 bno); in xfs_bmap_validate_ret() 3743 if (obno > *bno) in xfs_bmapi_trim_map() 3744 *bno = obno; in xfs_bmapi_trim_map() 3866 end = bno + len; in xfs_bmapi_read() 3867 obno = bno; in xfs_bmapi_read() 4305 orig_bno = bno; in xfs_bmapi_write() 4353 end = bno + len; in xfs_bmapi_write() [all …]
|
A 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 76 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_ge() 90 xfs_agblock_t bno, in xfs_refcount_lookup_eq() argument 96 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_eq() 1332 xfs_agblock_t bno; in xfs_refcount_finish_one() local 1988 xfs_agblock_t bno, in xfs_refcount_has_record() argument 1996 low.rc.rc_startblock = bno; in xfs_refcount_has_record() [all …]
|
A 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()
|
A D | xfs_da_btree.c | 384 xfs_dablk_t bno, in xfs_da3_node_read() argument 2154 xfs_fileoff_t *bno, in xfs_da_grow_inode_int() argument 2194 for (b = *bno, mapi = 0; b < *bno + count; ) { 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 2248 bno = args->geo->leafblk; in xfs_da_grow_inode() 2514 xfs_dablk_t bno, in xfs_dabuf_map() argument 2561 if (off != bno + nfsb) in xfs_dabuf_map() 2600 xfs_dablk_t bno, in xfs_da_get_buf() argument 2635 xfs_dablk_t bno, in xfs_da_read_buf() argument [all …]
|
/linux-6.3-rc2/fs/xfs/scrub/ |
A D | refcount.c | 78 xfs_agblock_t bno; member 155 xfs_agblock_t bno; in xchk_refcountbt_process_rmap_fragments() local 177 bno = 0; in xchk_refcountbt_process_rmap_fragments() 181 bno = frag->rm.rm_startblock; in xchk_refcountbt_process_rmap_fragments() 193 if (bno < rbno) in xchk_refcountbt_process_rmap_fragments() 194 rbno = bno; in xchk_refcountbt_process_rmap_fragments() 212 if (bno != rbno) { in xchk_refcountbt_process_rmap_fragments() 213 if (bno < next_rbno) in xchk_refcountbt_process_rmap_fragments() 214 next_rbno = bno; in xchk_refcountbt_process_rmap_fragments() 228 if (next_rbno > bno) in xchk_refcountbt_process_rmap_fragments() [all …]
|
A 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()
|
A 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()
|
A D | trace.h | 150 __field(xfs_agblock_t, bno) 158 __entry->bno = bno; 166 __entry->bno, 337 __field(xfs_agblock_t, bno) 362 __entry->bno, 380 __field(xfs_agblock_t, bno) 407 __entry->bno, 422 __field(xfs_agblock_t, bno) 444 __entry->bno, 486 __entry->bno, [all …]
|
A D | repair.c | 306 xfs_agblock_t bno; in xrep_alloc_ag_block() local 313 sc->sa.agf_bp, &bno, 1); in xrep_alloc_ag_block() 316 if (bno == NULLAGBLOCK) in xrep_alloc_ag_block() 318 xfs_extent_busy_reuse(sc->mp, sc->sa.pag, bno, 1, false); in xrep_alloc_ag_block() 319 *fsbno = XFS_AGB_TO_FSB(sc->mp, sc->sa.pag->pag_agno, bno); in xrep_alloc_ag_block() 685 xfs_agblock_t bno, in xrep_findroot_agfl_walk() argument 690 return (*agbno == bno) ? -ECANCELED : 0; in xrep_findroot_agfl_walk()
|
/linux-6.3-rc2/fs/iomap/ |
A 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.3-rc2/fs/freevxfs/ |
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()
|