Home
last modified time | relevance | path

Searched refs:bno (Results 1 – 25 of 52) sorted by relevance

123

/kernel/linux/linux-5.10/fs/xfs/
Dxfs_extent_busy.c26 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 …]
Dxfs_extent_busy.h26 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,
Dxfs_rtalloc.c344 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 …]
Dxfs_bmap_util.c313 xfs_fileoff_t bno, in xfs_getbmap_report_hole() argument
322 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, bno); in xfs_getbmap_report_hole()
323 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, end - bno); in xfs_getbmap_report_hole()
372 xfs_fileoff_t bno, first_bno; in xfs_getbmap() local
471 first_bno = bno = XFS_BB_TO_FSBT(mp, bmv->bmv_offset); in xfs_getbmap()
480 if (!xfs_iext_lookup_extent(ip, ifp, bno, &icur, &got)) { in xfs_getbmap()
486 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, in xfs_getbmap()
498 if (got.br_startoff > bno) { in xfs_getbmap()
499 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, in xfs_getbmap()
510 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap()
[all …]
/kernel/linux/linux-5.10/fs/xfs/scrub/
Drefcount.c76 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 …]
Dalloc.c98 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()
Drmap.c176 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()
Dtrace.h130 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 …]
Dialloc.c108 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()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_rmap.c32 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()
287 xfs_agblock_t bno, in xfs_rmap_find_left_neighbor() argument
298 if (bno == 0) in xfs_rmap_find_left_neighbor()
300 info.high.rm_startblock = bno - 1; in xfs_rmap_find_left_neighbor()
315 cur->bc_ag.agno, bno, 0, owner, offset, flags); in xfs_rmap_find_left_neighbor()
365 xfs_agblock_t bno, in xfs_rmap_lookup_le_range() argument
375 info.high.rm_startblock = bno; in xfs_rmap_lookup_le_range()
[all …]
Dxfs_alloc.h142 xfs_agblock_t bno, /* block being freed */
169 xfs_fsblock_t bno, /* starting block number of extent */
178 xfs_fsblock_t bno, in xfs_free_extent() argument
183 return __xfs_free_extent(tp, bno, len, oinfo, type, false); in xfs_free_extent()
189 xfs_agblock_t bno, /* starting block of extent */
196 xfs_agblock_t bno, /* starting block of extent */
203 xfs_agblock_t *bno, /* output: starting block of extent */
231 int xfs_alloc_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno,
234 typedef int (*xfs_agfl_walk_fn)(struct xfs_mount *mp, xfs_agblock_t bno,
Dxfs_rmap.h116 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 …]
Dxfs_attr_remote.c72 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 = bp->b_bn; 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 = bp->b_bn; in xfs_attr3_rmt_write_verify()
[all …]
Dxfs_alloc.c145 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 …]
Dxfs_bmap.h186 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,
246 xfs_fsblock_t bno, in xfs_bmap_add_free() argument
250 __xfs_bmap_add_free(tp, bno, len, oinfo, false); in xfs_bmap_add_free()
291 xfs_fileoff_t bno, xfs_filblks_t len, xfs_fsblock_t startblock,
Dxfs_refcount.h10 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);
Dxfs_types.c72 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()
Dxfs_da_btree.h192 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,
Dxfs_rmap_btree.c88 xfs_agblock_t bno; in xfs_rmapbt_alloc_block() local
92 &bno, 1); in xfs_rmapbt_alloc_block()
97 bno, 1); in xfs_rmapbt_alloc_block()
98 if (bno == NULLAGBLOCK) { in xfs_rmapbt_alloc_block()
103 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_ag.agno, bno, 1, in xfs_rmapbt_alloc_block()
107 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 …]
Dxfs_dir2.c562 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 …]
Dxfs_alloc_btree.c61 xfs_agblock_t bno; in xfs_allocbt_alloc_block() local
65 &bno, 1); in xfs_allocbt_alloc_block()
69 if (bno == NULLAGBLOCK) { in xfs_allocbt_alloc_block()
74 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_ag.agno, bno, 1, false); in xfs_allocbt_alloc_block()
77 new->s = cpu_to_be32(bno); in xfs_allocbt_alloc_block()
90 xfs_agblock_t bno; in xfs_allocbt_free_block() local
93 bno = xfs_daddr_to_agbno(cur->bc_mp, XFS_BUF_ADDR(bp)); in xfs_allocbt_free_block()
94 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_allocbt_free_block()
98 xfs_extent_busy_insert(cur->bc_tp, be32_to_cpu(agf->agf_seqno), bno, 1, in xfs_allocbt_free_block()
Dxfs_bmap.c231 xfs_fsblock_t bno) in xfs_bmap_get_bp() argument
242 if (XFS_BUF_ADDR(cur->bc_bufs[i]) == bno) in xfs_bmap_get_bp()
251 XFS_BUF_ADDR(bip->bli_buf) == bno) in xfs_bmap_get_bp()
323 xfs_fsblock_t bno; /* block # of "block" */ in xfs_bmap_check_leaf_extents() local
341 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 …]
Dxfs_refcount.c46 xfs_agblock_t bno, in xfs_refcount_lookup_le() argument
49 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_ag.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_ag.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_ag.agno, bno, in xfs_refcount_lookup_eq()
85 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_eq()
1146 xfs_agblock_t bno; in xfs_refcount_finish_one() local
[all …]
Dxfs_da_btree.c372 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 …]
/kernel/linux/linux-5.10/fs/iomap/
Dfiemap.c111 sector_t *bno = data, addr; in iomap_bmap_actor() local
115 *bno = addr; in iomap_bmap_actor()
122 iomap_bmap(struct address_space *mapping, sector_t bno, in iomap_bmap() argument
126 loff_t pos = bno << inode->i_blkbits; in iomap_bmap()
133 bno = 0; in iomap_bmap()
134 ret = iomap_apply(inode, pos, blocksize, 0, ops, &bno, in iomap_bmap()
138 return bno; in iomap_bmap()

123