Home
last modified time | relevance | path

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

12

/openbmc/linux/fs/xfs/scrub/
H A Dbmap.c142 offset = irec->br_startoff; in xchk_bmap_get_rmap()
161 irec->br_startoff); in xchk_bmap_get_rmap()
189 irec->br_startoff); in xchk_bmap_xref_rmap()
194 irec->br_startoff); in xchk_bmap_xref_rmap()
197 if (rmap.rm_offset != irec->br_startoff) in xchk_bmap_xref_rmap()
199 irec->br_startoff); in xchk_bmap_xref_rmap()
202 if (rmap_end != irec->br_startoff + irec->br_blockcount) in xchk_bmap_xref_rmap()
204 irec->br_startoff); in xchk_bmap_xref_rmap()
209 irec->br_startoff); in xchk_bmap_xref_rmap()
221 irec->br_startoff); in xchk_bmap_xref_rmap()
[all …]
H A Ddir.c657 if (got.br_startoff >= leaf_lblk) in xchk_directory_blocks()
671 for (lblk = roundup((xfs_dablk_t)got.br_startoff, in xchk_directory_blocks()
673 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
681 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
691 got.br_startoff == leaf_lblk && in xchk_directory_blocks()
715 lblk = got.br_startoff; in xchk_directory_blocks()
736 for (lblk = roundup((xfs_dablk_t)got.br_startoff, in xchk_directory_blocks()
738 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
745 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
H A Dquota.c205 irec.br_startoff > max_dqid_off || in xchk_quota_data_fork()
206 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork()
208 irec.br_startoff); in xchk_quota_data_fork()
H A Dreaddir.c171 if (map.br_startoff >= last_da) in xchk_read_leaf_dir_buf()
176 new_off = xfs_dir2_da_to_byte(geo, map.br_startoff); in xchk_read_leaf_dir_buf()
180 return xfs_dir3_data_read(tp, dp, map.br_startoff, 0, bpp); in xchk_read_leaf_dir_buf()
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_bmap.c120 cur->bc_rec.b.br_startoff = 0; in xfs_bmbt_lookup_first()
278 ASSERT(be64_to_cpu(prevp->br_startoff) < in xfs_check_block()
279 be64_to_cpu(keyp->br_startoff)); in xfs_check_block()
498 ASSERT(mval[i].br_startoff >= bno); in xfs_bmap_validate_ret()
500 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret()
503 ASSERT(mval[i].br_startoff < bno + len); in xfs_bmap_validate_ret()
504 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret()
508 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret()
509 mval[i].br_startoff); in xfs_bmap_validate_ret()
703 kp->br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(arp)); in xfs_bmap_extents_to_btree()
[all …]
H A Dxfs_bmap_btree.c70 irec->br_startoff = (l0 & xfs_mask64lo(64 - BMBT_EXNTFLAG_BITLEN)) >> 9; in xfs_bmbt_disk_get_all()
111 ASSERT(!(s->br_startoff & xfs_mask64hi(64-BMBT_STARTOFF_BITLEN))); in xfs_bmbt_disk_set_all()
117 ((xfs_bmbt_rec_base_t)s->br_startoff << 9) | in xfs_bmbt_disk_set_all()
346 key->bmbt.br_startoff = in xfs_bmbt_init_key_from_rec()
355 key->bmbt.br_startoff = cpu_to_be64( in xfs_bmbt_init_high_key_from_rec()
381 return (int64_t)be64_to_cpu(key->bmbt.br_startoff) - in xfs_bmbt_key_diff()
382 cur->bc_rec.b.br_startoff; in xfs_bmbt_key_diff()
392 uint64_t a = be64_to_cpu(k1->bmbt.br_startoff); in xfs_bmbt_diff_two_keys()
393 uint64_t b = be64_to_cpu(k2->bmbt.br_startoff); in xfs_bmbt_diff_two_keys()
395 ASSERT(!mask || mask->bmbt.br_startoff); in xfs_bmbt_diff_two_keys()
[all …]
H A Dxfs_iext_tree.c57 ASSERT((irec->br_startoff & ~XFS_IEXT_STARTOFF_MASK) == 0); in xfs_iext_set()
61 rec->lo = irec->br_startoff & XFS_IEXT_STARTOFF_MASK; in xfs_iext_set()
76 irec->br_startoff = rec->lo & XFS_IEXT_STARTOFF_MASK; in xfs_iext_get()
632 xfs_fileoff_t offset = irec->br_startoff; in xfs_iext_insert()
646 xfs_iext_rec_cmp(cur_rec(cur), irec->br_startoff) != 0); in xfs_iext_insert()
969 gotp->br_startoff <= *end - 1) in xfs_iext_lookup_extent_before()
973 *end = gotp->br_startoff + gotp->br_blockcount; in xfs_iext_lookup_extent_before()
992 if (new->br_startoff != old.br_startoff) { in xfs_iext_update_extent()
993 xfs_iext_update_node(ifp, old.br_startoff, in xfs_iext_update_extent()
994 new->br_startoff, 1, cur->leaf); in xfs_iext_update_extent()
H A Dxfs_types.h164 xfs_fileoff_t br_startoff; /* starting file offset */ member
H A Dxfs_rmap.c2456 ri->ri_bmap.br_startoff, ri->ri_bmap.br_blockcount, in xfs_rmap_finish_one()
2489 ri->ri_bmap.br_startoff); in xfs_rmap_finish_one()
2558 bmap->br_startoff, in __xfs_rmap_add()
2652 bmap.br_startoff = 0; in xfs_rmap_alloc_extent()
2674 bmap.br_startoff = 0; in xfs_rmap_free_extent()
H A Dxfs_da_btree.c2197 b = mapp[mapi - 1].br_startoff + in xfs_da_grow_inode_int()
2209 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int()
2210 mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount != in xfs_da_grow_inode_int()
2551 if (off != irecs[i].br_startoff) in xfs_dabuf_map()
2579 i, irecs[i].br_startoff, in xfs_dabuf_map()
H A Dxfs_attr.c94 return imap.br_startoff == 0 && imap.br_blockcount == 1; in xfs_attr_is_leaf()
H A Dxfs_format.h1711 __be64 br_startoff; /* starting file offset */ member
/openbmc/linux/fs/xfs/
H A Dxfs_reflink.c260 if (got.br_startoff >= offset_fsb + count_fsb) in xfs_reflink_convert_cow_locked()
316 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_find_trim_cow_extent()
327 cmap->br_startoff = offset_fsb + count_fsb; in xfs_find_trim_cow_extent()
328 if (cmap->br_startoff > offset_fsb) { in xfs_find_trim_cow_extent()
329 xfs_trim_extent(imap, imap->br_startoff, in xfs_find_trim_cow_extent()
330 cmap->br_startoff - imap->br_startoff); in xfs_find_trim_cow_extent()
336 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount); in xfs_find_trim_cow_extent()
353 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_reflink_convert_unwritten()
396 resaligned = xfs_aligned_fsb_count(imap->br_startoff, in xfs_reflink_fill_cow_hole()
421 error = xfs_bmapi_write(tp, ip, imap->br_startoff, imap->br_blockcount, in xfs_reflink_fill_cow_hole()
[all …]
H A Dxfs_iomap.c45 (unsigned long long)imap->br_startoff, in xfs_alert_fsblock_zero()
123 iomap->offset = XFS_FSB_TO_B(mp, imap->br_startoff); in xfs_bmbt_to_iomap()
228 aligned_end_fsb >= irec.br_startoff + irec.br_blockcount) in xfs_iomap_eof_align_last_fsb()
434 prev.br_startoff + prev.br_blockcount < offset_fsb) in xfs_iomap_prealloc_size()
446 got.br_startoff + got.br_blockcount != prev.br_startoff || in xfs_iomap_prealloc_size()
758 if (imap->br_startoff > offset_fsb) in imap_spans_range()
760 if (imap->br_startoff + imap->br_blockcount < end_fsb) in imap_spans_range()
820 end_fsb = imap.br_startoff + imap.br_blockcount; in xfs_direct_write_iomap_begin()
877 end_fsb = min(end_fsb, imap.br_startoff + imap.br_blockcount); in xfs_direct_write_iomap_begin()
890 length = XFS_FSB_TO_B(mp, cmap.br_startoff + cmap.br_blockcount); in xfs_direct_write_iomap_begin()
[all …]
H A Dxfs_dir2_readdir.c275 if (map.br_startoff >= last_da) in xfs_dir2_leaf_readbuf()
280 new_off = xfs_dir2_da_to_byte(geo, map.br_startoff); in xfs_dir2_leaf_readbuf()
283 error = xfs_dir3_data_read(args->trans, dp, map.br_startoff, 0, &bp); in xfs_dir2_leaf_readbuf()
296 *ra_blk = map.br_startoff; in xfs_dir2_leaf_readbuf()
297 next_ra = map.br_startoff + geo->fsbcount; in xfs_dir2_leaf_readbuf()
303 if (map.br_startoff >= last_da) in xfs_dir2_leaf_readbuf()
310 next_ra = roundup((xfs_dablk_t)map.br_startoff, geo->fsbcount); in xfs_dir2_leaf_readbuf()
312 next_ra < map.br_startoff + map.br_blockcount) { in xfs_dir2_leaf_readbuf()
H A Dxfs_aops.c296 cow_fsb = imap.br_startoff; in xfs_map_blocks()
320 imap.br_startoff = end_fsb; /* fake a hole past EOF */ in xfs_map_blocks()
325 if (imap.br_startoff > offset_fsb) { in xfs_map_blocks()
326 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks()
327 imap.br_startoff = offset_fsb; in xfs_map_blocks()
339 cow_fsb < imap.br_startoff + imap.br_blockcount) in xfs_map_blocks()
340 imap.br_blockcount = cow_fsb - imap.br_startoff; in xfs_map_blocks()
H A Dxfs_bmap_util.c338 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, got->br_startoff); in xfs_getbmap_report_one()
382 xfs_fileoff_t end = rec->br_startoff + rec->br_blockcount; in xfs_getbmap_next_rec()
387 rec->br_startoff += rec->br_blockcount; in xfs_getbmap_next_rec()
537 if (got.br_startoff > bno) { in xfs_getbmap()
539 got.br_startoff); in xfs_getbmap()
549 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap()
610 while (got.br_startoff + got.br_blockcount > start_fsb) { in xfs_bmap_punch_delalloc_range()
1439 error = xfs_bmapi_read(ip, tirec.br_startoff, in xfs_swap_extent_rmap()
1445 ASSERT(tirec.br_startoff == irec.br_startoff); in xfs_swap_extent_rmap()
1494 tirec.br_startoff += rlen; in xfs_swap_extent_rmap()
H A Dxfs_bmap_item.c330 map->me_startoff = bi->bi_bmap.br_startoff; in xfs_bmap_update_log_item()
545 fake.bi_bmap.br_startoff = map->me_startoff; in xfs_bui_item_recover()
H A Dxfs_rmap_item.c356 map->me_startoff = ri->ri_bmap.br_startoff; in xfs_rmap_update_log_item()
586 fake.ri_bmap.br_startoff = map->me_startoff; in xfs_rui_item_recover()
H A Dxfs_dquot.c730 if (got.br_startoff < start) in xfs_dq_get_next_id()
731 got.br_startoff = start; in xfs_dq_get_next_id()
732 *id = got.br_startoff * mp->m_quotainfo->qi_dqperchunk; in xfs_dq_get_next_id()
H A Dxfs_pnfs.c189 end_fsb = min(end_fsb, imap.br_startoff + in xfs_fs_map_blocks()
H A Dxfs_rtalloc.c855 for (bno = map.br_startoff, fsbno = map.br_startblock; in xfs_growfs_rt_alloc()
856 bno < map.br_startoff + map.br_blockcount; in xfs_growfs_rt_alloc()
893 oblocks = map.br_startoff + map.br_blockcount; in xfs_growfs_rt_alloc()
H A Dxfs_qm.c1029 firstid = (xfs_dqid_t) map[i].br_startoff * in xfs_qm_reset_dqcounts_buf()
H A Dxfs_icache.c1794 got.br_startoff, got.br_blockcount); in xfs_check_delalloc()
H A Dxfs_trace.h386 __entry->startoff = r.br_startoff;
1460 __entry->startoff = irec ? irec->br_startoff : 0;
3367 __entry->lblk = irec->br_startoff;

12