/openbmc/linux/fs/xfs/ |
H A D | xfs_extent_busy.c | 25 xfs_agblock_t bno, in xfs_extent_busy_insert_list() argument 37 new->bno = bno; in xfs_extent_busy_insert_list() 43 trace_xfs_extent_busy(pag->pag_mount, pag->pag_agno, bno, len); in xfs_extent_busy_insert_list() 51 if (new->bno < busyp->bno) { in xfs_extent_busy_insert_list() 53 ASSERT(new->bno + new->length <= busyp->bno); in xfs_extent_busy_insert_list() 54 } else if (new->bno > busyp->bno) { in xfs_extent_busy_insert_list() 56 ASSERT(bno >= busyp->bno + busyp->length); in xfs_extent_busy_insert_list() 74 xfs_agblock_t bno, in xfs_extent_busy_insert() argument 78 xfs_extent_busy_insert_list(pag, bno, len, flags, &tp->t_busy); in xfs_extent_busy_insert() 84 xfs_agblock_t bno, in xfs_extent_busy_insert_discard() argument [all …]
|
H A D | xfs_extent_busy.h | 24 xfs_agblock_t bno; member 50 xfs_agblock_t bno, xfs_extlen_t len, unsigned int flags); 53 xfs_extent_busy_insert_discard(struct xfs_perag *pag, xfs_agblock_t bno, 62 xfs_agblock_t bno, xfs_extlen_t len); 69 xfs_extent_busy_trim(struct xfs_alloc_arg *args, xfs_agblock_t *bno,
|
H A D | xfs_rtalloc.c | 362 xfs_rtblock_t bno, /* starting block number to allocate */ in xfs_rtallocate_extent_exact() argument 381 error = xfs_rtcheck_range(mp, tp, bno, maxlen, 1, &next, &isfree); in xfs_rtallocate_extent_exact() 389 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); in xfs_rtallocate_extent_exact() 394 *rtblock = bno; in xfs_rtallocate_extent_exact() 400 maxlen = next - bno; in xfs_rtallocate_extent_exact() 424 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); in xfs_rtallocate_extent_exact() 429 *rtblock = bno; in xfs_rtallocate_extent_exact() 442 xfs_rtblock_t bno, /* starting block number to allocate */ in xfs_rtallocate_extent_near() argument 467 if (bno >= mp->m_sb.sb_rextents) in xfs_rtallocate_extent_near() 468 bno = mp->m_sb.sb_rextents - 1; in xfs_rtallocate_extent_near() [all …]
|
H A D | xfs_bmap_util.c | 353 xfs_fileoff_t bno, in xfs_getbmap_report_hole() argument 362 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, bno); in xfs_getbmap_report_hole() 363 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, end - bno); in xfs_getbmap_report_hole() 412 xfs_fileoff_t bno, first_bno; in xfs_getbmap() local 512 first_bno = bno = XFS_BB_TO_FSBT(mp, bmv->bmv_offset); in xfs_getbmap() 519 if (!xfs_iext_lookup_extent(ip, ifp, bno, &icur, &got)) { in xfs_getbmap() 525 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, in xfs_getbmap() 537 if (got.br_startoff > bno) { in xfs_getbmap() 538 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, in xfs_getbmap() 549 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap() [all …]
|
/openbmc/linux/fs/xfs/libxfs/ |
H A 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() 347 xfs_agblock_t bno, in xfs_rmap_find_left_neighbor() argument 359 if (bno == 0) in xfs_rmap_find_left_neighbor() 361 info.high.rm_startblock = bno - 1; in xfs_rmap_find_left_neighbor() 375 cur->bc_ag.pag->pag_agno, bno, 0, owner, offset, flags); in xfs_rmap_find_left_neighbor() 393 error = xfs_rmap_lookup_le(cur, bno, owner, offset, flags, irec, in xfs_rmap_find_left_neighbor() 448 xfs_agblock_t bno, in xfs_rmap_lookup_le_range() argument [all …]
|
H A 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 …]
|
H A D | xfs_rmap.h | 119 struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len, 122 struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len, 125 int xfs_rmap_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno, 128 int xfs_rmap_lookup_eq(struct xfs_btree_cur *cur, xfs_agblock_t bno, 181 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner); 183 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner); 190 int xfs_rmap_lookup_le_range(struct xfs_btree_cur *cur, xfs_agblock_t bno, 201 int xfs_rmap_has_records(struct xfs_btree_cur *cur, xfs_agblock_t bno, 215 int xfs_rmap_count_owners(struct xfs_btree_cur *cur, xfs_agblock_t bno, 218 int xfs_rmap_has_other_keys(struct xfs_btree_cur *cur, xfs_agblock_t bno,
|
H A D | xfs_alloc.h | 80 xfs_agblock_t bno, int btreeblk); 165 xfs_agblock_t bno, /* starting block of extent */ 172 xfs_agblock_t bno, /* starting block of extent */ 179 xfs_agblock_t *bno, /* output: starting block of extent */ 215 int xfs_alloc_has_records(struct xfs_btree_cur *cur, xfs_agblock_t bno, 218 typedef int (*xfs_agfl_walk_fn)(struct xfs_mount *mp, xfs_agblock_t bno, 232 int __xfs_free_extent_later(struct xfs_trans *tp, xfs_fsblock_t bno, 260 xfs_fsblock_t bno, in xfs_free_extent_later() argument 265 return __xfs_free_extent_later(tp, bno, len, oinfo, type, false); in xfs_free_extent_later()
|
H A D | xfs_alloc.c | 159 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_eq() argument 165 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_eq() 179 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_ge() argument 185 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_ge() 199 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_le() argument 204 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_le() 226 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_update() argument 231 rec.alloc.ar_startblock = cpu_to_be32(bno); in xfs_alloc_update() 288 xfs_agblock_t *bno, /* output: starting block of extent */ in xfs_alloc_get_rec() argument 306 *bno = irec.ar_startblock; in xfs_alloc_get_rec() [all …]
|
H 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); 115 enum xfs_refc_domain domain, xfs_agblock_t bno,
|
H 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,
|
H 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, 272 xfs_fileoff_t bno, xfs_filblks_t len, xfs_fsblock_t startblock,
|
H A D | xfs_dir2.c | 575 xfs_fileoff_t bno; /* directory offset of new block */ in xfs_dir2_grow_inode() local 584 bno = XFS_B_TO_FSBT(mp, space * XFS_DIR2_SPACE_SIZE); in xfs_dir2_grow_inode() 587 error = xfs_da_grow_inode_int(args, &bno, count); in xfs_dir2_grow_inode() 591 *dbp = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)bno); in xfs_dir2_grow_inode() 599 size = XFS_FSB_TO_B(mp, bno + count); in xfs_dir2_grow_inode() 668 xfs_fileoff_t bno; /* directory file offset */ in xfs_dir2_shrink_inode() local 715 bno = da; in xfs_dir2_shrink_inode() 716 if ((error = xfs_bmap_last_before(tp, dp, &bno, XFS_DATA_FORK))) { in xfs_dir2_shrink_inode() 723 ASSERT(bno == 0); in xfs_dir2_shrink_inode() 725 ASSERT(bno > 0); in xfs_dir2_shrink_inode() [all …]
|
H 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 …]
|
H A 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 …]
|
H 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()
|
H 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 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() 1360 xfs_agblock_t bno; in xfs_refcount_finish_one() local [all …]
|
H A D | xfs_rtbitmap.c | 946 xfs_rtblock_t bno, /* starting block number of extent */ in xfs_rtcheck_alloc_range() argument 953 error = xfs_rtcheck_range(mp, tp, bno, len, 0, &new, &stat); in xfs_rtcheck_alloc_range() 969 xfs_rtblock_t bno, /* starting block number to free */ in xfs_rtfree_extent() argument 982 error = xfs_rtcheck_alloc_range(mp, tp, bno, len); in xfs_rtfree_extent() 989 error = xfs_rtfree_range(mp, tp, bno, len, &sumbp, &sb); in xfs_rtfree_extent() 1023 xfs_rtblock_t bno; in xfs_rtfree_blocks() local 1035 bno = div_u64_rem(rtbno, mp->m_sb.sb_rextsize, &mod); in xfs_rtfree_blocks() 1041 return xfs_rtfree_extent(tp, bno, len); in xfs_rtfree_blocks()
|
H A 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() 2155 xfs_fileoff_t *bno, in xfs_da_grow_inode_int() argument 2168 error = xfs_bmap_first_unused(tp, dp, count, bno, w); in xfs_da_grow_inode_int() 2176 error = xfs_bmapi_write(tp, dp, *bno, count, in xfs_da_grow_inode_int() 2188 for (b = *bno, mapi = 0; b < *bno + count; ) { in xfs_da_grow_inode_int() 2189 c = (int)(*bno + count - b); in xfs_da_grow_inode_int() 2209 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int() 2211 *bno + count) { in xfs_da_grow_inode_int() 2234 xfs_fileoff_t bno; in xfs_da_grow_inode() local [all …]
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | refcount.c | 81 xfs_agblock_t bno; member 112 rc_last = refchk->bno + refchk->len - 1; in xchk_refcountbt_rmap_check() 120 if (rec->rm_startblock <= refchk->bno && rm_last >= rc_last) { in xchk_refcountbt_rmap_check() 158 xfs_agblock_t bno; in xchk_refcountbt_process_rmap_fragments() local 180 bno = 0; in xchk_refcountbt_process_rmap_fragments() 182 if (frag->rm.rm_startblock < bno) in xchk_refcountbt_process_rmap_fragments() 184 bno = frag->rm.rm_startblock; in xchk_refcountbt_process_rmap_fragments() 193 if (frag->rm.rm_startblock > refchk->bno || nr > target_nr) in xchk_refcountbt_process_rmap_fragments() 195 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments() 196 if (bno < rbno) in xchk_refcountbt_process_rmap_fragments() [all …]
|
H A D | reap.c | 222 xfs_agblock_t bno = agbno; in xreap_agextent_binval() local 239 while (bno < agbno_next) { in xreap_agextent_binval() 247 max_fsbs = min_t(xfs_agblock_t, agbno_next - bno, in xreap_agextent_binval() 255 daddr = XFS_AGB_TO_DADDR(mp, agno, bno); in xreap_agextent_binval() 272 *aglenp -= agbno_next - bno; in xreap_agextent_binval() 277 bno++; in xreap_agextent_binval() 300 xfs_agblock_t bno = agbno + 1; in xreap_agextent_select() local 323 while (bno < agbno_next) { in xreap_agextent_select() 326 error = xfs_rmap_has_other_keys(cur, bno, 1, rs->oinfo, in xreap_agextent_select() 335 bno++; in xreap_agextent_select()
|
H A D | scrub.h | 192 void xchk_xref_is_cow_staging(struct xfs_scrub *sc, xfs_agblock_t bno, 194 void xchk_xref_is_not_shared(struct xfs_scrub *sc, xfs_agblock_t bno, 196 void xchk_xref_is_not_cow_staging(struct xfs_scrub *sc, xfs_agblock_t bno,
|
H A D | trace.h | 186 xfs_agblock_t bno, int error, void *ret_ip), 187 TP_ARGS(sc, agno, bno, error, ret_ip), 192 __field(xfs_agblock_t, bno) 200 __entry->bno = bno; 208 __entry->bno, 379 __field(xfs_agblock_t, bno) 392 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); 404 __entry->bno, 422 __field(xfs_agblock_t, bno) 436 __entry->bno = XFS_FSB_TO_AGBNO(cur->bc_mp, fsbno); [all …]
|
H A D | rmap.c | 577 xfs_agblock_t bno, in xchk_xref_is_only_owned_by() argument 587 error = xfs_rmap_count_owners(sc->sa.rmap_cur, bno, len, oinfo, &res); in xchk_xref_is_only_owned_by() 602 xfs_agblock_t bno, in xchk_xref_is_not_owned_by() argument 612 error = xfs_rmap_count_owners(sc->sa.rmap_cur, bno, len, oinfo, &res); in xchk_xref_is_not_owned_by() 625 xfs_agblock_t bno, in xchk_xref_has_no_owner() argument 634 error = xfs_rmap_has_records(sc->sa.rmap_cur, bno, len, &outcome); in xchk_xref_has_no_owner()
|
/openbmc/linux/fs/iomap/ |
H 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()
|