Home
last modified time | relevance | path

Searched refs:fbno (Results 1 - 25 of 27) sorted by relevance

12

/kernel/linux/linux-5.10/fs/xfs/
H A Dxfs_extent_busy.c123 * The found free extent [fbno, fend] overlaps part or all of the given busy
138 xfs_agblock_t fbno,
143 xfs_agblock_t fend = fbno + flen;
170 if (bbno < fbno && bend > fend) {
176 * fbno fend
189 } else if (bbno >= fbno && bend <= fend) {
195 * fbno fend
201 * fbno fend
207 * fbno fend
213 * fbno fen
282 xfs_extent_busy_reuse( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agblock_t fbno, xfs_extlen_t flen, bool userdata) xfs_extent_busy_reuse() argument
339 xfs_agblock_t fbno; xfs_extent_busy_trim() local
[all...]
H A Dxfs_discard.c67 xfs_agblock_t fbno; in xfs_trim_extents() local
72 error = xfs_alloc_get_rec(cur, &fbno, &flen, &i); in xfs_trim_extents()
86 dbno = XFS_AGB_TO_DADDR(mp, agno, fbno); in xfs_trim_extents()
93 trace_xfs_discard_toosmall(mp, agno, fbno, flen); in xfs_trim_extents()
103 trace_xfs_discard_exclude(mp, agno, fbno, flen); in xfs_trim_extents()
111 if (xfs_extent_busy_search(mp, agno, fbno, flen)) { in xfs_trim_extents()
112 trace_xfs_discard_busy(mp, agno, fbno, flen); in xfs_trim_extents()
116 trace_xfs_discard_extent(mp, agno, fbno, flen); in xfs_trim_extents()
H A Dxfs_reflink.c123 * within that range and return the range in fbno/flen. If
125 * shared blocks. If there are no shared extents, fbno and flen will
135 xfs_agblock_t *fbno, in xfs_reflink_find_shared()
149 error = xfs_refcount_find_shared(cur, agbno, aglen, fbno, flen, in xfs_reflink_find_shared()
177 xfs_agblock_t fbno; in xfs_reflink_trim_around_shared() local
194 aglen, &fbno, &flen, true); in xfs_reflink_trim_around_shared()
199 if (fbno == NULLAGBLOCK) { in xfs_reflink_trim_around_shared()
202 } else if (fbno == agbno) { in xfs_reflink_trim_around_shared()
219 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared()
129 xfs_reflink_find_shared( struct xfs_mount *mp, struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno, xfs_extlen_t *flen, bool find_end_of_shared) xfs_reflink_find_shared() argument
H A Dxfs_extent_busy.h47 xfs_agblock_t fbno, xfs_extlen_t flen, bool userdata);
H A Dxfs_reflink.h22 xfs_agblock_t *fbno, xfs_extlen_t *flen, bool find_maximal);
H A Dxfs_fsmap.c199 xfs_agblock_t fbno; in xfs_getfsmap_is_shared() local
216 rec->rm_blockcount, &fbno, &flen, false); in xfs_getfsmap_is_shared()
/kernel/linux/linux-6.6/fs/xfs/
H A Dxfs_extent_busy.c138 * The found free extent [fbno, fend] overlaps part or all of the given busy
153 xfs_agblock_t fbno,
158 xfs_agblock_t fend = fbno + flen;
185 if (bbno < fbno && bend > fend) {
191 * fbno fend
204 } else if (bbno >= fbno && bend <= fend) {
210 * fbno fend
216 * fbno fend
222 * fbno fend
228 * fbno fen
298 xfs_extent_busy_reuse( struct xfs_mount *mp, struct xfs_perag *pag, xfs_agblock_t fbno, xfs_extlen_t flen, bool userdata) xfs_extent_busy_reuse() argument
351 xfs_agblock_t fbno; xfs_extent_busy_trim() local
[all...]
H A Dxfs_discard.c198 xfs_agblock_t fbno; in xfs_trim_gather_extents() local
203 error = xfs_alloc_get_rec(cur, &fbno, &flen, &i); in xfs_trim_gather_extents()
216 tcur->ar_startblock = fbno; in xfs_trim_gather_extents()
226 dbno = XFS_AGB_TO_DADDR(mp, pag->pag_agno, fbno); in xfs_trim_gather_extents()
233 trace_xfs_discard_toosmall(mp, pag->pag_agno, fbno, flen); in xfs_trim_gather_extents()
244 trace_xfs_discard_exclude(mp, pag->pag_agno, fbno, flen); in xfs_trim_gather_extents()
252 if (xfs_extent_busy_search(mp, pag, fbno, flen)) { in xfs_trim_gather_extents()
253 trace_xfs_discard_busy(mp, pag->pag_agno, fbno, flen); in xfs_trim_gather_extents()
257 xfs_extent_busy_insert_discard(pag, fbno, flen, in xfs_trim_gather_extents()
H A Dxfs_extent_busy.h66 xfs_agblock_t fbno, xfs_extlen_t flen, bool userdata);
H A Dxfs_reflink.c123 * within that range and return the range in fbno/flen. If
125 * shared blocks. If there are no shared extents, fbno and flen will
134 xfs_agblock_t *fbno, in xfs_reflink_find_shared()
148 error = xfs_refcount_find_shared(cur, agbno, aglen, fbno, flen, in xfs_reflink_find_shared()
177 xfs_agblock_t fbno; in xfs_reflink_trim_around_shared() local
193 error = xfs_reflink_find_shared(pag, NULL, agbno, aglen, &fbno, &flen, in xfs_reflink_trim_around_shared()
200 if (fbno == NULLAGBLOCK) { in xfs_reflink_trim_around_shared()
205 if (fbno == agbno) { in xfs_reflink_trim_around_shared()
223 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared()
129 xfs_reflink_find_shared( struct xfs_perag *pag, struct xfs_trans *tp, xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno, xfs_extlen_t *flen, bool find_end_of_shared) xfs_reflink_find_shared() argument
H A Dxfs_fsmap.c209 xfs_agblock_t fbno; in xfs_getfsmap_is_shared() local
225 rec->rm_blockcount, &fbno, &flen, false); in xfs_getfsmap_is_shared()
/kernel/linux/linux-5.10/fs/xfs/libxfs/
H A Dxfs_alloc.c423 * actual (current) free extent fbno for flen blocks.
431 xfs_agblock_t fbno, /* starting block of free extent */ in xfs_alloc_fixup_trees()
456 nfbno1 != fbno || in xfs_alloc_fixup_trees()
461 if ((error = xfs_alloc_lookup_eq(cnt_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
475 nfbno1 != fbno || in xfs_alloc_fixup_trees()
480 if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
506 if (rbno == fbno && rlen == flen) in xfs_alloc_fixup_trees()
508 else if (rbno == fbno) { in xfs_alloc_fixup_trees()
512 } else if (rbno + rlen == fbno + flen) { in xfs_alloc_fixup_trees()
513 nfbno1 = fbno; in xfs_alloc_fixup_trees()
428 xfs_alloc_fixup_trees( xfs_btree_cur_t *cnt_cur, xfs_btree_cur_t *bno_cur, xfs_agblock_t fbno, xfs_extlen_t flen, xfs_agblock_t rbno, xfs_extlen_t rlen, int flags) xfs_alloc_fixup_trees() argument
1031 xfs_agblock_t fbno = NULLAGBLOCK; xfs_alloc_ag_vextent_small() local
1207 xfs_agblock_t fbno; /* start block of found extent */ xfs_alloc_ag_vextent_exact() local
1665 xfs_agblock_t fbno; /* start of found freespace */ xfs_alloc_ag_vextent_size() local
[all...]
H A Dxfs_dir2_node.c178 xfs_dablk_t fbno, in xfs_dir3_free_header_check()
185 firstdb = (xfs_dir2_da_to_db(mp->m_dir_geo, fbno) - in xfs_dir3_free_header_check()
216 xfs_dablk_t fbno, in __xfs_dir3_free_read()
223 err = xfs_da_read_buf(tp, dp, fbno, flags, bpp, XFS_DATA_FORK, in __xfs_dir3_free_read()
229 fa = xfs_dir3_free_header_check(dp, fbno, *bpp); in __xfs_dir3_free_read()
300 xfs_dablk_t fbno, in xfs_dir2_free_read()
303 return __xfs_dir3_free_read(tp, dp, fbno, 0, bpp); in xfs_dir2_free_read()
310 xfs_dablk_t fbno, in xfs_dir2_free_try_read()
313 return __xfs_dir3_free_read(tp, dp, fbno, XFS_DABUF_MAP_HOLE_OK, bpp); in xfs_dir2_free_try_read()
319 xfs_dir2_db_t fbno, in xfs_dir3_free_get_buf()
176 xfs_dir3_free_header_check( struct xfs_inode *dp, xfs_dablk_t fbno, struct xfs_buf *bp) xfs_dir3_free_header_check() argument
213 __xfs_dir3_free_read( struct xfs_trans *tp, struct xfs_inode *dp, xfs_dablk_t fbno, unsigned int flags, struct xfs_buf **bpp) __xfs_dir3_free_read() argument
297 xfs_dir2_free_read( struct xfs_trans *tp, struct xfs_inode *dp, xfs_dablk_t fbno, struct xfs_buf **bpp) xfs_dir2_free_read() argument
307 xfs_dir2_free_try_read( struct xfs_trans *tp, struct xfs_inode *dp, xfs_dablk_t fbno, struct xfs_buf **bpp) xfs_dir2_free_try_read() argument
317 xfs_dir3_free_get_buf( xfs_da_args_t *args, xfs_dir2_db_t fbno, struct xfs_buf **bpp) xfs_dir3_free_get_buf() argument
1690 xfs_dir2_db_t fbno; xfs_dir2_node_add_datablk() local
1805 xfs_dir2_db_t fbno; xfs_dir2_node_find_freeblk() local
[all...]
H A Dxfs_dir2_priv.h98 xfs_dablk_t fbno, struct xfs_buf **bpp);
100 xfs_dablk_t fbno, struct xfs_buf **bpp);
157 xfs_dablk_t fbno, struct xfs_buf **bpp);
H A Dxfs_refcount.c1286 * within that range and return the range in fbno/flen. If
1289 * shared blocks are found, fbno and flen will be set to NULLAGBLOCK
1297 xfs_agblock_t *fbno, in xfs_refcount_find_shared()
1310 *fbno = NULLAGBLOCK; in xfs_refcount_find_shared()
1359 *fbno = tmp.rc_startblock; in xfs_refcount_find_shared()
1360 *flen = min(tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1365 while (*fbno + *flen < agbno + aglen) { in xfs_refcount_find_shared()
1379 tmp.rc_startblock != *fbno + *flen) in xfs_refcount_find_shared()
1381 *flen = min(*flen + tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1386 cur->bc_ag.agno, *fbno, *fle in xfs_refcount_find_shared()
1293 xfs_refcount_find_shared( struct xfs_btree_cur *cur, xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno, xfs_extlen_t *flen, bool find_end_of_shared) xfs_refcount_find_shared() argument
[all...]
H A Dxfs_refcount.h45 xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno,
/kernel/linux/linux-5.10/fs/xfs/scrub/
H A Dalloc.c42 xfs_agblock_t fbno; in xchk_allocbt_xref_other() local
62 error = xfs_alloc_get_rec(*pcur, &fbno, &flen, &has_otherrec); in xchk_allocbt_xref_other()
70 if (fbno != agbno || flen != len) in xchk_allocbt_xref_other()
H A Drmap.c38 xfs_agblock_t fbno; in xchk_rmapbt_xref_refc() local
56 irec->rm_blockcount, &fbno, &flen, false); in xchk_rmapbt_xref_refc()
/kernel/linux/linux-6.6/fs/xfs/libxfs/
H A Dxfs_dir2_node.c178 xfs_dablk_t fbno, in xfs_dir3_free_header_check()
185 firstdb = (xfs_dir2_da_to_db(mp->m_dir_geo, fbno) - in xfs_dir3_free_header_check()
216 xfs_dablk_t fbno, in __xfs_dir3_free_read()
223 err = xfs_da_read_buf(tp, dp, fbno, flags, bpp, XFS_DATA_FORK, in __xfs_dir3_free_read()
229 fa = xfs_dir3_free_header_check(dp, fbno, *bpp); in __xfs_dir3_free_read()
300 xfs_dablk_t fbno, in xfs_dir2_free_read()
303 return __xfs_dir3_free_read(tp, dp, fbno, 0, bpp); in xfs_dir2_free_read()
310 xfs_dablk_t fbno, in xfs_dir2_free_try_read()
313 return __xfs_dir3_free_read(tp, dp, fbno, XFS_DABUF_MAP_HOLE_OK, bpp); in xfs_dir2_free_try_read()
319 xfs_dir2_db_t fbno, in xfs_dir3_free_get_buf()
176 xfs_dir3_free_header_check( struct xfs_inode *dp, xfs_dablk_t fbno, struct xfs_buf *bp) xfs_dir3_free_header_check() argument
213 __xfs_dir3_free_read( struct xfs_trans *tp, struct xfs_inode *dp, xfs_dablk_t fbno, unsigned int flags, struct xfs_buf **bpp) __xfs_dir3_free_read() argument
297 xfs_dir2_free_read( struct xfs_trans *tp, struct xfs_inode *dp, xfs_dablk_t fbno, struct xfs_buf **bpp) xfs_dir2_free_read() argument
307 xfs_dir2_free_try_read( struct xfs_trans *tp, struct xfs_inode *dp, xfs_dablk_t fbno, struct xfs_buf **bpp) xfs_dir2_free_try_read() argument
317 xfs_dir3_free_get_buf( xfs_da_args_t *args, xfs_dir2_db_t fbno, struct xfs_buf **bpp) xfs_dir3_free_get_buf() argument
1690 xfs_dir2_db_t fbno; xfs_dir2_node_add_datablk() local
1805 xfs_dir2_db_t fbno; xfs_dir2_node_find_freeblk() local
[all...]
H A Dxfs_alloc.c468 * actual (current) free extent fbno for flen blocks.
476 xfs_agblock_t fbno, /* starting block of free extent */ in xfs_alloc_fixup_trees()
501 nfbno1 != fbno || in xfs_alloc_fixup_trees()
506 if ((error = xfs_alloc_lookup_eq(cnt_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
520 nfbno1 != fbno || in xfs_alloc_fixup_trees()
525 if ((error = xfs_alloc_lookup_eq(bno_cur, fbno, flen, &i))) in xfs_alloc_fixup_trees()
551 if (rbno == fbno && rlen == flen) in xfs_alloc_fixup_trees()
553 else if (rbno == fbno) { in xfs_alloc_fixup_trees()
557 } else if (rbno + rlen == fbno + flen) { in xfs_alloc_fixup_trees()
558 nfbno1 = fbno; in xfs_alloc_fixup_trees()
473 xfs_alloc_fixup_trees( struct xfs_btree_cur *cnt_cur, struct xfs_btree_cur *bno_cur, xfs_agblock_t fbno, xfs_extlen_t flen, xfs_agblock_t rbno, xfs_extlen_t rlen, int flags) xfs_alloc_fixup_trees() argument
1084 xfs_agblock_t fbno = NULLAGBLOCK; xfs_alloc_ag_vextent_small() local
1189 xfs_agblock_t fbno; /* start block of found extent */ xfs_alloc_ag_vextent_exact() local
1660 xfs_agblock_t fbno; /* start of found freespace */ xfs_alloc_ag_vextent_size() local
2596 xfs_agblock_t fbno; xfs_exact_minlen_extent_available() local
[all...]
H A Dxfs_dir2_priv.h98 xfs_dablk_t fbno, struct xfs_buf **bpp);
100 xfs_dablk_t fbno, struct xfs_buf **bpp);
158 xfs_dablk_t fbno, struct xfs_buf **bpp);
H A Dxfs_refcount.h85 xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno,
H A Dxfs_refcount.c1496 * within that range and return the range in fbno/flen. If
1499 * shared blocks are found, fbno and flen will be set to NULLAGBLOCK
1507 xfs_agblock_t *fbno, in xfs_refcount_find_shared()
1520 *fbno = NULLAGBLOCK; in xfs_refcount_find_shared()
1574 *fbno = tmp.rc_startblock; in xfs_refcount_find_shared()
1575 *flen = min(tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1580 while (*fbno + *flen < agbno + aglen) { in xfs_refcount_find_shared()
1595 tmp.rc_startblock != *fbno + *flen) in xfs_refcount_find_shared()
1597 *flen = min(*flen + tmp.rc_blockcount, agbno + aglen - *fbno); in xfs_refcount_find_shared()
1602 cur->bc_ag.pag->pag_agno, *fbno, *fle in xfs_refcount_find_shared()
1503 xfs_refcount_find_shared( struct xfs_btree_cur *cur, xfs_agblock_t agbno, xfs_extlen_t aglen, xfs_agblock_t *fbno, xfs_extlen_t *flen, bool find_end_of_shared) xfs_refcount_find_shared() argument
[all...]
/kernel/linux/linux-6.6/fs/xfs/scrub/
H A Dalloc.c51 xfs_agblock_t fbno; in xchk_allocbt_xref_other() local
71 error = xfs_alloc_get_rec(*pcur, &fbno, &flen, &has_otherrec); in xchk_allocbt_xref_other()
79 if (fbno != agbno || flen != len) in xchk_allocbt_xref_other()
H A Drmap.c74 xfs_agblock_t fbno; in xchk_rmapbt_xref_refc() local
92 irec->rm_blockcount, &fbno, &flen, false); in xchk_rmapbt_xref_refc()

Completed in 23 milliseconds

12