Home
last modified time | relevance | path

Searched refs:br_blockcount (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v5.4/fs/xfs/libxfs/
Dxfs_bmap.c113 cur->bc_rec.b.br_blockcount = 0; in xfs_bmbt_lookup_first()
495 ASSERT(mval[i].br_blockcount > 0); in xfs_bmap_validate_ret()
498 ASSERT(mval[i].br_blockcount <= len); in xfs_bmap_validate_ret()
499 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret()
503 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret()
507 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret()
900 rec.br_blockcount = 1; in xfs_bmap_local_to_extents()
1343 lastaddr = got.br_startoff + got.br_blockcount; in xfs_bmap_first_unused()
1450 bma->aeof = bma->offset >= rec.br_startoff + rec.br_blockcount || in xfs_bmap_isaeof()
1484 *last_block = rec.br_startoff + rec.br_blockcount; in xfs_bmap_last_offset()
[all …]
Dxfs_attr_remote.c402 dblkcnt = XFS_FSB_TO_BB(mp, map[i].br_blockcount); in xfs_attr_rmtval_get()
418 lblkno += map[i].br_blockcount; in xfs_attr_rmtval_get()
419 blkcnt -= map[i].br_blockcount; in xfs_attr_rmtval_get()
492 lblkno += map.br_blockcount; in xfs_attr_rmtval_set()
493 blkcnt -= map.br_blockcount; in xfs_attr_rmtval_set()
530 dblkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount); in xfs_attr_rmtval_set()
547 lblkno += map.br_blockcount; in xfs_attr_rmtval_set()
548 blkcnt -= map.br_blockcount; in xfs_attr_rmtval_set()
595 dblkcnt = XFS_FSB_TO_BB(mp, map.br_blockcount); in xfs_attr_rmtval_remove()
607 lblkno += map.br_blockcount; in xfs_attr_rmtval_remove()
[all …]
Dxfs_bmap_btree.c69 irec->br_blockcount = l1 & xfs_mask64lo(21); in xfs_bmbt_disk_get_all()
109 ASSERT(!(s->br_blockcount & xfs_mask64hi(64-BMBT_BLOCKCOUNT_BITLEN))); in xfs_bmbt_disk_set_all()
118 ((xfs_bmbt_rec_base_t)s->br_blockcount & in xfs_bmbt_disk_set_all()
Dxfs_types.h168 xfs_filblks_t br_blockcount; /* number of blocks */ member
Dxfs_iext_tree.c58 ASSERT((irec->br_blockcount & ~XFS_IEXT_LENGTH_MASK) == 0); in xfs_iext_set()
62 rec->hi = irec->br_blockcount & XFS_IEXT_LENGTH_MASK; in xfs_iext_set()
77 irec->br_blockcount = rec->hi & XFS_IEXT_LENGTH_MASK; in xfs_iext_get()
973 *end = gotp->br_startoff + gotp->br_blockcount; in xfs_iext_lookup_extent_before()
Dxfs_da_btree.c2114 mapp[mapi - 1].br_blockcount; in xfs_da_grow_inode_int()
2125 got += mapp[i].br_blockcount; in xfs_da_grow_inode_int()
2127 mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount != in xfs_da_grow_inode_int()
2454 off += mapp[i].br_blockcount; in xfs_da_map_covers_blocks()
2495 map[i].bm_len = XFS_FSB_TO_BB(mp, irecs[i].br_blockcount); in xfs_buf_map_from_irec()
2552 irecs->br_blockcount = nfsb; in xfs_dabuf_map()
2571 (long long)irecs[i].br_blockcount, in xfs_dabuf_map()
Dxfs_refcount.c1213 PREV->br_blockcount); in xfs_refcount_increase_extent()
1228 PREV->br_blockcount); in xfs_refcount_decrease_extent()
Dxfs_rmap.c2286 bmap->br_blockcount, in __xfs_rmap_add()
2368 bmap.br_blockcount = len; in xfs_rmap_alloc_extent()
2390 bmap.br_blockcount = len; in xfs_rmap_free_extent()
/Linux-v5.4/fs/xfs/
Dxfs_reflink.c193 aglen = irec->br_blockcount; in xfs_reflink_trim_around_shared()
211 irec->br_blockcount = flen; in xfs_reflink_trim_around_shared()
221 irec->br_blockcount = fbno - agbno; in xfs_reflink_trim_around_shared()
267 if (!got.br_blockcount) in xfs_reflink_convert_cow_locked()
315 xfs_filblks_t count_fsb = imap->br_blockcount; in xfs_find_trim_cow_extent()
335 xfs_trim_extent(imap, got.br_startoff, got.br_blockcount); in xfs_find_trim_cow_extent()
357 xfs_filblks_t count_fsb = imap->br_blockcount; in xfs_reflink_allocate_cow()
377 imap->br_blockcount, xfs_get_cowextsz_hint(ip)); in xfs_reflink_allocate_cow()
412 error = xfs_bmapi_write(tp, ip, imap->br_startoff, imap->br_blockcount, in xfs_reflink_allocate_cow()
477 while (got.br_startoff + got.br_blockcount > offset_fsb) { in xfs_reflink_cancel_cow_blocks()
[all …]
Dxfs_iomap.c47 (unsigned long long)imap->br_blockcount, in xfs_alert_fsblock_zero()
79 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_bmbt_to_iomap()
214 imap->br_blockcount + in xfs_iomap_write_direct()
424 prev.br_startoff + prev.br_blockcount < offset_fsb) in xfs_iomap_prealloc_size()
443 if (prev.br_blockcount <= (MAXEXTLEN >> 1)) in xfs_iomap_prealloc_size()
444 alloc_blocks = prev.br_blockcount << 1; in xfs_iomap_prealloc_size()
640 end_fsb = imap.br_startoff + imap.br_blockcount; in xfs_file_iomap_begin_delay()
722 xfs_trim_extent(&imap, cmap.br_startoff, cmap.br_blockcount); in xfs_file_iomap_begin_delay()
820 if ((numblks_fsb = imap.br_blockcount) == 0) { in xfs_iomap_write_unwritten()
825 ASSERT(imap.br_blockcount); in xfs_iomap_write_unwritten()
[all …]
Dxfs_bmap_util.c200 *eof = endoff >= rec.br_startoff + rec.br_blockcount; in xfs_bmap_eof()
223 *count += got.br_blockcount; in xfs_bmap_count_leaves()
438 p->bmv_length = XFS_FSB_TO_BB(ip->i_mount, got->br_blockcount); in xfs_getbmap_report_one()
481 xfs_fileoff_t end = rec->br_startoff + rec->br_blockcount; in xfs_getbmap_next_rec()
486 rec->br_startoff += rec->br_blockcount; in xfs_getbmap_next_rec()
489 rec->br_startblock += rec->br_blockcount; in xfs_getbmap_next_rec()
490 rec->br_blockcount = total_end - end; in xfs_getbmap_next_rec()
649 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap()
706 while (got.br_startoff + got.br_blockcount > start_fsb) { in xfs_bmap_punch_delalloc_range()
715 if (!del.br_blockcount || in xfs_bmap_punch_delalloc_range()
[all …]
Dxfs_aops.c429 offset_fsb >= wpc->imap.br_startoff + wpc->imap.br_blockcount) in xfs_imap_valid()
482 } while (wpc->imap.br_startoff + wpc->imap.br_blockcount <= offset_fsb); in xfs_convert_blocks()
574 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks()
587 cow_fsb < imap.br_startoff + imap.br_blockcount) in xfs_map_blocks()
588 imap.br_blockcount = cow_fsb - imap.br_startoff; in xfs_map_blocks()
620 cow_fsb < wpc->imap.br_startoff + wpc->imap.br_blockcount) in xfs_map_blocks()
621 wpc->imap.br_blockcount = cow_fsb - wpc->imap.br_startoff; in xfs_map_blocks()
624 ASSERT(wpc->imap.br_startoff + wpc->imap.br_blockcount > offset_fsb); in xfs_map_blocks()
Dxfs_bmap_item.c353 map->me_len = bmap->bi_bmap.br_blockcount; in xfs_bmap_update_log_item()
381 count = bmap->bi_bmap.br_blockcount; in xfs_bmap_update_finish_item()
391 bmap->bi_bmap.br_blockcount = count; in xfs_bmap_update_finish_item()
542 irec.br_blockcount = count; in xfs_bui_recover()
Dxfs_attr_inactive.c74 map.br_blockcount); in xfs_attr3_leaf_freextent()
89 tblkno += map.br_blockcount; in xfs_attr3_leaf_freextent()
90 tblkcnt -= map.br_blockcount; in xfs_attr3_leaf_freextent()
Dxfs_symlink.c53 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_readlink_bmap_ilocked()
291 byte_cnt = XFS_FSB_TO_B(mp, mval[n].br_blockcount); in xfs_symlink()
437 XFS_FSB_TO_BB(mp, mval[i].br_blockcount), 0); in xfs_inactive_symlink_rmt()
Dxfs_refcount_item.c555 irec.br_blockcount = new_len; in xfs_cui_recover()
566 irec.br_blockcount); in xfs_cui_recover()
571 irec.br_blockcount); in xfs_cui_recover()
Dxfs_dir2_readdir.c296 if (map.br_blockcount < geo->fsbcount && in xfs_dir2_leaf_readbuf()
308 next_ra < map.br_startoff + map.br_blockcount) { in xfs_dir2_leaf_readbuf()
Dxfs_rmap_item.c402 map->me_len = rmap->ri_bmap.br_blockcount; in xfs_rmap_update_log_item()
434 rmap->ri_bmap.br_blockcount, in xfs_rmap_update_finish_item()
Dxfs_qm.c1004 ASSERT(map[i].br_blockcount); in xfs_qm_reset_dqcounts_buf()
1007 lblkno += map[i].br_blockcount; in xfs_qm_reset_dqcounts_buf()
1019 rablkcnt = map[i+1].br_blockcount; in xfs_qm_reset_dqcounts_buf()
1035 map[i].br_blockcount, in xfs_qm_reset_dqcounts_buf()
Dxfs_dquot.c312 ASSERT(map.br_blockcount == XFS_DQUOT_CLUSTER_SIZE_FSB); in xfs_dquot_disk_alloc()
406 ASSERT(map.br_blockcount >= 1); in xfs_dquot_disk_read()
Dxfs_rtalloc.c812 bno < map.br_startoff + map.br_blockcount; in xfs_growfs_rt_alloc()
848 oblocks = map.br_startoff + map.br_blockcount; in xfs_growfs_rt_alloc()
Dxfs_trace.h242 __entry->blockcount = r.br_blockcount;
1250 __entry->blockcount = irec ? irec->br_blockcount : 0;
3057 __entry->len = irec->br_blockcount;
/Linux-v5.4/fs/xfs/scrub/
Dbmap.c171 agbno + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap()
184 irec->br_startoff + irec->br_blockcount > rmap_end) in xchk_bmap_xref_rmap()
223 irec->br_blockcount); in xchk_bmap_rt_iextent_xref()
241 len = irec->br_blockcount; in xchk_bmap_iextent_xref()
258 irec->br_blockcount); in xchk_bmap_iextent_xref()
262 irec->br_blockcount); in xchk_bmap_iextent_xref()
289 off = irec->br_startoff + irec->br_blockcount - 1; in xchk_bmap_dirattr_extent()
329 if (irec->br_blockcount > MAXEXTLEN) in xchk_bmap_iextent()
332 if (irec->br_startblock + irec->br_blockcount <= irec->br_startblock) in xchk_bmap_iextent()
335 end = irec->br_startblock + irec->br_blockcount - 1; in xchk_bmap_iextent()
[all …]
Ddir.c664 got.br_blockcount != args.geo->fsbcount)) { in xchk_directory_blocks()
687 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
694 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
705 got.br_blockcount == args.geo->fsbcount && in xchk_directory_blocks()
751 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
758 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
Dquota.c213 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork()

12