Home
last modified time | relevance | path

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

123

/Linux-v4.19/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.c339 xfs_rtblock_t bno, /* starting block number to allocate */ in xfs_rtallocate_extent_exact() argument
357 error = xfs_rtcheck_range(mp, tp, bno, maxlen, 1, &next, &isfree); in xfs_rtallocate_extent_exact()
365 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); in xfs_rtallocate_extent_exact()
370 *rtblock = bno; in xfs_rtallocate_extent_exact()
376 maxlen = next - bno; in xfs_rtallocate_extent_exact()
400 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); in xfs_rtallocate_extent_exact()
405 *rtblock = bno; in xfs_rtallocate_extent_exact()
418 xfs_rtblock_t bno, /* starting block number to allocate */ in xfs_rtallocate_extent_near() argument
441 if (bno >= mp->m_sb.sb_rextents) in xfs_rtallocate_extent_near()
442 bno = mp->m_sb.sb_rextents - 1; in xfs_rtallocate_extent_near()
[all …]
Dxfs_bmap_util.c274 xfs_fsblock_t bno = blockno; in xfs_bmap_count_tree() local
279 error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, XFS_BMAP_BTREE_REF, in xfs_bmap_count_tree()
303 bno = be64_to_cpu(*pp); in xfs_bmap_count_tree()
304 error = xfs_bmap_count_tree(mp, tp, ifp, bno, level, nextents, in xfs_bmap_count_tree()
323 bno = nextbno; in xfs_bmap_count_tree()
324 error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, in xfs_bmap_count_tree()
352 xfs_fsblock_t bno; /* block # of "block" */ in xfs_bmap_count_blocks() local
356 bno = NULLFSBLOCK; in xfs_bmap_count_blocks()
382 bno = be64_to_cpu(*pp); in xfs_bmap_count_blocks()
383 ASSERT(bno != NULLFSBLOCK); in xfs_bmap_count_blocks()
[all …]
/Linux-v4.19/fs/xfs/scrub/
Drefcount.c86 xfs_agblock_t bno; member
117 rc_last = refchk->bno + refchk->len - 1; in xchk_refcountbt_rmap_check()
125 if (rec->rm_startblock <= refchk->bno && rm_last >= rc_last) { in xchk_refcountbt_rmap_check()
163 xfs_agblock_t bno; in xchk_refcountbt_process_rmap_fragments() local
186 bno = 0; in xchk_refcountbt_process_rmap_fragments()
188 if (frag->rm.rm_startblock < bno) in xchk_refcountbt_process_rmap_fragments()
190 bno = frag->rm.rm_startblock; in xchk_refcountbt_process_rmap_fragments()
198 if (frag->rm.rm_startblock > refchk->bno) in xchk_refcountbt_process_rmap_fragments()
200 bno = frag->rm.rm_startblock + frag->rm.rm_blockcount; in xchk_refcountbt_process_rmap_fragments()
201 if (bno < rbno) in xchk_refcountbt_process_rmap_fragments()
[all …]
Dalloc.c105 xfs_agblock_t bno; in xchk_allocbt_rec() local
109 bno = be32_to_cpu(rec->alloc.ar_startblock); in xchk_allocbt_rec()
112 if (bno + len <= bno || in xchk_allocbt_rec()
113 !xfs_verify_agbno(mp, agno, bno) || in xchk_allocbt_rec()
114 !xfs_verify_agbno(mp, agno, bno + len - 1)) in xchk_allocbt_rec()
117 xchk_allocbt_xref(bs->sc, bno, len); in xchk_allocbt_rec()
Drmap.c188 xfs_agblock_t bno, in xchk_xref_check_owner() argument
199 error = xfs_rmap_record_exists(sc->sa.rmap_cur, bno, len, oinfo, in xchk_xref_check_owner()
211 xfs_agblock_t bno, in xchk_xref_is_owned_by() argument
215 xchk_xref_check_owner(sc, bno, len, oinfo, true); in xchk_xref_is_owned_by()
222 xfs_agblock_t bno, in xchk_xref_is_not_owned_by() argument
226 xchk_xref_check_owner(sc, bno, len, oinfo, false); in xchk_xref_is_not_owned_by()
233 xfs_agblock_t bno, in xchk_xref_has_no_owner() argument
242 error = xfs_rmap_has_record(sc->sa.rmap_cur, bno, len, &has_rmap); in xchk_xref_has_no_owner()
Dtrace.h63 xfs_agblock_t bno, int error, void *ret_ip),
64 TP_ARGS(sc, agno, bno, error, ret_ip),
69 __field(xfs_agblock_t, bno)
77 __entry->bno = bno;
85 __entry->bno,
129 __field(xfs_agblock_t, bno)
135 xfs_agblock_t bno;
139 bno = XFS_FSB_TO_AGBNO(sc->mp, fsbno);
144 __entry->bno = bno;
151 __entry->bno,
[all …]
Dialloc.c107 xfs_agblock_t bno; in xchk_iallocbt_chunk() local
109 bno = XFS_AGINO_TO_AGBNO(mp, agino); in xchk_iallocbt_chunk()
110 if (bno + len <= bno || in xchk_iallocbt_chunk()
111 !xfs_verify_agbno(mp, agno, bno) || in xchk_iallocbt_chunk()
112 !xfs_verify_agbno(mp, agno, bno + len - 1)) in xchk_iallocbt_chunk()
115 xchk_iallocbt_chunk_xref(bs->sc, irec, agino, bno, len); in xchk_iallocbt_chunk()
/Linux-v4.19/fs/xfs/libxfs/
Dxfs_rmap.c39 xfs_agblock_t bno, in xfs_rmap_lookup_le() argument
46 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_le()
61 xfs_agblock_t bno, in xfs_rmap_lookup_eq() argument
68 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_eq()
283 xfs_agblock_t bno, in xfs_rmap_find_left_neighbor() argument
294 if (bno == 0) in xfs_rmap_find_left_neighbor()
296 info.high.rm_startblock = bno - 1; in xfs_rmap_find_left_neighbor()
311 cur->bc_private.a.agno, bno, 0, owner, offset, flags); in xfs_rmap_find_left_neighbor()
361 xfs_agblock_t bno, in xfs_rmap_lookup_le_range() argument
371 info.high.rm_startblock = bno; in xfs_rmap_lookup_le_range()
[all …]
Dxfs_attr_remote.c62 xfs_daddr_t bno) in xfs_attr3_rmt_hdr_ok() argument
66 if (bno != be64_to_cpu(rmt->rm_blkno)) in xfs_attr3_rmt_hdr_ok()
84 xfs_daddr_t bno) in xfs_attr3_rmt_verify() argument
94 if (be64_to_cpu(rmt->rm_blkno) != bno) in xfs_attr3_rmt_verify()
116 xfs_daddr_t bno; in __xfs_attr3_rmt_read_verify() local
124 bno = bp->b_bn; in __xfs_attr3_rmt_read_verify()
134 *failaddr = xfs_attr3_rmt_verify(mp, ptr, blksize, bno); in __xfs_attr3_rmt_read_verify()
139 bno += BTOBB(blksize); in __xfs_attr3_rmt_read_verify()
182 xfs_daddr_t bno; in xfs_attr3_rmt_write_verify() local
189 bno = bp->b_bn; in xfs_attr3_rmt_write_verify()
[all …]
Dxfs_alloc.h156 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,
Dxfs_rmap.h139 xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len,
142 xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len,
145 int xfs_rmap_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno,
148 int xfs_rmap_lookup_eq(struct xfs_btree_cur *cur, xfs_agblock_t bno,
196 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner);
198 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner);
207 int xfs_rmap_find_left_neighbor(struct xfs_btree_cur *cur, xfs_agblock_t bno,
210 int xfs_rmap_lookup_le_range(struct xfs_btree_cur *cur, xfs_agblock_t bno,
218 int xfs_rmap_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno,
220 int xfs_rmap_record_exists(struct xfs_btree_cur *cur, xfs_agblock_t bno,
[all …]
Dxfs_bmap.h182 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno,
187 void __xfs_bmap_add_free(struct xfs_trans *tp, xfs_fsblock_t bno,
198 int xfs_bmapi_read(struct xfs_inode *ip, xfs_fileoff_t bno,
202 xfs_fileoff_t bno, xfs_filblks_t len, int flags,
205 xfs_fileoff_t bno, xfs_filblks_t *rlen, int flags,
208 xfs_fileoff_t bno, xfs_filblks_t len, int flags,
234 xfs_fsblock_t bno, in xfs_bmap_add_free() argument
238 __xfs_bmap_add_free(tp, bno, len, oinfo, false); in xfs_bmap_add_free()
279 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.c81 xfs_agblock_t bno; in xfs_agino_range() local
90 bno = round_up(XFS_AGFL_BLOCK(mp) + 1, in xfs_agino_range()
92 *first = XFS_OFFBNO_TO_AGINO(mp, bno, 0); in xfs_agino_range()
98 bno = round_down(eoag, xfs_ialloc_cluster_alignment(mp)); in xfs_agino_range()
99 *last = XFS_OFFBNO_TO_AGINO(mp, bno, 0) - 1; in xfs_agino_range()
Dxfs_alloc.c149 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_eq() argument
153 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
169 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_ge()
181 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_le() argument
185 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_le()
198 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_update() argument
203 rec.alloc.ar_startblock = cpu_to_be32(bno); in xfs_alloc_update()
214 xfs_agblock_t *bno, /* output: starting block of extent */ in xfs_alloc_get_rec() argument
227 *bno = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_get_rec()
[all …]
Dxfs_da_btree.h173 xfs_dablk_t bno, xfs_daddr_t mappedbno,
180 int xfs_da_grow_inode_int(struct xfs_da_args *args, xfs_fileoff_t *bno,
183 xfs_dablk_t bno, xfs_daddr_t mappedbno,
186 xfs_dablk_t bno, xfs_daddr_t mappedbno,
189 int xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno,
Dxfs_rmap_btree.c93 xfs_agblock_t bno; in xfs_rmapbt_alloc_block() local
97 &bno, 1); in xfs_rmapbt_alloc_block()
102 bno, 1); in xfs_rmapbt_alloc_block()
103 if (bno == NULLAGBLOCK) { in xfs_rmapbt_alloc_block()
108 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_private.a.agno, bno, 1, in xfs_rmapbt_alloc_block()
112 new->s = cpu_to_be32(bno); in xfs_rmapbt_alloc_block()
129 xfs_agblock_t bno; in xfs_rmapbt_free_block() local
132 bno = xfs_daddr_to_agbno(cur->bc_mp, XFS_BUF_ADDR(bp)); in xfs_rmapbt_free_block()
134 bno, 1); in xfs_rmapbt_free_block()
137 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_rmapbt_free_block()
[all …]
Dxfs_dir2.c560 xfs_fileoff_t bno; /* directory offset of new block */ in xfs_dir2_grow_inode() local
569 bno = XFS_B_TO_FSBT(mp, space * XFS_DIR2_SPACE_SIZE); in xfs_dir2_grow_inode()
572 error = xfs_da_grow_inode_int(args, &bno, count); in xfs_dir2_grow_inode()
576 *dbp = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)bno); in xfs_dir2_grow_inode()
584 size = XFS_FSB_TO_B(mp, bno + count); in xfs_dir2_grow_inode()
641 xfs_fileoff_t bno; /* directory file offset */ in xfs_dir2_shrink_inode() local
688 bno = da; in xfs_dir2_shrink_inode()
689 if ((error = xfs_bmap_last_before(tp, dp, &bno, XFS_DATA_FORK))) { in xfs_dir2_shrink_inode()
696 ASSERT(bno == 0); in xfs_dir2_shrink_inode()
698 ASSERT(bno > 0); in xfs_dir2_shrink_inode()
[all …]
Dxfs_bmap.c235 xfs_fsblock_t bno) in xfs_bmap_get_bp() argument
246 if (XFS_BUF_ADDR(cur->bc_bufs[i]) == bno) in xfs_bmap_get_bp()
255 XFS_BUF_ADDR(bip->bli_buf) == bno) in xfs_bmap_get_bp()
325 xfs_fsblock_t bno; /* block # of "block" */ in xfs_bmap_check_leaf_extents() local
346 bno = NULLFSBLOCK; in xfs_bmap_check_leaf_extents()
357 bno = be64_to_cpu(*pp); in xfs_bmap_check_leaf_extents()
359 ASSERT(bno != NULLFSBLOCK); in xfs_bmap_check_leaf_extents()
360 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount); in xfs_bmap_check_leaf_extents()
361 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); in xfs_bmap_check_leaf_extents()
370 bp = xfs_bmap_get_bp(cur, XFS_FSB_TO_DADDR(mp, bno)); in xfs_bmap_check_leaf_extents()
[all …]
Dxfs_alloc_btree.c63 xfs_agblock_t bno; in xfs_allocbt_alloc_block() local
67 &bno, 1); in xfs_allocbt_alloc_block()
71 if (bno == NULLAGBLOCK) { in xfs_allocbt_alloc_block()
76 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_private.a.agno, bno, 1, false); in xfs_allocbt_alloc_block()
79 new->s = cpu_to_be32(bno); in xfs_allocbt_alloc_block()
92 xfs_agblock_t bno; in xfs_allocbt_free_block() local
95 bno = xfs_daddr_to_agbno(cur->bc_mp, XFS_BUF_ADDR(bp)); in xfs_allocbt_free_block()
96 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_allocbt_free_block()
100 xfs_extent_busy_insert(cur->bc_tp, be32_to_cpu(agf->agf_seqno), bno, 1, in xfs_allocbt_free_block()
Dxfs_refcount.c48 xfs_agblock_t bno, in xfs_refcount_lookup_le() argument
51 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_le()
53 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_le()
65 xfs_agblock_t bno, in xfs_refcount_lookup_ge() argument
68 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_ge()
70 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_ge()
82 xfs_agblock_t bno, in xfs_refcount_lookup_eq() argument
85 trace_xfs_refcount_lookup(cur->bc_mp, cur->bc_private.a.agno, bno, in xfs_refcount_lookup_eq()
87 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_eq()
1093 xfs_agblock_t bno; in xfs_refcount_finish_one() local
[all …]
Dxfs_da_btree.c269 xfs_dablk_t bno, in xfs_da3_node_read() argument
276 err = xfs_da_read_buf(tp, dp, bno, mappedbno, bpp, in xfs_da3_node_read()
2044 xfs_fileoff_t *bno, in xfs_da_grow_inode_int() argument
2057 error = xfs_bmap_first_unused(tp, dp, count, bno, w); in xfs_da_grow_inode_int()
2065 error = xfs_bmapi_write(tp, dp, *bno, count, in xfs_da_grow_inode_int()
2084 for (b = *bno, mapi = 0; b < *bno + count; ) { in xfs_da_grow_inode_int()
2086 c = (int)(*bno + count - b); in xfs_da_grow_inode_int()
2108 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int()
2110 *bno + count) { in xfs_da_grow_inode_int()
2133 xfs_fileoff_t bno; in xfs_da_grow_inode() local
[all …]
Dxfs_dir2_priv.h38 xfs_dablk_t bno, xfs_daddr_t mapped_bno, struct xfs_buf **bpp);
39 extern int xfs_dir3_data_readahead(struct xfs_inode *dp, xfs_dablk_t bno,
62 extern int xfs_dir3_leaf_get_buf(struct xfs_da_args *args, xfs_dir2_db_t bno,

123