/linux-master/fs/xfs/ |
H A D | xfs_extent_busy.c | 25 xfs_agblock_t bno, 38 new->bno = bno; 44 trace_xfs_extent_busy(pag->pag_mount, pag->pag_agno, bno, len); 52 if (new->bno < busyp->bno) { 54 ASSERT(new->bno + new->length <= busyp->bno); 55 } else if (new->bno > busyp->bno) { 23 xfs_extent_busy_insert_list( struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len, unsigned int flags, struct list_head *busy_list) argument 72 xfs_extent_busy_insert( struct xfs_trans *tp, struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len, unsigned int flags) argument 83 xfs_extent_busy_insert_discard( struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len, struct list_head *busy_list) argument 103 xfs_extent_busy_search( struct xfs_mount *mp, struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len) argument 346 xfs_extent_busy_trim( struct xfs_alloc_arg *args, xfs_agblock_t *bno, xfs_extlen_t *len, unsigned *busy_gen) argument [all...] |
H A D | xfs_extent_busy.h | 21 struct rb_node rb_node; /* ag by-bno indexed search tree */ 24 xfs_agblock_t bno; member in struct:xfs_extent_busy 50 xfs_agblock_t bno, xfs_extlen_t len, unsigned int flags); 53 xfs_extent_busy_insert_discard(struct xfs_perag *pag, xfs_agblock_t bno, 62 xfs_agblock_t bno, xfs_extlen_t len); 69 xfs_extent_busy_trim(struct xfs_alloc_arg *args, xfs_agblock_t *bno,
|
H A D | xfs_discard.c | 119 trace_xfs_discard_extent(mp, busyp->agno, busyp->bno, 123 XFS_AGB_TO_DADDR(mp, busyp->agno, busyp->bno), 129 (unsigned long long)busyp->bno,
|
H A D | xfs_bmap_util.c | 206 xfs_fileoff_t bno, 215 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, bno); 216 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, end - bno); 265 xfs_fileoff_t bno, first_bno; local 365 first_bno = bno = XFS_BB_TO_FSBT(mp, bmv->bmv_offset); 372 if (!xfs_iext_lookup_extent(ip, ifp, bno, &icur, &got)) { 378 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, 390 if (got.br_startoff > bno) { 391 xfs_getbmap_report_hole(ip, bmv, out, bmv_end, bno, 402 bno 201 xfs_getbmap_report_hole( struct xfs_inode *ip, struct getbmapx *bmv, struct kgetbmap *out, int64_t bmv_end, xfs_fileoff_t bno, xfs_fileoff_t end) argument [all...] |
/linux-master/fs/xfs/scrub/ |
H A D | refcount.c | 51 * (bno, len, refcount), allowing for the possibility that some of the 93 xfs_agblock_t bno; member in struct:xchk_refcnt_check 124 rc_last = refchk->bno + refchk->len - 1; 132 if (rec->rm_startblock <= refchk->bno && rm_last >= rc_last) { 170 xfs_agblock_t bno; local 192 bno = 0; 194 if (frag->rm.rm_startblock < bno) 196 bno = frag->rm.rm_startblock; 205 if (frag->rm.rm_startblock > refchk->bno || nr > target_nr) 207 bno 379 xchk_refcountbt_xref_gaps( struct xfs_scrub *sc, struct xchk_refcbt_records *rrc, xfs_agblock_t bno) argument [all...] |
H A D | reap.c | 226 xfs_agblock_t bno = agbno; local 243 while (bno < agbno_next) { 251 max_fsbs = min_t(xfs_agblock_t, agbno_next - bno, 259 daddr = XFS_AGB_TO_DADDR(mp, agno, bno); 276 *aglenp -= agbno_next - bno; 281 bno++; 304 xfs_agblock_t bno = agbno + 1; local 327 while (bno < agbno_next) { 330 error = xfs_rmap_has_other_keys(cur, bno, 1, rs->oinfo, 339 bno [all...] |
H A D | scrub.h | 208 void xchk_xref_is_cow_staging(struct xfs_scrub *sc, xfs_agblock_t bno, 210 void xchk_xref_is_not_shared(struct xfs_scrub *sc, xfs_agblock_t bno, 212 void xchk_xref_is_not_cow_staging(struct xfs_scrub *sc, xfs_agblock_t bno,
|
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_rmap.c | 31 * Lookup the first record less than or equal to [bno, len, owner, offset] 37 xfs_agblock_t bno, 47 cur->bc_rec.r.rm_startblock = bno; 69 * Lookup the record exactly matching [bno, len, owner, offset] 75 xfs_agblock_t bno, 82 cur->bc_rec.r.rm_startblock = bno; 92 * by [bno, len, owner, offset]. 369 xfs_agblock_t bno, 381 if (bno == 0) 383 info.high.rm_startblock = bno 35 xfs_rmap_lookup_le( struct xfs_btree_cur *cur, xfs_agblock_t bno, uint64_t owner, uint64_t offset, unsigned int flags, struct xfs_rmap_irec *irec, int *stat) argument 73 xfs_rmap_lookup_eq( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner, uint64_t offset, unsigned int flags, int *stat) argument 367 xfs_rmap_find_left_neighbor( struct xfs_btree_cur *cur, xfs_agblock_t bno, uint64_t owner, uint64_t offset, unsigned int flags, struct xfs_rmap_irec *irec, int *stat) argument 468 xfs_rmap_lookup_le_range( struct xfs_btree_cur *cur, xfs_agblock_t bno, uint64_t owner, uint64_t offset, unsigned int flags, struct xfs_rmap_irec *irec, int *stat) argument 615 xfs_rmap_unmap( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) argument 908 xfs_rmap_free( struct xfs_trans *tp, struct xfs_buf *agbp, struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len, const struct xfs_owner_info *oinfo) argument 965 xfs_rmap_map( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) argument 1160 xfs_rmap_alloc( struct xfs_trans *tp, struct xfs_buf *agbp, struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len, const struct xfs_owner_info *oinfo) argument 1200 xfs_rmap_convert( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) argument 1712 xfs_rmap_convert_shared( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) argument 2148 xfs_rmap_unmap_shared( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) argument 2343 xfs_rmap_map_shared( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, bool unwritten, const struct xfs_owner_info *oinfo) argument 2594 __xfs_rmap_finish_intent( struct xfs_btree_cur *rcur, enum xfs_rmap_intent_type op, xfs_agblock_t bno, xfs_extlen_t len, const struct xfs_owner_info *oinfo, bool unwritten) argument 2642 xfs_agblock_t bno; local 2810 xfs_rmap_alloc_extent( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner) argument 2832 xfs_rmap_free_extent( struct xfs_trans *tp, xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner) argument 2886 xfs_rmap_has_records( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, enum xbtree_recpacking *outcome) argument 2937 xfs_rmap_ownercount_init( struct xfs_rmap_ownercount *roc, xfs_agblock_t bno, xfs_extlen_t len, const struct xfs_owner_info *oinfo, struct xfs_rmap_matches *results) argument 3017 xfs_rmap_count_owners( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, const struct xfs_owner_info *oinfo, struct xfs_rmap_matches *results) argument 3048 xfs_rmap_has_other_keys( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, const struct xfs_owner_info *oinfo, bool *has_other) argument [all...] |
H A D | xfs_rmap.h | 119 struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len, 122 struct xfs_perag *pag, xfs_agblock_t bno, xfs_extlen_t len, 125 int xfs_rmap_lookup_le(struct xfs_btree_cur *cur, xfs_agblock_t bno, 128 int xfs_rmap_lookup_eq(struct xfs_btree_cur *cur, xfs_agblock_t bno, 181 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner); 183 xfs_agblock_t bno, xfs_extlen_t len, uint64_t owner); 190 enum xfs_rmap_intent_type op, xfs_agblock_t bno, 194 int xfs_rmap_lookup_le_range(struct xfs_btree_cur *cur, xfs_agblock_t bno, 205 int xfs_rmap_has_records(struct xfs_btree_cur *cur, xfs_agblock_t bno, 219 int xfs_rmap_count_owners(struct xfs_btree_cur *cur, xfs_agblock_t bno, [all...] |
H A D | xfs_btree_mem.c | 92 xfbno_t bno = xfbt->highest_bno++; local 95 error = xfs_buf_get(xfbt->target, xfbno_to_daddr(bno), XFBNO_BBSIZE, 106 xfbt->root.l = cpu_to_be64(bno); 170 xfbno_t bno = xfbt->highest_bno++; local 174 trace_xfbtree_alloc_block(xfbt, cur, bno); 177 if (!xfbtree_verify_bno(xfbt, bno)) { 178 ASSERT(xfbtree_verify_bno(xfbt, bno)); 183 new->l = cpu_to_be64(bno); 196 xfbno_t bno = xfs_daddr_to_xfbno(daddr); local 200 trace_xfbtree_free_block(xfbt, cur, bno); [all...] |
H A D | xfs_refcount.h | 17 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat); 19 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat); 21 enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat); 115 enum xfs_refc_domain domain, xfs_agblock_t bno,
|
H A D | xfs_attr_remote.c | 73 xfs_daddr_t bno) 77 if (bno != be64_to_cpu(rmt->rm_blkno)) 96 xfs_daddr_t bno) 104 if (be64_to_cpu(rmt->rm_blkno) != bno) 126 xfs_daddr_t bno; local 134 bno = xfs_buf_daddr(bp); 144 *failaddr = xfs_attr3_rmt_verify(mp, bp, ptr, blksize, bno); 149 bno += BTOBB(blksize); 192 xfs_daddr_t bno; local 199 bno 68 xfs_attr3_rmt_hdr_ok( void *ptr, xfs_ino_t ino, uint32_t offset, uint32_t size, xfs_daddr_t bno) argument 91 xfs_attr3_rmt_verify( struct xfs_mount *mp, struct xfs_buf *bp, void *ptr, int fsbsize, xfs_daddr_t bno) argument 240 xfs_attr3_rmt_hdr_set( struct xfs_mount *mp, void *ptr, xfs_ino_t ino, uint32_t offset, uint32_t size, xfs_daddr_t bno) argument 289 xfs_daddr_t bno = xfs_buf_daddr(bp); local 338 xfs_daddr_t bno = xfs_buf_daddr(bp); local [all...] |
H A D | xfs_btree_mem.h | 45 static inline bool xfbtree_verify_bno(struct xfbtree *xfbt, xfbno_t bno) argument 47 return xmbuf_verify_daddr(xfbt->target, xfbno_to_daddr(bno));
|
H A D | xfs_da_btree.h | 198 xfs_dablk_t bno, struct xfs_buf **bpp, int whichfork); 210 int xfs_da_grow_inode_int(struct xfs_da_args *args, xfs_fileoff_t *bno, 213 xfs_dablk_t bno, struct xfs_buf **bp, int whichfork); 215 xfs_dablk_t bno, unsigned int flags, struct xfs_buf **bpp, 217 int xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno,
|
H A D | xfs_alloc.h | 82 xfs_agblock_t bno, int btreeblk); 167 xfs_agblock_t bno, /* starting block of extent */ 174 xfs_agblock_t bno, /* starting block of extent */ 181 xfs_agblock_t *bno, /* output: starting block of extent */ 217 int xfs_alloc_has_records(struct xfs_btree_cur *cur, xfs_agblock_t bno, 220 typedef int (*xfs_agfl_walk_fn)(struct xfs_mount *mp, xfs_agblock_t bno, 234 int xfs_free_extent_later(struct xfs_trans *tp, xfs_fsblock_t bno,
|
H A D | xfs_bmap.h | 176 void xfs_trim_extent(struct xfs_bmbt_irec *irec, xfs_fileoff_t bno, 189 int xfs_bmapi_read(struct xfs_inode *ip, xfs_fileoff_t bno, 193 xfs_fileoff_t bno, xfs_filblks_t len, uint32_t flags, 196 xfs_fileoff_t bno, xfs_filblks_t len, uint32_t flags, 274 xfs_fileoff_t bno, xfs_filblks_t len, xfs_fsblock_t startblock,
|
H A D | xfs_alloc.c | 127 * - the AGF (bno and cnt) and AGI btree root blocks, and optionally 159 xfs_agblock_t bno, 165 cur->bc_rec.a.ar_startblock = bno; 176 * Lookup the record equal to [bno, len] in the btree given by cur. 181 xfs_agblock_t bno, /* starting block of extent */ 185 return xfs_alloc_lookup(cur, XFS_LOOKUP_EQ, bno, len, stat); 189 * Lookup the first record greater than or equal to [bno, len] 195 xfs_agblock_t bno, /* starting block of extent */ 199 return xfs_alloc_lookup(cur, XFS_LOOKUP_GE, bno, len, stat); 203 * Lookup the first record less than or equal to [bno, le 156 xfs_alloc_lookup( struct xfs_btree_cur *cur, xfs_lookup_t dir, xfs_agblock_t bno, xfs_extlen_t len, int *stat) argument 179 xfs_alloc_lookup_eq( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, int *stat) argument 193 xfs_alloc_lookup_ge( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, int *stat) argument 207 xfs_alloc_lookup_le( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, int *stat) argument 229 xfs_alloc_update( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len) argument 289 xfs_alloc_get_rec( struct xfs_btree_cur *cur, xfs_agblock_t *bno, xfs_extlen_t *len, int *stat) argument 327 xfs_agblock_t bno = foundbno; local 830 xfs_agblock_t bno; /* alloc bno */ member in struct:xfs_alloc_cur 916 xfs_agblock_t bno, bnoa, bnew; local 1042 xfs_agblock_t bno; local 1510 xfs_alloc_ag_vextent_lastblock( struct xfs_alloc_arg *args, struct xfs_alloc_cur *acur, xfs_agblock_t *bno, xfs_extlen_t *len, bool *allocated) argument 1583 xfs_agblock_t bno; local 1938 xfs_free_ag_extent( struct xfs_trans *tp, struct xfs_buf *agbp, xfs_agnumber_t agno, xfs_agblock_t bno, xfs_extlen_t len, const struct xfs_owner_info *oinfo, enum xfs_ag_resv_type type) argument 2587 xfs_defer_extent_free( struct xfs_trans *tp, xfs_fsblock_t bno, xfs_filblks_t len, const struct xfs_owner_info *oinfo, enum xfs_ag_resv_type type, bool skip_discard, struct xfs_defer_pending **dfpp) argument 2647 xfs_free_extent_later( struct xfs_trans *tp, xfs_fsblock_t bno, xfs_filblks_t len, const struct xfs_owner_info *oinfo, enum xfs_ag_resv_type type, bool skip_discard) argument 2798 xfs_agblock_t bno; /* freelist block */ local 2987 xfs_agblock_t bno; local 3084 xfs_alloc_put_freelist( struct xfs_perag *pag, struct xfs_trans *tp, struct xfs_buf *agbp, struct xfs_buf *agflbp, xfs_agblock_t bno, int btreeblk) argument 4054 xfs_alloc_has_records( struct xfs_btree_cur *cur, xfs_agblock_t bno, xfs_extlen_t len, enum xbtree_recpacking *outcome) argument [all...] |
H A D | xfs_dir2.c | 576 xfs_fileoff_t bno; /* directory offset of new block */ local 585 bno = XFS_B_TO_FSBT(mp, space * XFS_DIR2_SPACE_SIZE); 588 error = xfs_da_grow_inode_int(args, &bno, count); 592 *dbp = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)bno); 600 size = XFS_FSB_TO_B(mp, bno + count); 671 xfs_fileoff_t bno; /* directory file offset */ local 718 bno = da; 719 if ((error = xfs_bmap_last_before(tp, dp, &bno, XFS_DATA_FORK))) { 726 ASSERT(bno == 0); 728 ASSERT(bno > [all...] |
H A D | xfs_alloc_btree.c | 75 xfs_agblock_t bno; local 79 cur->bc_ag.agbp, &bno, 1); 83 if (bno == NULLAGBLOCK) { 89 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_ag.pag, bno, 1, false); 91 new->s = cpu_to_be32(bno); 103 xfs_agblock_t bno; local 106 bno = xfs_daddr_to_agbno(cur->bc_mp, xfs_buf_daddr(bp)); 108 bno, 1); 113 xfs_extent_busy_insert(cur->bc_tp, agbp->b_pag, bno, 1, 481 .name = "bno", [all...] |
H A D | xfs_rmap_btree.c | 92 xfs_agblock_t bno; local 96 &bno, 1); 99 if (bno == NULLAGBLOCK) { 104 xfs_extent_busy_reuse(cur->bc_mp, pag, bno, 1, false); 106 new->s = cpu_to_be32(bno); 124 xfs_agblock_t bno; local 127 bno = xfs_daddr_to_agbno(cur->bc_mp, xfs_buf_daddr(bp)); 130 error = xfs_alloc_put_freelist(pag, cur->bc_tp, agbp, NULL, bno, 1); 134 xfs_extent_busy_insert(cur->bc_tp, pag, bno, 1,
|
H A D | xfs_bmap.c | 257 xfs_fsblock_t bno) 268 if (xfs_buf_daddr(cur->bc_levels[i].bp) == bno) 277 xfs_buf_daddr(bip->bli_buf) == bno) 349 xfs_fsblock_t bno; /* block # of "block" */ local 367 bno = NULLFSBLOCK; 376 bno = be64_to_cpu(*pp); 378 ASSERT(bno != NULLFSBLOCK); 379 ASSERT(XFS_FSB_TO_AGNO(mp, bno) < mp->m_sb.sb_agcount); 380 ASSERT(XFS_FSB_TO_AGBNO(mp, bno) < mp->m_sb.sb_agblocks); 389 bp = xfs_bmap_get_bp(cur, XFS_FSB_TO_DADDR(mp, bno)); 255 xfs_bmap_get_bp( struct xfs_btree_cur *cur, xfs_fsblock_t bno) argument 509 xfs_bmap_validate_ret( xfs_fileoff_t bno, xfs_filblks_t len, uint32_t flags, xfs_bmbt_irec_t *mval, int nmap, int ret_nmap) argument 3824 xfs_trim_extent( struct xfs_bmbt_irec *irec, xfs_fileoff_t bno, xfs_filblks_t len) argument 3859 xfs_bmapi_trim_map( struct xfs_bmbt_irec *mval, struct xfs_bmbt_irec *got, xfs_fileoff_t *bno, xfs_filblks_t len, xfs_fileoff_t obno, xfs_fileoff_t end, int n, uint32_t flags) argument 3905 xfs_bmapi_update_map( struct xfs_bmbt_irec **map, xfs_fileoff_t *bno, xfs_filblks_t *len, xfs_fileoff_t obno, xfs_fileoff_t end, int *n, uint32_t flags) argument 3959 xfs_bmapi_read( struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len, struct xfs_bmbt_irec *mval, int *nmap, uint32_t flags) argument 4411 xfs_bmapi_write( struct xfs_trans *tp, struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len, uint32_t flags, xfs_extlen_t total, struct xfs_bmbt_irec *mval, int *nmap) argument 4735 xfs_bmapi_remap( struct xfs_trans *tp, struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len, xfs_fsblock_t startblock, uint32_t flags) argument 5659 xfs_bunmapi( xfs_trans_t *tp, struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len, uint32_t flags, xfs_extnum_t nexts, int *done) argument [all...] |
H A D | xfs_dir2_priv.h | 81 xfs_dablk_t bno, unsigned int flags, struct xfs_buf **bpp); 82 int xfs_dir3_data_readahead(struct xfs_inode *dp, xfs_dablk_t bno, 109 extern int xfs_dir3_leaf_get_buf(struct xfs_da_args *args, xfs_dir2_db_t bno,
|
H A D | xfs_refcount.c | 44 * Look up the first record less than or equal to [bno, len] in the btree 51 xfs_agblock_t bno, 55 xfs_refcount_encode_startblock(bno, domain), 57 cur->bc_rec.rc.rc_startblock = bno; 64 * Look up the first record greater than or equal to [bno, len] in the btree 71 xfs_agblock_t bno, 75 xfs_refcount_encode_startblock(bno, domain), 77 cur->bc_rec.rc.rc_startblock = bno; 84 * Look up the first record equal to [bno, len] in the btree 91 xfs_agblock_t bno, 48 xfs_refcount_lookup_le( struct xfs_btree_cur *cur, enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat) argument 68 xfs_refcount_lookup_ge( struct xfs_btree_cur *cur, enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat) argument 88 xfs_refcount_lookup_eq( struct xfs_btree_cur *cur, enum xfs_refc_domain domain, xfs_agblock_t bno, int *stat) argument 1384 xfs_agblock_t bno; local 2054 xfs_refcount_has_records( struct xfs_btree_cur *cur, enum xfs_refc_domain domain, xfs_agblock_t bno, xfs_extlen_t len, enum xbtree_recpacking *outcome) argument [all...] |
/linux-master/fs/iomap/ |
H A D | fiemap.c | 98 iomap_bmap(struct address_space *mapping, sector_t bno, argument 103 .pos = (loff_t)bno << mapping->host->i_blkbits, 113 bno = 0; 116 bno = iomap_sector(&iter.iomap, iter.pos) >> blkshift; 122 return bno;
|
/linux-master/fs/freevxfs/ |
H A D | vxfs_bmap.c | 64 daddr_t bno; local 73 bno = fs32_to_cpu(sbi, indir[(bn / indsize) % (indsize * bn)]) + 77 return bno;
|