/fs/xfs/ |
D | xfs_extent_busy.c | 26 xfs_agblock_t bno, in xfs_extent_busy_insert() argument 38 new->bno = bno; in xfs_extent_busy_insert() 44 trace_xfs_extent_busy(tp->t_mountp, agno, bno, len); in xfs_extent_busy_insert() 53 if (new->bno < busyp->bno) { in xfs_extent_busy_insert() 55 ASSERT(new->bno + new->length <= busyp->bno); in xfs_extent_busy_insert() 56 } else if (new->bno > busyp->bno) { in xfs_extent_busy_insert() 58 ASSERT(bno >= busyp->bno + busyp->length); in xfs_extent_busy_insert() 85 xfs_agblock_t bno, in xfs_extent_busy_search() argument 101 if (bno < busyp->bno) { in xfs_extent_busy_search() 103 if (bno + len > busyp->bno) in xfs_extent_busy_search() [all …]
|
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_extent_busy.h | 26 xfs_agblock_t bno; member 35 xfs_agblock_t bno, xfs_extlen_t len, unsigned int flags); 43 xfs_agblock_t bno, xfs_extlen_t len); 50 xfs_extent_busy_trim(struct xfs_alloc_arg *args, xfs_agblock_t *bno,
|
D | xfs_bmap_util.c | 269 xfs_fsblock_t bno = blockno; in xfs_bmap_count_tree() local 274 error = xfs_btree_read_bufl(mp, tp, bno, &bp, XFS_BMAP_BTREE_REF, in xfs_bmap_count_tree() 298 bno = be64_to_cpu(*pp); in xfs_bmap_count_tree() 299 error = xfs_bmap_count_tree(mp, tp, ifp, bno, level, nextents, in xfs_bmap_count_tree() 318 bno = nextbno; in xfs_bmap_count_tree() 319 error = xfs_btree_read_bufl(mp, tp, bno, &bp, in xfs_bmap_count_tree() 347 xfs_fsblock_t bno; /* block # of "block" */ in xfs_bmap_count_blocks() local 351 bno = NULLFSBLOCK; in xfs_bmap_count_blocks() 377 bno = be64_to_cpu(*pp); in xfs_bmap_count_blocks() 378 ASSERT(bno != NULLFSBLOCK); in xfs_bmap_count_blocks() [all …]
|
/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 | trace.h | 130 xfs_agblock_t bno, int error, void *ret_ip), 131 TP_ARGS(sc, agno, bno, error, ret_ip), 136 __field(xfs_agblock_t, bno) 144 __entry->bno = bno; 152 __entry->bno, 196 __field(xfs_agblock_t, bno) 202 xfs_agblock_t bno; 206 bno = XFS_FSB_TO_AGBNO(sc->mp, fsbno); 211 __entry->bno = bno; 218 __entry->bno, [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 | 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()
|
/fs/xfs/libxfs/ |
D | xfs_rmap.c | 32 xfs_agblock_t bno, in xfs_rmap_lookup_le() argument 39 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_le() 54 xfs_agblock_t bno, in xfs_rmap_lookup_eq() argument 61 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_eq() 275 xfs_agblock_t bno, in xfs_rmap_find_left_neighbor() argument 286 if (bno == 0) in xfs_rmap_find_left_neighbor() 288 info.high.rm_startblock = bno - 1; in xfs_rmap_find_left_neighbor() 303 cur->bc_private.a.agno, bno, 0, owner, offset, flags); in xfs_rmap_find_left_neighbor() 353 xfs_agblock_t bno, in xfs_rmap_lookup_le_range() argument 363 info.high.rm_startblock = bno; in xfs_rmap_lookup_le_range() [all …]
|
D | xfs_attr_remote.c | 71 xfs_daddr_t bno) in xfs_attr3_rmt_hdr_ok() argument 75 if (bno != be64_to_cpu(rmt->rm_blkno)) in xfs_attr3_rmt_hdr_ok() 94 xfs_daddr_t bno) in xfs_attr3_rmt_verify() argument 104 if (be64_to_cpu(rmt->rm_blkno) != bno) in xfs_attr3_rmt_verify() 126 xfs_daddr_t bno; in __xfs_attr3_rmt_read_verify() local 134 bno = bp->b_bn; in __xfs_attr3_rmt_read_verify() 144 *failaddr = xfs_attr3_rmt_verify(mp, bp, ptr, blksize, bno); in __xfs_attr3_rmt_read_verify() 149 bno += BTOBB(blksize); in __xfs_attr3_rmt_read_verify() 192 xfs_daddr_t bno; in xfs_attr3_rmt_write_verify() local 199 bno = bp->b_bn; in xfs_attr3_rmt_write_verify() [all …]
|
D | xfs_rmap.h | 116 xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, 119 xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, 122 int xfs_rmap_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno, 125 int xfs_rmap_lookup_eq(struct xfs_btree_cur *cur, xfs_agblock_t bno, 173 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner); 175 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner); 184 int xfs_rmap_find_left_neighbor(struct xfs_btree_cur *cur, xfs_agblock_t bno, 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, [all …]
|
D | xfs_alloc.h | 156 xfs_agblock_t bno, /* block being freed */ 183 xfs_fsblock_t bno, /* starting block number of extent */ 192 xfs_fsblock_t bno, in xfs_free_extent() argument 197 return __xfs_free_extent(tp, bno, len, oinfo, type, false); in xfs_free_extent() 203 xfs_agblock_t bno, /* starting block of extent */ 210 xfs_agblock_t bno, /* starting block of extent */ 217 xfs_agblock_t *bno, /* output: starting block of extent */ 245 int xfs_alloc_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno, 248 typedef int (*xfs_agfl_walk_fn)(struct xfs_mount *mp, xfs_agblock_t bno,
|
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, 203 int xfs_bmapi_read(struct xfs_inode *ip, xfs_fileoff_t bno, 207 xfs_fileoff_t bno, xfs_filblks_t len, int flags, 210 xfs_fileoff_t bno, xfs_filblks_t *rlen, int flags, 213 xfs_fileoff_t bno, xfs_filblks_t len, int flags, 247 xfs_fsblock_t bno, in xfs_bmap_add_free() argument 251 __xfs_bmap_add_free(tp, bno, len, oinfo, false); in xfs_bmap_add_free() 292 xfs_fileoff_t bno, xfs_filblks_t len, xfs_fsblock_t startblock,
|
D | xfs_alloc.c | 145 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_eq() argument 149 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_eq() 161 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_ge() argument 165 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_ge() 177 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_le() argument 181 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_le() 194 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_update() argument 199 rec.alloc.ar_startblock = cpu_to_be32(bno); in xfs_alloc_update() 210 xfs_agblock_t *bno, /* output: starting block of extent */ in xfs_alloc_get_rec() argument 223 *bno = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_get_rec() [all …]
|
D | xfs_rmap_btree.c | 89 xfs_agblock_t bno; in xfs_rmapbt_alloc_block() local 93 &bno, 1); in xfs_rmapbt_alloc_block() 98 bno, 1); in xfs_rmapbt_alloc_block() 99 if (bno == NULLAGBLOCK) { in xfs_rmapbt_alloc_block() 104 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_private.a.agno, bno, 1, in xfs_rmapbt_alloc_block() 108 new->s = cpu_to_be32(bno); in xfs_rmapbt_alloc_block() 125 xfs_agblock_t bno; in xfs_rmapbt_free_block() local 128 bno = xfs_daddr_to_agbno(cur->bc_mp, XFS_BUF_ADDR(bp)); in xfs_rmapbt_free_block() 130 bno, 1); in xfs_rmapbt_free_block() 133 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_rmapbt_free_block() [all …]
|
D | xfs_refcount.h | 10 xfs_agblock_t bno, int *stat); 12 xfs_agblock_t bno, int *stat); 14 xfs_agblock_t bno, int *stat); 72 xfs_agblock_t bno, xfs_extlen_t len, bool *exists);
|
D | xfs_bmap.c | 228 xfs_fsblock_t bno) in xfs_bmap_get_bp() argument 239 if (XFS_BUF_ADDR(cur->bc_bufs[i]) == bno) in xfs_bmap_get_bp() 248 XFS_BUF_ADDR(bip->bli_buf) == bno) in xfs_bmap_get_bp() 318 xfs_fsblock_t bno; /* block # of "block" */ in xfs_bmap_check_leaf_extents() local 339 bno = NULLFSBLOCK; in xfs_bmap_check_leaf_extents() 350 bno = be64_to_cpu(*pp); in xfs_bmap_check_leaf_extents() 352 ASSERT(bno != NULLFSBLOCK); in xfs_bmap_check_leaf_extents() 353 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount); in xfs_bmap_check_leaf_extents() 354 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); in xfs_bmap_check_leaf_extents() 363 bp = xfs_bmap_get_bp(cur, XFS_FSB_TO_DADDR(mp, bno)); in xfs_bmap_check_leaf_extents() [all …]
|
D | xfs_types.c | 72 xfs_agblock_t bno; in xfs_agino_range() local 81 bno = round_up(XFS_AGFL_BLOCK(mp) + 1, M_IGEO(mp)->cluster_align); in xfs_agino_range() 82 *first = XFS_AGB_TO_AGINO(mp, bno); in xfs_agino_range() 88 bno = round_down(eoag, M_IGEO(mp)->cluster_align); in xfs_agino_range() 89 *last = XFS_AGB_TO_AGINO(mp, bno) - 1; in xfs_agino_range()
|
D | xfs_da_btree.h | 190 xfs_dablk_t bno, xfs_daddr_t mappedbno, 197 int xfs_da_grow_inode_int(struct xfs_da_args *args, xfs_fileoff_t *bno, 200 xfs_dablk_t bno, xfs_daddr_t mappedbno, 203 xfs_dablk_t bno, xfs_daddr_t mappedbno, 206 int xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno,
|
D | xfs_dir2.c | 556 xfs_fileoff_t bno; /* directory offset of new block */ in xfs_dir2_grow_inode() local 565 bno = XFS_B_TO_FSBT(mp, space * XFS_DIR2_SPACE_SIZE); in xfs_dir2_grow_inode() 568 error = xfs_da_grow_inode_int(args, &bno, count); in xfs_dir2_grow_inode() 572 *dbp = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)bno); in xfs_dir2_grow_inode() 580 size = XFS_FSB_TO_B(mp, bno + count); in xfs_dir2_grow_inode() 639 xfs_fileoff_t bno; /* directory file offset */ in xfs_dir2_shrink_inode() local 686 bno = da; in xfs_dir2_shrink_inode() 687 if ((error = xfs_bmap_last_before(tp, dp, &bno, XFS_DATA_FORK))) { in xfs_dir2_shrink_inode() 694 ASSERT(bno == 0); in xfs_dir2_shrink_inode() 696 ASSERT(bno > 0); in xfs_dir2_shrink_inode() [all …]
|
D | xfs_alloc_btree.c | 62 xfs_agblock_t bno; in xfs_allocbt_alloc_block() local 66 &bno, 1); in xfs_allocbt_alloc_block() 70 if (bno == NULLAGBLOCK) { in xfs_allocbt_alloc_block() 75 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_private.a.agno, bno, 1, false); in xfs_allocbt_alloc_block() 78 new->s = cpu_to_be32(bno); in xfs_allocbt_alloc_block() 91 xfs_agblock_t bno; in xfs_allocbt_free_block() local 94 bno = xfs_daddr_to_agbno(cur->bc_mp, XFS_BUF_ADDR(bp)); in xfs_allocbt_free_block() 95 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_allocbt_free_block() 99 xfs_extent_busy_insert(cur->bc_tp, be32_to_cpu(agf->agf_seqno), bno, 1, in xfs_allocbt_free_block()
|
D | xfs_refcount.c | 46 xfs_agblock_t bno, in xfs_refcount_lookup_le() argument 49 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_le() 51 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_le() 63 xfs_agblock_t bno, in xfs_refcount_lookup_ge() argument 66 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_ge() 68 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_ge() 80 xfs_agblock_t bno, in xfs_refcount_lookup_eq() argument 83 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_eq() 85 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_eq() 1091 xfs_agblock_t bno; in xfs_refcount_finish_one() local [all …]
|
D | xfs_da_btree.c | 282 xfs_dablk_t bno, in xfs_da3_node_read() argument 289 err = xfs_da_read_buf(tp, dp, bno, mappedbno, bpp, in xfs_da3_node_read() 2074 xfs_fileoff_t *bno, in xfs_da_grow_inode_int() argument 2087 error = xfs_bmap_first_unused(tp, dp, count, bno, w); in xfs_da_grow_inode_int() 2095 error = xfs_bmapi_write(tp, dp, *bno, count, in xfs_da_grow_inode_int() 2114 for (b = *bno, mapi = 0; b < *bno + count; ) { in xfs_da_grow_inode_int() 2116 c = (int)(*bno + count - b); in xfs_da_grow_inode_int() 2138 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int() 2140 *bno + count) { in xfs_da_grow_inode_int() 2163 xfs_fileoff_t bno; in xfs_da_grow_inode() local [all …]
|
/fs/iomap/ |
D | fiemap.c | 116 sector_t *bno = data, addr; in iomap_bmap_actor() local 123 *bno = addr; in iomap_bmap_actor() 130 iomap_bmap(struct address_space *mapping, sector_t bno, in iomap_bmap() argument 134 loff_t pos = bno << inode->i_blkbits; in iomap_bmap() 140 bno = 0; in iomap_bmap() 141 iomap_apply(inode, pos, blocksize, 0, ops, &bno, iomap_bmap_actor); in iomap_bmap() 142 return bno; in iomap_bmap()
|