Home
last modified time | relevance | path

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

123

/linux/fs/xfs/
A Dxfs_extent_busy.c37 new->bno = bno; in xfs_extent_busy_insert()
51 if (new->bno < busyp->bno) { in xfs_extent_busy_insert()
53 ASSERT(new->bno + new->length <= busyp->bno); in xfs_extent_busy_insert()
54 } else if (new->bno > busyp->bno) { in xfs_extent_busy_insert()
56 ASSERT(bno >= busyp->bno + busyp->length); in xfs_extent_busy_insert()
94 if (bno < busyp->bno) { in xfs_extent_busy_search()
96 if (bno + len > busyp->bno) in xfs_extent_busy_search()
99 } else if (bno > busyp->bno) { in xfs_extent_busy_search()
101 if (bno < busyp->bno + busyp->length) in xfs_extent_busy_search()
335 fbno = *bno; in xfs_extent_busy_trim()
[all …]
A Dxfs_extent_busy.h27 xfs_agblock_t bno; member
36 xfs_agblock_t bno, xfs_extlen_t len, unsigned int flags);
44 xfs_agblock_t bno, xfs_extlen_t len);
51 xfs_extent_busy_trim(struct xfs_alloc_arg *args, xfs_agblock_t *bno,
A Dxfs_rtalloc.c375 *rtblock = bno; in xfs_rtallocate_extent_exact()
381 maxlen = next - bno; in xfs_rtallocate_extent_exact()
410 *rtblock = bno; in xfs_rtallocate_extent_exact()
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()
450 maxlen = min(mp->m_sb.sb_rextents, bno + maxlen) - bno; in xfs_rtallocate_extent_near()
471 bbno = XFS_BITTOBLOCK(mp, bno); in xfs_rtallocate_extent_near()
773 xfs_fileoff_t bno; /* block number in file */ in xfs_growfs_rt_alloc() local
833 bno < map.br_startoff + map.br_blockcount; in xfs_growfs_rt_alloc()
834 bno++, fsbno++) { in xfs_growfs_rt_alloc()
[all …]
A Dxfs_bmap_util.c355 xfs_fileoff_t bno, in xfs_getbmap_report_hole() argument
364 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, bno); in xfs_getbmap_report_hole()
414 xfs_fileoff_t bno, first_bno; in xfs_getbmap() local
526 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, in xfs_getbmap()
538 if (got.br_startoff > bno) { in xfs_getbmap()
539 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, in xfs_getbmap()
550 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap()
557 } while (xfs_getbmap_next_rec(&rec, bno)); in xfs_getbmap()
564 if (whichfork != XFS_ATTR_FORK && bno < end && in xfs_getbmap()
567 bno, end); in xfs_getbmap()
[all …]
/linux/fs/xfs/scrub/
A Drefcount.c76 xfs_agblock_t bno; member
153 xfs_agblock_t bno; in xchk_refcountbt_process_rmap_fragments() local
175 bno = 0; in xchk_refcountbt_process_rmap_fragments()
191 if (bno < rbno) in xchk_refcountbt_process_rmap_fragments()
192 rbno = bno; in xchk_refcountbt_process_rmap_fragments()
210 if (bno != rbno) { in xchk_refcountbt_process_rmap_fragments()
212 next_rbno = bno; in xchk_refcountbt_process_rmap_fragments()
227 next_rbno = bno; in xchk_refcountbt_process_rmap_fragments()
276 .bno = bno, in xchk_refcountbt_xref_rmap()
338 xfs_agblock_t bno; in xchk_refcountbt_rec() local
[all …]
A 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()
A 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()
A Dtrace.h150 __field(xfs_agblock_t, bno)
158 __entry->bno = bno;
166 __entry->bno,
337 __field(xfs_agblock_t, bno)
362 __entry->bno,
380 __field(xfs_agblock_t, bno)
407 __entry->bno,
422 __field(xfs_agblock_t, bno)
444 __entry->bno,
486 __entry->bno,
[all …]
A 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()
/linux/fs/xfs/libxfs/
A Dxfs_rmap.c36 xfs_agblock_t bno, in xfs_rmap_lookup_le() argument
58 xfs_agblock_t bno, in xfs_rmap_lookup_eq() argument
291 xfs_agblock_t bno, in xfs_rmap_find_left_neighbor() argument
302 if (bno == 0) in xfs_rmap_find_left_neighbor()
369 xfs_agblock_t bno, in xfs_rmap_lookup_le_range() argument
485 xfs_agblock_t bno, in xfs_rmap_unmap() argument
543 bno < in xfs_rmap_unmap()
582 bno + len)) { in xfs_rmap_unmap()
1078 bno)) { in xfs_rmap_convert()
1553 bno)) { in xfs_rmap_convert_shared()
[all …]
A Dxfs_alloc.h145 xfs_agblock_t bno, /* block being freed */
172 xfs_fsblock_t bno, /* starting block number of extent */
181 xfs_fsblock_t bno, in xfs_free_extent() argument
186 return __xfs_free_extent(tp, bno, len, oinfo, type, false); in xfs_free_extent()
192 xfs_agblock_t bno, /* starting block of extent */
199 xfs_agblock_t bno, /* starting block of extent */
206 xfs_agblock_t *bno, /* output: starting block of extent */
234 int xfs_alloc_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno,
251 void __xfs_free_extent_later(struct xfs_trans *tp, xfs_fsblock_t bno,
274 xfs_fsblock_t bno, in xfs_free_extent_later() argument
[all …]
A Dxfs_attr_remote.c72 xfs_daddr_t bno) in xfs_attr3_rmt_hdr_ok() argument
95 xfs_daddr_t bno) in xfs_attr3_rmt_verify() argument
125 xfs_daddr_t bno; in __xfs_attr3_rmt_read_verify() local
133 bno = xfs_buf_daddr(bp); 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 = xfs_buf_daddr(bp); in xfs_attr3_rmt_write_verify()
223 bno += BTOBB(blksize); in xfs_attr3_rmt_write_verify()
245 xfs_daddr_t bno) in xfs_attr3_rmt_hdr_set() argument
315 bno += BTOBB(blksize); in xfs_attr_rmtval_copyout()
[all …]
A Dxfs_rmap.h118 struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len,
121 struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len,
124 int xfs_rmap_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno,
127 int xfs_rmap_lookup_eq(struct xfs_btree_cur *cur, xfs_agblock_t bno,
176 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner);
178 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner);
187 int xfs_rmap_find_left_neighbor(struct xfs_btree_cur *cur, xfs_agblock_t bno,
190 int xfs_rmap_lookup_le_range(struct xfs_btree_cur *cur, xfs_agblock_t bno,
198 int xfs_rmap_has_record(struct xfs_btree_cur *cur, xfs_agblock_t bno,
200 int xfs_rmap_record_exists(struct xfs_btree_cur *cur, xfs_agblock_t bno,
[all …]
A Dxfs_alloc.c250 if (*bno > *bno + *len) in xfs_alloc_get_rec()
291 if (bno < args->min_agbno && bno + len > args->min_agbno) { in xfs_alloc_compute_aligned()
294 bno += diff; in xfs_alloc_compute_aligned()
307 *resbno = bno; in xfs_alloc_compute_aligned()
766 acur->bno = 0; in xfs_alloc_cur_setup()
895 acur->bno = bnew; in xfs_alloc_cur_check()
955 xfs_agblock_t bno; in xfs_alloc_cntbt_iter() local
2124 nbno = bno; in xfs_free_ag_extent()
2134 nbno = bno; in xfs_free_ag_extent()
2725 for (bno = targs.agbno; bno < targs.agbno + targs.len; bno++) { in xfs_alloc_fix_freelist()
[all …]
A Dxfs_refcount.h17 xfs_agblock_t bno, int *stat);
19 xfs_agblock_t bno, int *stat);
21 xfs_agblock_t bno, int *stat);
79 xfs_agblock_t bno, xfs_extlen_t len, bool *exists);
A Dxfs_bmap.h171 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno,
184 int xfs_bmapi_read(struct xfs_inode *ip, xfs_fileoff_t bno,
188 xfs_fileoff_t bno, xfs_filblks_t len, int flags,
191 xfs_fileoff_t bno, xfs_filblks_t *rlen, int flags,
194 xfs_fileoff_t bno, xfs_filblks_t len, int flags,
262 xfs_fileoff_t bno, xfs_filblks_t len, xfs_fsblock_t startblock,
A Dxfs_da_btree.h191 xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork);
203 int xfs_da_grow_inode_int(struct xfs_da_args *args, xfs_fileoff_t *bno,
206 xfs_dablk_t bno, struct xfs_buf **bp, int whichfork);
208 xfs_dablk_t bno, unsigned int flags, struct xfs_buf **bpp,
210 int xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno,
A Dxfs_rmap_btree.c90 xfs_agblock_t bno; in xfs_rmapbt_alloc_block() local
94 &bno, 1); in xfs_rmapbt_alloc_block()
98 trace_xfs_rmapbt_alloc_block(cur->bc_mp, pag->pag_agno, bno, 1); in xfs_rmapbt_alloc_block()
99 if (bno == NULLAGBLOCK) { in xfs_rmapbt_alloc_block()
104 xfs_extent_busy_reuse(cur->bc_mp, pag, bno, 1, false); in xfs_rmapbt_alloc_block()
106 new->s = cpu_to_be32(bno); in xfs_rmapbt_alloc_block()
124 xfs_agblock_t bno; in xfs_rmapbt_free_block() local
127 bno = xfs_daddr_to_agbno(cur->bc_mp, xfs_buf_daddr(bp)); in xfs_rmapbt_free_block()
129 bno, 1); in xfs_rmapbt_free_block()
132 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_rmapbt_free_block()
[all …]
A Dxfs_types.c96 xfs_agblock_t bno; in xfs_agino_range() local
105 bno = round_up(XFS_AGFL_BLOCK(mp) + 1, M_IGEO(mp)->cluster_align); in xfs_agino_range()
106 *first = XFS_AGB_TO_AGINO(mp, bno); in xfs_agino_range()
112 bno = round_down(eoag, M_IGEO(mp)->cluster_align); in xfs_agino_range()
113 *last = XFS_AGB_TO_AGINO(mp, bno) - 1; in xfs_agino_range()
A 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 …]
A Dxfs_refcount.c49 xfs_agblock_t bno, in xfs_refcount_lookup_le() argument
54 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_le()
66 xfs_agblock_t bno, in xfs_refcount_lookup_ge() argument
71 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_ge()
83 xfs_agblock_t bno, in xfs_refcount_lookup_eq() argument
88 cur->bc_rec.rc.rc_startblock = bno; in xfs_refcount_lookup_eq()
1145 xfs_agblock_t bno; in xfs_refcount_finish_one() local
1152 bno = XFS_FSB_TO_AGBNO(mp, startblock); in xfs_refcount_finish_one()
1770 xfs_agblock_t bno, in xfs_refcount_has_record() argument
1778 low.rc.rc_startblock = bno; in xfs_refcount_has_record()
[all …]
A Dxfs_alloc_btree.c60 xfs_agblock_t bno; in xfs_allocbt_alloc_block() local
64 &bno, 1); in xfs_allocbt_alloc_block()
68 if (bno == NULLAGBLOCK) { in xfs_allocbt_alloc_block()
74 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_ag.agbp->b_pag, bno, 1, false); in xfs_allocbt_alloc_block()
76 new->s = cpu_to_be32(bno); in xfs_allocbt_alloc_block()
88 xfs_agblock_t bno; in xfs_allocbt_free_block() local
91 bno = xfs_daddr_to_agbno(cur->bc_mp, xfs_buf_daddr(bp)); in xfs_allocbt_free_block()
92 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_allocbt_free_block()
97 xfs_extent_busy_insert(cur->bc_tp, agbp->b_pag, bno, 1, in xfs_allocbt_free_block()
A Dxfs_bmap.c234 xfs_fsblock_t bno) in xfs_bmap_get_bp() argument
344 bno = NULLFSBLOCK; in xfs_bmap_check_leaf_extents()
444 bno = nextbno; in xfs_bmap_check_leaf_extents()
507 bno); in xfs_bmap_validate_ret()
3779 if (obno > *bno) in xfs_bmapi_trim_map()
3780 *bno = obno; in xfs_bmapi_trim_map()
3902 end = bno + len; in xfs_bmapi_read()
3903 obno = bno; in xfs_bmapi_read()
4341 orig_bno = bno; in xfs_bmapi_write()
4389 end = bno + len; in xfs_bmapi_write()
[all …]
A Dxfs_da_btree.c372 xfs_dablk_t bno, in xfs_da3_node_read() argument
2139 xfs_fileoff_t *bno, in xfs_da_grow_inode_int() argument
2179 for (b = *bno, mapi = 0; b < *bno + count; ) { in xfs_da_grow_inode_int()
2205 *bno + count) { in xfs_da_grow_inode_int()
2228 xfs_fileoff_t bno; in xfs_da_grow_inode() local
2233 bno = args->geo->leafblk; in xfs_da_grow_inode()
2499 xfs_dablk_t bno, in xfs_dabuf_map() argument
2546 if (off != bno + nfsb) in xfs_dabuf_map()
2585 xfs_dablk_t bno, in xfs_da_get_buf() argument
2620 xfs_dablk_t bno, in xfs_da_read_buf() argument
[all …]
/linux/fs/iomap/
A Dfiemap.c97 iomap_bmap(struct address_space *mapping, sector_t bno, in iomap_bmap() argument
102 .pos = (loff_t)bno << mapping->host->i_blkbits, in iomap_bmap()
112 bno = 0; in iomap_bmap()
115 bno = iomap_sector(&iter.iomap, iter.pos) >> blkshift; in iomap_bmap()
121 return bno; in iomap_bmap()

Completed in 69 milliseconds

123