Home
last modified time | relevance | path

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

123

/fs/xfs/
A Dxfs_extent_busy.c47 new->bno = bno; in xfs_extent_busy_insert_list()
61 if (new->bno < busyp->bno) { in xfs_extent_busy_insert_list()
63 ASSERT(new->bno + new->length <= busyp->bno); in xfs_extent_busy_insert_list()
64 } else if (new->bno > busyp->bno) { in xfs_extent_busy_insert_list()
66 ASSERT(bno >= busyp->bno + busyp->length); in xfs_extent_busy_insert_list()
127 if (bno < busyp->bno) { in xfs_extent_busy_search()
129 if (bno + len > busyp->bno) in xfs_extent_busy_search()
132 } else if (bno > busyp->bno) { in xfs_extent_busy_search()
134 if (bno < busyp->bno + busyp->length) in xfs_extent_busy_search()
372 fbno = *bno; in xfs_extent_busy_trim()
[all …]
A Dxfs_extent_busy.h23 xfs_agblock_t bno; member
47 xfs_agblock_t bno, xfs_extlen_t len, unsigned int flags);
48 void xfs_extent_busy_insert_discard(struct xfs_group *xg, xfs_agblock_t bno,
51 int xfs_extent_busy_search(struct xfs_group *xg, xfs_agblock_t bno,
56 xfs_extlen_t maxlen, xfs_agblock_t *bno, xfs_extlen_t *len,
A Dxfs_bmap_util.c199 xfs_fileoff_t bno, in xfs_getbmap_report_hole() argument
208 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, bno); in xfs_getbmap_report_hole()
209 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, end - bno); in xfs_getbmap_report_hole()
258 xfs_fileoff_t bno, first_bno; in xfs_getbmap() local
370 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, in xfs_getbmap()
382 if (got.br_startoff > bno) { in xfs_getbmap()
394 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap()
401 } while (xfs_getbmap_next_rec(&rec, bno)); in xfs_getbmap()
410 if (whichfork != XFS_ATTR_FORK && bno < end && in xfs_getbmap()
413 bno, end); in xfs_getbmap()
[all …]
A Dxfs_discard.c127 trace_xfs_discard_extent(xg, busyp->bno, busyp->length); in xfs_discard_extents()
130 xfs_gbno_to_daddr(xg, busyp->bno), in xfs_discard_extents()
136 (unsigned long long)busyp->bno, in xfs_discard_extents()
458 xfs_rtblock_t bno; member
494 start = busyp->bno; in xfs_discard_rtdev_extents()
497 trace_xfs_discard_rtextent(mp, busyp->bno, busyp->length); in xfs_discard_rtdev_extents()
500 xfs_rtb_to_daddr(mp, busyp->bno), in xfs_discard_rtdev_extents()
559 busyp->bno = rbno; in xfs_trim_gather_rtextent()
/fs/xfs/libxfs/
A Dxfs_rmap.c40 xfs_agblock_t bno, in xfs_rmap_lookup_le() argument
78 xfs_agblock_t bno, in xfs_rmap_lookup_eq() argument
433 xfs_agblock_t bno, in xfs_rmap_find_left_neighbor() argument
445 if (bno == 0) in xfs_rmap_find_left_neighbor()
532 xfs_agblock_t bno, in xfs_rmap_lookup_le_range() argument
677 xfs_agblock_t bno, in xfs_rmap_unmap() argument
727 bno < in xfs_rmap_unmap()
768 bno + len)) { in xfs_rmap_unmap()
1328 bno)) { in xfs_rmap_convert()
1812 bno)) { in xfs_rmap_convert_shared()
[all …]
A Dxfs_attr_remote.c86 xfs_daddr_t bno) in xfs_attr3_rmt_hdr_ok() argument
108 xfs_daddr_t bno) in xfs_attr3_rmt_verify() argument
138 xfs_daddr_t bno; in __xfs_attr3_rmt_read_verify() local
146 bno = xfs_buf_daddr(bp); in __xfs_attr3_rmt_read_verify()
161 bno += BTOBB(blksize); in __xfs_attr3_rmt_read_verify()
204 xfs_daddr_t bno; in xfs_attr3_rmt_write_verify() local
211 bno = xfs_buf_daddr(bp); in xfs_attr3_rmt_write_verify()
236 bno += BTOBB(blksize); in xfs_attr3_rmt_write_verify()
258 xfs_daddr_t bno) in xfs_attr3_rmt_hdr_set() argument
330 bno += BTOBB(blksize); in xfs_attr_rmtval_copyout()
[all …]
A Dxfs_btree_mem.c91 xfbno_t bno = xfbt->highest_bno++; in xfbtree_init_leaf_block() local
94 error = xfs_buf_get(xfbt->target, xfbno_to_daddr(bno), XFBNO_BBSIZE, in xfbtree_init_leaf_block()
105 xfbt->root.l = cpu_to_be64(bno); in xfbtree_init_leaf_block()
169 xfbno_t bno = xfbt->highest_bno++; in xfbtree_alloc_block() local
173 trace_xfbtree_alloc_block(xfbt, cur, bno); in xfbtree_alloc_block()
176 if (!xfbtree_verify_bno(xfbt, bno)) { in xfbtree_alloc_block()
177 ASSERT(xfbtree_verify_bno(xfbt, bno)); in xfbtree_alloc_block()
182 new->l = cpu_to_be64(bno); in xfbtree_alloc_block()
195 xfbno_t bno = xfs_daddr_to_xfbno(daddr); in xfbtree_free_block() local
199 trace_xfbtree_free_block(xfbt, cur, bno); in xfbtree_free_block()
[all …]
A Dxfs_alloc.c158 xfs_agblock_t bno, in xfs_alloc_lookup() argument
339 if (bno < args->min_agbno && bno + len > args->min_agbno) { in xfs_alloc_compute_aligned()
342 bno += diff; in xfs_alloc_compute_aligned()
355 *resbno = bno; in xfs_alloc_compute_aligned()
952 acur->bno = 0; in xfs_alloc_cur_setup()
1082 acur->bno = bnew; in xfs_alloc_cur_check()
1140 xfs_agblock_t bno; in xfs_alloc_cntbt_iter() local
2303 nbno = bno; in xfs_free_ag_extent()
2313 nbno = bno; in xfs_free_ag_extent()
3001 for (bno = targs.agbno; bno < targs.agbno + targs.len; bno++) { in xfs_alloc_fix_freelist()
[all …]
A Dxfs_alloc.h80 xfs_agblock_t bno, int btreeblk);
82 xfs_agblock_t bno, xfs_extlen_t len,
168 xfs_agblock_t bno, /* starting block of extent */
175 xfs_agblock_t bno, /* starting block of extent */
182 xfs_agblock_t *bno, /* output: starting block of extent */
216 int xfs_alloc_has_records(struct xfs_btree_cur *cur, xfs_agblock_t bno,
219 typedef int (*xfs_agfl_walk_fn)(struct xfs_mount *mp, xfs_agblock_t bno,
233 int xfs_free_extent_later(struct xfs_trans *tp, xfs_fsblock_t bno,
A Dxfs_rmap.h120 struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len,
123 struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len,
126 int xfs_rmap_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno,
129 int xfs_rmap_lookup_eq(struct xfs_btree_cur *cur, xfs_agblock_t bno,
197 enum xfs_rmap_intent_type op, xfs_agblock_t bno,
201 int xfs_rmap_lookup_le_range(struct xfs_btree_cur *cur, xfs_agblock_t bno,
214 int xfs_rmap_has_records(struct xfs_btree_cur *cur, xfs_agblock_t bno,
228 int xfs_rmap_count_owners(struct xfs_btree_cur *cur, xfs_agblock_t bno,
231 int xfs_rmap_has_other_keys(struct xfs_btree_cur *cur, xfs_agblock_t bno,
A Dxfs_refcount.c55 xfs_agblock_t bno, in xfs_refcount_lookup_le() argument
61 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_le()
75 xfs_agblock_t bno, in xfs_refcount_lookup_ge() argument
81 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_ge()
95 xfs_agblock_t bno, in xfs_refcount_lookup_eq() argument
101 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_eq()
1393 xfs_agblock_t bno; in xfs_refcount_finish_one() local
1506 xfs_rgblock_t bno; in xfs_rtrefcount_finish_one() local
2174 xfs_agblock_t bno, in xfs_refcount_has_records() argument
2182 low.rc.rc_startblock = bno; in xfs_refcount_has_records()
[all …]
A Dxfs_da_btree.h200 xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork);
212 int xfs_da_grow_inode_int(struct xfs_da_args *args, xfs_fileoff_t *bno,
215 xfs_dablk_t bno, struct xfs_buf **bp, int whichfork);
217 xfs_dablk_t bno, unsigned int flags, struct xfs_buf **bpp,
219 int xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno,
A Dxfs_bmap.c257 xfs_fsblock_t bno) in xfs_bmap_get_bp() argument
367 bno = NULLFSBLOCK; in xfs_bmap_check_leaf_extents()
468 bno = nextbno; in xfs_bmap_check_leaf_extents()
531 bno); in xfs_bmap_validate_ret()
3741 if (obno > *bno) in xfs_bmapi_trim_map()
3742 *bno = obno; in xfs_bmapi_trim_map()
3868 end = bno + len; in xfs_bmapi_read()
3869 obno = bno; in xfs_bmapi_read()
4175 orig_bno = bno; in xfs_bmapi_write()
4224 end = bno + len; in xfs_bmapi_write()
[all …]
A Dxfs_refcount.h18 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat);
20 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat);
22 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat);
119 enum xfs_refc_domain domain, xfs_agblock_t bno,
A Dxfs_alloc_btree.c75 xfs_agblock_t bno; in xfs_allocbt_alloc_block() local
79 cur->bc_ag.agbp, &bno, 1); in xfs_allocbt_alloc_block()
83 if (bno == NULLAGBLOCK) { in xfs_allocbt_alloc_block()
89 xfs_extent_busy_reuse(cur->bc_group, bno, 1, false); in xfs_allocbt_alloc_block()
91 new->s = cpu_to_be32(bno); in xfs_allocbt_alloc_block()
103 xfs_agblock_t bno; in xfs_allocbt_free_block() local
106 bno = xfs_daddr_to_agbno(cur->bc_mp, xfs_buf_daddr(bp)); in xfs_allocbt_free_block()
108 agbp, NULL, bno, 1); in xfs_allocbt_free_block()
113 xfs_extent_busy_insert(cur->bc_tp, pag_group(agbp->b_pag), bno, 1, in xfs_allocbt_free_block()
A Dxfs_bmap.h180 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno,
200 int xfs_bmapi_read(struct xfs_inode *ip, xfs_fileoff_t bno,
204 xfs_fileoff_t bno, xfs_filblks_t len, uint32_t flags,
207 xfs_fileoff_t bno, xfs_filblks_t len, uint32_t flags,
282 xfs_fileoff_t bno, xfs_filblks_t len, xfs_fsblock_t startblock,
A Dxfs_rmap_btree.c94 xfs_agblock_t bno; in xfs_rmapbt_alloc_block() local
98 &bno, 1); in xfs_rmapbt_alloc_block()
101 if (bno == NULLAGBLOCK) { in xfs_rmapbt_alloc_block()
106 xfs_extent_busy_reuse(pag_group(pag), bno, 1, false); in xfs_rmapbt_alloc_block()
108 new->s = cpu_to_be32(bno); in xfs_rmapbt_alloc_block()
130 xfs_agblock_t bno; in xfs_rmapbt_free_block() local
133 bno = xfs_daddr_to_agbno(cur->bc_mp, xfs_buf_daddr(bp)); in xfs_rmapbt_free_block()
136 error = xfs_alloc_put_freelist(pag, cur->bc_tp, agbp, NULL, bno, 1); in xfs_rmapbt_free_block()
140 xfs_extent_busy_insert(cur->bc_tp, pag_group(pag), bno, 1, in xfs_rmapbt_free_block()
A Dxfs_da_btree.c434 xfs_dablk_t bno, in xfs_da3_node_read() argument
2294 xfs_fileoff_t *bno, in xfs_da_grow_inode_int() argument
2328 for (b = *bno, mapi = 0; b < *bno + count; ) { in xfs_da_grow_inode_int()
2351 *bno + count) { in xfs_da_grow_inode_int()
2374 xfs_fileoff_t bno; in xfs_da_grow_inode() local
2379 bno = args->geo->leafblk; in xfs_da_grow_inode()
2691 xfs_dablk_t bno, in xfs_dabuf_map() argument
2740 if (off != bno + nfsb) in xfs_dabuf_map()
2780 xfs_dablk_t bno, in xfs_da_get_buf() argument
2815 xfs_dablk_t bno, in xfs_da_read_buf() argument
[all …]
/fs/xfs/scrub/
A Drtrefcount.c107 xfs_rgblock_t bno; member
184 xfs_rgblock_t bno; in xchk_rtrefcountbt_process_rmap_fragments() local
206 bno = 0; in xchk_rtrefcountbt_process_rmap_fragments()
222 if (bno < rbno) in xchk_rtrefcountbt_process_rmap_fragments()
223 rbno = bno; in xchk_rtrefcountbt_process_rmap_fragments()
241 if (bno != rbno) { in xchk_rtrefcountbt_process_rmap_fragments()
243 next_rbno = bno; in xchk_rtrefcountbt_process_rmap_fragments()
258 next_rbno = bno; in xchk_rtrefcountbt_process_rmap_fragments()
432 xfs_rtblock_t bno) in xchk_rtrefcountbt_xref_gaps() argument
625 xfs_rgblock_t bno, in xchk_xref_is_not_rt_shared() argument
[all …]
A Drefcount.c93 xfs_agblock_t bno; member
170 xfs_agblock_t bno; in xchk_refcountbt_process_rmap_fragments() local
192 bno = 0; in xchk_refcountbt_process_rmap_fragments()
208 if (bno < rbno) in xchk_refcountbt_process_rmap_fragments()
209 rbno = bno; in xchk_refcountbt_process_rmap_fragments()
227 if (bno != rbno) { in xchk_refcountbt_process_rmap_fragments()
228 if (bno < next_rbno) in xchk_refcountbt_process_rmap_fragments()
229 next_rbno = bno; in xchk_refcountbt_process_rmap_fragments()
243 if (next_rbno > bno) in xchk_refcountbt_process_rmap_fragments()
244 next_rbno = bno; in xchk_refcountbt_process_rmap_fragments()
[all …]
A Dreap.c288 while (bno < agbno_next) { in xreap_agextent_binval()
292 agbno_next - bno), in xreap_agextent_binval()
313 bno++; in xreap_agextent_binval()
359 while (bno < agbno_next) { in xreap_agextent_select()
371 bno++; in xreap_agextent_select()
733 bno++; in xreap_rgextent_select()
967 xfs_agblock_t bno; in xreap_bmapi_select() local
983 bno = agbno + 1; in xreap_bmapi_select()
997 bno++; in xreap_bmapi_select()
1052 xfs_agblock_t bno; in xreap_bmapi_binval() local
[all …]
A Dscrub.h319 void xchk_xref_is_cow_staging(struct xfs_scrub *sc, xfs_agblock_t bno,
321 void xchk_xref_is_not_shared(struct xfs_scrub *sc, xfs_agblock_t bno,
323 void xchk_xref_is_not_cow_staging(struct xfs_scrub *sc, xfs_agblock_t bno,
344 # define xchk_xref_is_only_rt_owned_by(sc, bno, len, oinfo) do { } while (0) argument
345 # define xchk_xref_is_rt_cow_staging(sc, bno, len) do { } while (0) argument
346 # define xchk_xref_is_not_rt_shared(sc, bno, len) do { } while (0) argument
347 # define xchk_xref_is_not_rt_cow_staging(sc, bno, len) do { } while (0) argument
A Drtrmap.c264 xfs_rgblock_t bno, in xchk_xref_has_no_rt_owner() argument
273 error = xfs_rmap_has_records(sc->sr.rmap_cur, bno, len, &outcome); in xchk_xref_has_no_rt_owner()
284 xfs_rgblock_t bno, in xchk_xref_has_rt_owner() argument
293 error = xfs_rmap_has_records(sc->sr.rmap_cur, bno, len, &outcome); in xchk_xref_has_rt_owner()
304 xfs_agblock_t bno, in xchk_xref_is_only_rt_owned_by() argument
314 error = xfs_rmap_count_owners(sc->sr.rmap_cur, bno, len, oinfo, &res); in xchk_xref_is_only_rt_owned_by()
A Dbmap.c148 xfs_agblock_t bno, in xchk_bmap_get_rmap() argument
184 error = xfs_rmap_lookup_le_range(*curp, bno, owner, offset, in xchk_bmap_get_rmap()
187 error = xfs_rmap_lookup_le(*curp, bno, owner, offset, in xchk_bmap_get_rmap()
204 xfs_agblock_t bno) in xchk_bmap_xref_rmap() argument
214 if (!xchk_bmap_get_rmap(info, irec, bno, owner, &rmap)) in xchk_bmap_xref_rmap()
221 if (rmap.rm_startblock != bno) in xchk_bmap_xref_rmap()
226 if (rmap_end != bno + irec->br_blockcount) in xchk_bmap_xref_rmap()
271 xfs_agblock_t bno) in xchk_bmap_xref_rmap_cow() argument
281 if (!xchk_bmap_get_rmap(info, irec, bno, owner, &rmap)) in xchk_bmap_xref_rmap_cow()
289 if (rmap.rm_startblock > bno) in xchk_bmap_xref_rmap_cow()
[all …]
/fs/iomap/
A Dfiemap.c94 iomap_bmap(struct address_space *mapping, sector_t bno, in iomap_bmap() argument
99 .pos = (loff_t)bno << mapping->host->i_blkbits, in iomap_bmap()
109 bno = 0; in iomap_bmap()
112 bno = iomap_sector(&iter.iomap, iter.pos) >> blkshift; in iomap_bmap()
118 return bno; in iomap_bmap()

Completed in 70 milliseconds

123