/fs/xfs/ |
D | xfs_extent_busy.c | 38 xfs_agblock_t bno, in xfs_extent_busy_insert() argument 55 trace_xfs_extent_busy_enomem(tp->t_mountp, agno, bno, len); in xfs_extent_busy_insert() 61 new->bno = bno; in xfs_extent_busy_insert() 67 trace_xfs_extent_busy(tp->t_mountp, agno, bno, len); in xfs_extent_busy_insert() 76 if (new->bno < busyp->bno) { in xfs_extent_busy_insert() 78 ASSERT(new->bno + new->length <= busyp->bno); in xfs_extent_busy_insert() 79 } else if (new->bno > busyp->bno) { in xfs_extent_busy_insert() 81 ASSERT(bno >= busyp->bno + busyp->length); in xfs_extent_busy_insert() 108 xfs_agblock_t bno, in xfs_extent_busy_search() argument 124 if (bno < busyp->bno) { in xfs_extent_busy_search() [all …]
|
D | xfs_rtalloc.c | 349 xfs_rtblock_t bno, /* starting block number to allocate */ in xfs_rtallocate_extent_exact() argument 367 error = xfs_rtcheck_range(mp, tp, bno, maxlen, 1, &next, &isfree); in xfs_rtallocate_extent_exact() 375 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); in xfs_rtallocate_extent_exact() 380 *rtblock = bno; in xfs_rtallocate_extent_exact() 386 maxlen = next - bno; in xfs_rtallocate_extent_exact() 410 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); in xfs_rtallocate_extent_exact() 415 *rtblock = bno; in xfs_rtallocate_extent_exact() 428 xfs_rtblock_t bno, /* starting block number to allocate */ in xfs_rtallocate_extent_near() argument 451 if (bno >= mp->m_sb.sb_rextents) in xfs_rtallocate_extent_near() 452 bno = mp->m_sb.sb_rextents - 1; in xfs_rtallocate_extent_near() [all …]
|
D | xfs_extent_busy.h | 38 xfs_agblock_t bno; member 47 xfs_agblock_t bno, xfs_extlen_t len, unsigned int flags); 55 xfs_agblock_t bno, xfs_extlen_t len); 62 xfs_extent_busy_trim(struct xfs_alloc_arg *args, xfs_agblock_t bno,
|
D | xfs_discard.c | 221 trace_xfs_discard_extent(mp, busyp->agno, busyp->bno, in xfs_discard_extents() 225 XFS_AGB_TO_DADDR(mp, busyp->agno, busyp->bno), in xfs_discard_extents() 231 (unsigned long long)busyp->bno, in xfs_discard_extents()
|
D | xfs_bmap_util.c | 356 xfs_fsblock_t bno = blockno; in xfs_bmap_count_tree() local 361 error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, XFS_BMAP_BTREE_REF, in xfs_bmap_count_tree() 385 bno = be64_to_cpu(*pp); in xfs_bmap_count_tree() 387 xfs_bmap_count_tree(mp, tp, ifp, bno, level, count)) < 0)) { in xfs_bmap_count_tree() 403 bno = nextbno; in xfs_bmap_count_tree() 404 error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, in xfs_bmap_count_tree() 427 xfs_fsblock_t bno; /* block # of "block" */ in xfs_bmap_count_blocks() local 433 bno = NULLFSBLOCK; in xfs_bmap_count_blocks() 450 bno = be64_to_cpu(*pp); in xfs_bmap_count_blocks() 451 ASSERT(bno != NULLFSBLOCK); in xfs_bmap_count_blocks() [all …]
|
D | xfs_rtalloc.h | 39 xfs_rtblock_t bno, /* starting block number to allocate */ 55 xfs_rtblock_t bno, /* starting block number to free */
|
D | xfs_trace.h | 313 __field(xfs_daddr_t, bno) 323 __entry->bno = bp->b_bn; 334 (unsigned long long)__entry->bno, 386 __field(xfs_daddr_t, bno) 396 __entry->bno = bp->b_bn; 407 (unsigned long long)__entry->bno, 429 __field(xfs_daddr_t, bno) 440 __entry->bno = bp->b_bn; 452 (unsigned long long)__entry->bno, 1373 TP_PROTO(struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len, [all …]
|
D | xfs_buf.h | 352 #define XFS_BUF_SET_ADDR(bp, bno) ((bp)->b_maps[0].bm_bn = (xfs_daddr_t)(bno)) argument
|
D | xfs_qm.c | 866 xfs_fsblock_t bno, in xfs_qm_dqiter_bufs() argument 891 XFS_FSB_TO_DADDR(mp, bno), in xfs_qm_dqiter_bufs() 904 XFS_FSB_TO_DADDR(mp, bno), in xfs_qm_dqiter_bufs() 923 bno++; in xfs_qm_dqiter_bufs()
|
/fs/xfs/libxfs/ |
D | xfs_attr_remote.c | 73 xfs_daddr_t bno) in xfs_attr3_rmt_hdr_ok() argument 77 if (bno != be64_to_cpu(rmt->rm_blkno)) in xfs_attr3_rmt_hdr_ok() 95 xfs_daddr_t bno) in xfs_attr3_rmt_verify() argument 105 if (be64_to_cpu(rmt->rm_blkno) != bno) in xfs_attr3_rmt_verify() 125 xfs_daddr_t bno; in xfs_attr3_rmt_read_verify() local 133 bno = bp->b_bn; in xfs_attr3_rmt_read_verify() 142 if (!xfs_attr3_rmt_verify(mp, ptr, blksize, bno)) { in xfs_attr3_rmt_read_verify() 148 bno += BTOBB(blksize); in xfs_attr3_rmt_read_verify() 165 xfs_daddr_t bno; in xfs_attr3_rmt_write_verify() local 172 bno = bp->b_bn; in xfs_attr3_rmt_write_verify() [all …]
|
D | xfs_bmap.c | 111 xfs_fsblock_t bno, in xfs_bmbt_lookup_eq() argument 116 cur->bc_rec.b.br_startblock = bno; in xfs_bmbt_lookup_eq() 125 xfs_fsblock_t bno, in xfs_bmbt_lookup_ge() argument 130 cur->bc_rec.b.br_startblock = bno; in xfs_bmbt_lookup_ge() 164 xfs_fsblock_t bno, in xfs_bmbt_update() argument 170 xfs_bmbt_disk_set_allf(&rec.bmbt, off, bno, len, state); in xfs_bmbt_update() 251 xfs_fsblock_t bno) in xfs_bmap_get_bp() argument 262 if (XFS_BUF_ADDR(cur->bc_bufs[i]) == bno) in xfs_bmap_get_bp() 271 XFS_BUF_ADDR(bip->bli_buf) == bno) in xfs_bmap_get_bp() 338 xfs_fsblock_t bno; /* block # of "block" */ in xfs_bmap_check_leaf_extents() local [all …]
|
D | xfs_alloc.c | 58 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_eq() argument 62 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_eq() 74 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_ge() argument 78 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_ge() 90 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_lookup_le() argument 94 cur->bc_rec.a.ar_startblock = bno; in xfs_alloc_lookup_le() 107 xfs_agblock_t bno, /* starting block of extent */ in xfs_alloc_update() argument 112 rec.alloc.ar_startblock = cpu_to_be32(bno); in xfs_alloc_update() 123 xfs_agblock_t *bno, /* output: starting block of extent */ in xfs_alloc_get_rec() argument 132 *bno = be32_to_cpu(rec->alloc.ar_startblock); in xfs_alloc_get_rec() [all …]
|
D | xfs_alloc.h | 185 xfs_agblock_t bno, /* block being freed */ 212 xfs_fsblock_t bno, /* starting block number of extent */ 218 xfs_agblock_t bno, /* starting block of extent */ 225 xfs_agblock_t bno, /* starting block of extent */ 232 xfs_agblock_t *bno, /* output: starting block of extent */
|
D | xfs_da_btree.h | 188 xfs_dablk_t bno, xfs_daddr_t mappedbno, 195 int xfs_da_grow_inode_int(struct xfs_da_args *args, xfs_fileoff_t *bno, 198 xfs_dablk_t bno, xfs_daddr_t mappedbno, 201 xfs_dablk_t bno, xfs_daddr_t mappedbno, 204 xfs_daddr_t xfs_da_reada_buf(struct xfs_inode *dp, xfs_dablk_t bno,
|
D | xfs_bmap.h | 194 void xfs_bmap_add_free(xfs_fsblock_t bno, xfs_filblks_t len, 209 int xfs_bmapi_read(struct xfs_inode *ip, xfs_fileoff_t bno, 212 int xfs_bmapi_delay(struct xfs_inode *ip, xfs_fileoff_t bno, 216 xfs_fileoff_t bno, xfs_filblks_t len, int flags, 221 xfs_fileoff_t bno, xfs_filblks_t len, int flags,
|
D | xfs_alloc_btree.c | 75 xfs_agblock_t bno; in xfs_allocbt_alloc_block() local 81 &bno, 1); in xfs_allocbt_alloc_block() 87 if (bno == NULLAGBLOCK) { in xfs_allocbt_alloc_block() 93 xfs_extent_busy_reuse(cur->bc_mp, cur->bc_private.a.agno, bno, 1, false); in xfs_allocbt_alloc_block() 96 new->s = cpu_to_be32(bno); in xfs_allocbt_alloc_block() 110 xfs_agblock_t bno; in xfs_allocbt_free_block() local 113 bno = xfs_daddr_to_agbno(cur->bc_mp, XFS_BUF_ADDR(bp)); in xfs_allocbt_free_block() 114 error = xfs_alloc_put_freelist(cur->bc_tp, agbp, NULL, bno, 1); in xfs_allocbt_free_block() 118 xfs_extent_busy_insert(cur->bc_tp, be32_to_cpu(agf->agf_seqno), bno, 1, in xfs_allocbt_free_block()
|
D | xfs_dir2.c | 586 xfs_fileoff_t bno; /* directory offset of new block */ in xfs_dir2_grow_inode() local 595 bno = XFS_B_TO_FSBT(mp, space * XFS_DIR2_SPACE_SIZE); in xfs_dir2_grow_inode() 598 error = xfs_da_grow_inode_int(args, &bno, count); in xfs_dir2_grow_inode() 602 *dbp = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)bno); in xfs_dir2_grow_inode() 610 size = XFS_FSB_TO_B(mp, bno + count); in xfs_dir2_grow_inode() 666 xfs_fileoff_t bno; /* directory file offset */ in xfs_dir2_shrink_inode() local 714 bno = da; in xfs_dir2_shrink_inode() 715 if ((error = xfs_bmap_last_before(tp, dp, &bno, XFS_DATA_FORK))) { in xfs_dir2_shrink_inode() 722 ASSERT(bno == 0); in xfs_dir2_shrink_inode() 724 ASSERT(bno > 0); in xfs_dir2_shrink_inode() [all …]
|
D | xfs_da_btree.c | 257 xfs_dablk_t bno, in xfs_da3_node_read() argument 264 err = xfs_da_read_buf(tp, dp, bno, mappedbno, bpp, in xfs_da3_node_read() 2008 xfs_fileoff_t *bno, in xfs_da_grow_inode_int() argument 2021 error = xfs_bmap_first_unused(tp, dp, count, bno, w); in xfs_da_grow_inode_int() 2030 error = xfs_bmapi_write(tp, dp, *bno, count, in xfs_da_grow_inode_int() 2050 for (b = *bno, mapi = 0; b < *bno + count; ) { in xfs_da_grow_inode_int() 2052 c = (int)(*bno + count - b); in xfs_da_grow_inode_int() 2075 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int() 2077 *bno + count) { in xfs_da_grow_inode_int() 2100 xfs_fileoff_t bno; in xfs_da_grow_inode() local [all …]
|
D | xfs_dir2_priv.h | 50 xfs_dablk_t bno, xfs_daddr_t mapped_bno, struct xfs_buf **bpp); 51 extern int xfs_dir3_data_readahead(struct xfs_inode *dp, xfs_dablk_t bno, 72 extern int xfs_dir3_leaf_get_buf(struct xfs_da_args *args, xfs_dir2_db_t bno,
|
D | xfs_rtbitmap.c | 927 xfs_rtblock_t bno, /* starting block number of extent */ in xfs_rtcheck_alloc_range() argument 934 error = xfs_rtcheck_range(mp, tp, bno, len, 0, &new, &stat); in xfs_rtcheck_alloc_range() 950 xfs_rtblock_t bno, /* starting block number to free */ in xfs_rtfree_extent() argument 963 error = xfs_rtcheck_alloc_range(mp, tp, bno, len); in xfs_rtfree_extent() 970 error = xfs_rtfree_range(mp, tp, bno, len, &sumbp, &sb); in xfs_rtfree_extent()
|
D | xfs_inode_fork.c | 1531 xfs_fileoff_t bno, /* block number to search for */ in xfs_iext_bno_to_ext() argument 1553 erp = xfs_iext_bno_to_irec(ifp, bno, &erp_idx); in xfs_iext_bno_to_ext() 1566 if (bno < startoff) { in xfs_iext_bno_to_ext() 1568 } else if (bno >= startoff + blockcount) { in xfs_iext_bno_to_ext() 1583 if (bno >= startoff + blockcount) { in xfs_iext_bno_to_ext() 1602 xfs_fileoff_t bno, /* block number to search for */ in xfs_iext_bno_to_irec() argument 1621 if (bno < xfs_bmbt_get_startoff(erp->er_extbuf)) { in xfs_iext_bno_to_irec() 1623 } else if (erp_next && bno >= in xfs_iext_bno_to_irec()
|
D | xfs_attr_leaf.h | 101 xfs_dablk_t bno, xfs_daddr_t mappedbno,
|
D | xfs_dir2_data.c | 324 xfs_dablk_t bno, in xfs_dir3_data_read() argument 330 err = xfs_da_read_buf(tp, dp, bno, mapped_bno, bpp, in xfs_dir3_data_read() 340 xfs_dablk_t bno, in xfs_dir3_data_readahead() argument 343 return xfs_da_reada_buf(dp, bno, mapped_bno, in xfs_dir3_data_readahead()
|
/fs/freevxfs/ |
D | vxfs_bmap.c | 87 daddr_t bno; in vxfs_bmap_ext4() local 95 bno = indir[(bn/indsize) % (indsize*bn)] + (bn%indsize); in vxfs_bmap_ext4() 98 return bno; in vxfs_bmap_ext4()
|
/fs/ufs/ |
D | ufs_fs.h | 236 #define ufs_cbtocylno(bno) \ argument 237 ((bno) * uspi->s_nspf / uspi->s_spc) 238 #define ufs_cbtorpos(bno) \ argument 240 (((((bno) * uspi->s_nspf % uspi->s_spc) % \ 244 ((((bno) * uspi->s_nspf % uspi->s_spc / uspi->s_nsect \ 245 * uspi->s_trackskew + (bno) * uspi->s_nspf % uspi->s_spc \
|