Home
last modified time | relevance | path

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

/linux-4.1.27/fs/xfs/
Dxfs_extent_busy.c38 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 …]
Dxfs_extent_busy.h38 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,
Dxfs_rtalloc.c346 xfs_rtblock_t bno, /* starting block number to allocate */ in xfs_rtallocate_extent_exact() argument
364 error = xfs_rtcheck_range(mp, tp, bno, maxlen, 1, &next, &isfree); in xfs_rtallocate_extent_exact()
372 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); in xfs_rtallocate_extent_exact()
377 *rtblock = bno; in xfs_rtallocate_extent_exact()
383 maxlen = next - bno; in xfs_rtallocate_extent_exact()
407 error = xfs_rtallocate_range(mp, tp, bno, maxlen, rbpp, rsb); in xfs_rtallocate_extent_exact()
412 *rtblock = bno; in xfs_rtallocate_extent_exact()
425 xfs_rtblock_t bno, /* starting block number to allocate */ in xfs_rtallocate_extent_near() argument
448 if (bno >= mp->m_sb.sb_rextents) in xfs_rtallocate_extent_near()
449 bno = mp->m_sb.sb_rextents - 1; in xfs_rtallocate_extent_near()
[all …]
Dxfs_discard.c221 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()
Dxfs_rtalloc.h39 xfs_rtblock_t bno, /* starting block number to allocate */
55 xfs_rtblock_t bno, /* starting block number to free */
Dxfs_bmap_util.c330 xfs_fsblock_t bno = blockno; in xfs_bmap_count_tree() local
335 error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, XFS_BMAP_BTREE_REF, in xfs_bmap_count_tree()
359 bno = be64_to_cpu(*pp); in xfs_bmap_count_tree()
361 xfs_bmap_count_tree(mp, tp, ifp, bno, level, count)) < 0)) { in xfs_bmap_count_tree()
377 bno = nextbno; in xfs_bmap_count_tree()
378 error = xfs_btree_read_bufl(mp, tp, bno, 0, &bp, in xfs_bmap_count_tree()
401 xfs_fsblock_t bno; /* block # of "block" */ in xfs_bmap_count_blocks() local
407 bno = NULLFSBLOCK; in xfs_bmap_count_blocks()
424 bno = be64_to_cpu(*pp); in xfs_bmap_count_blocks()
425 ASSERT(bno != NULLFSBLOCK); in xfs_bmap_count_blocks()
[all …]
Dxfs_trace.h313 __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,
1323 TP_PROTO(struct xfs_inode *ip, xfs_fileoff_t bno, xfs_filblks_t len,
[all …]
Dxfs_buf.h349 #define XFS_BUF_SET_ADDR(bp, bno) ((bp)->b_maps[0].bm_bn = (xfs_daddr_t)(bno)) argument
Dxfs_qm.c871 xfs_fsblock_t bno, in xfs_qm_dqiter_bufs() argument
896 XFS_FSB_TO_DADDR(mp, bno), in xfs_qm_dqiter_bufs()
909 XFS_FSB_TO_DADDR(mp, bno), in xfs_qm_dqiter_bufs()
928 bno++; in xfs_qm_dqiter_bufs()
/linux-4.1.27/fs/xfs/libxfs/
Dxfs_attr_remote.c73 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 …]
Dxfs_alloc.h183 xfs_agblock_t bno, /* block being freed */
210 xfs_fsblock_t bno, /* starting block number of extent */
216 xfs_agblock_t bno, /* starting block of extent */
223 xfs_agblock_t bno, /* starting block of extent */
230 xfs_agblock_t *bno, /* output: starting block of extent */
Dxfs_bmap.c111 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 …]
Dxfs_da_btree.h188 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,
Dxfs_bmap.h185 void xfs_bmap_add_free(xfs_fsblock_t bno, xfs_filblks_t len,
200 int xfs_bmapi_read(struct xfs_inode *ip, xfs_fileoff_t bno,
203 int xfs_bmapi_delay(struct xfs_inode *ip, xfs_fileoff_t bno,
207 xfs_fileoff_t bno, xfs_filblks_t len, int flags,
212 xfs_fileoff_t bno, xfs_filblks_t len, int flags,
Dxfs_alloc.c58 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 …]
Dxfs_alloc_btree.c75 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()
Dxfs_dir2.c583 xfs_fileoff_t bno; /* directory offset of new block */ in xfs_dir2_grow_inode() local
592 bno = XFS_B_TO_FSBT(mp, space * XFS_DIR2_SPACE_SIZE); in xfs_dir2_grow_inode()
595 error = xfs_da_grow_inode_int(args, &bno, count); in xfs_dir2_grow_inode()
599 *dbp = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)bno); in xfs_dir2_grow_inode()
607 size = XFS_FSB_TO_B(mp, bno + count); in xfs_dir2_grow_inode()
663 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 …]
Dxfs_da_btree.c252 xfs_dablk_t bno, in xfs_da3_node_read() argument
259 err = xfs_da_read_buf(tp, dp, bno, mappedbno, bpp, in xfs_da3_node_read()
1997 xfs_fileoff_t *bno, in xfs_da_grow_inode_int() argument
2010 error = xfs_bmap_first_unused(tp, dp, count, bno, w); in xfs_da_grow_inode_int()
2019 error = xfs_bmapi_write(tp, dp, *bno, count, in xfs_da_grow_inode_int()
2039 for (b = *bno, mapi = 0; b < *bno + count; ) { in xfs_da_grow_inode_int()
2041 c = (int)(*bno + count - b); in xfs_da_grow_inode_int()
2064 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int()
2066 *bno + count) { in xfs_da_grow_inode_int()
2089 xfs_fileoff_t bno; in xfs_da_grow_inode() local
[all …]
Dxfs_dir2_priv.h50 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,
Dxfs_rtbitmap.c927 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()
Dxfs_attr_leaf.h101 xfs_dablk_t bno, xfs_daddr_t mappedbno,
Dxfs_inode_fork.c1531 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()
Dxfs_dir2_data.c319 xfs_dablk_t bno, in xfs_dir3_data_read() argument
325 err = xfs_da_read_buf(tp, dp, bno, mapped_bno, bpp, in xfs_dir3_data_read()
335 xfs_dablk_t bno, in xfs_dir3_data_readahead() argument
338 return xfs_da_reada_buf(dp, bno, mapped_bno, in xfs_dir3_data_readahead()
Dxfs_dir2_leaf.c339 xfs_dir2_db_t bno, in xfs_dir3_leaf_get_buf() argument
350 ASSERT(bno >= xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET) && in xfs_dir3_leaf_get_buf()
351 bno < xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET)); in xfs_dir3_leaf_get_buf()
353 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, bno), in xfs_dir3_leaf_get_buf()
Dxfs_btree.c168 xfs_fsblock_t bno, /* btree block disk address */ in xfs_btree_check_lptr() argument
173 bno != NULLFSBLOCK && in xfs_btree_check_lptr()
174 XFS_FSB_SANITY_CHECK(cur->bc_mp, bno)); in xfs_btree_check_lptr()
185 xfs_agblock_t bno, /* btree block disk address */ in xfs_btree_check_sptr() argument
192 bno != NULLAGBLOCK && in xfs_btree_check_sptr()
193 bno != 0 && in xfs_btree_check_sptr()
194 bno < agblocks); in xfs_btree_check_sptr()
Dxfs_attr_leaf.c336 xfs_dablk_t bno, in xfs_attr3_leaf_read() argument
342 err = xfs_da_read_buf(tp, dp, bno, mappedbno, bpp, in xfs_attr3_leaf_read()
/linux-4.1.27/fs/freevxfs/
Dvxfs_bmap.c87 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()
/linux-4.1.27/fs/ufs/
Dufs_fs.h236 #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 \
/linux-4.1.27/include/linux/ceph/
Dosdmap.h204 u64 *bno, u64 *oxoff, u64 *oxlen);
/linux-4.1.27/arch/s390/kernel/
Dhead.S234 bno .Lnoreset