Home
last modified time | relevance | path

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

12

/linux/fs/xfs/scrub/
H A Dbmap.c166 offset = irec->br_startoff; in xchk_bmap_get_rmap()
185 irec->br_startoff); in xchk_bmap_get_rmap()
213 irec->br_startoff); in xchk_bmap_xref_rmap()
218 irec->br_startoff); in xchk_bmap_xref_rmap()
221 if (rmap.rm_offset != irec->br_startoff) in xchk_bmap_xref_rmap()
223 irec->br_startoff); in xchk_bmap_xref_rmap()
226 if (rmap_end != irec->br_startoff + irec->br_blockcount) in xchk_bmap_xref_rmap()
228 irec->br_startoff); in xchk_bmap_xref_rmap()
233 irec->br_startoff); in xchk_bmap_xref_rmap()
245 irec->br_startoff); in xchk_bmap_xref_rmap()
[all …]
H A Ddqiterate.c32 cursor->bmap.br_startoff = NULLFILEOFF; in xchk_dqiter_init()
60 if (cursor->bmap.br_startoff != NULLFILEOFF && in xchk_dquot_iter_revalidate_bmap()
62 cursor->bmap.br_startoff + cursor->bmap.br_blockcount > fileoff) in xchk_dquot_iter_revalidate_bmap()
74 if (cursor->bmap.br_startoff > fileoff) { in xchk_dquot_iter_revalidate_bmap()
75 ASSERT(cursor->bmap.br_startoff == fileoff); in xchk_dquot_iter_revalidate_bmap()
100 fileoff = cursor->bmap.br_startoff + cursor->bmap.br_blockcount; in xchk_dquot_iter_advance_bmap()
117 if (cursor->bmap.br_startoff > fileoff) { in xchk_dquot_iter_advance_bmap()
118 ASSERT(cursor->bmap.br_startoff == fileoff); in xchk_dquot_iter_advance_bmap()
123 next_id = cursor->bmap.br_startoff * qi->qi_dqperchunk; in xchk_dquot_iter_advance_bmap()
H A Dcow_repair.c94 startoff = xc->irec.br_startoff + in xrep_cow_mark_file_range()
373 if (got->br_startoff > startoff) in xrep_cow_find_mapping()
426 new.br_startoff += repl->len; in xrep_cow_replace_mapping()
431 new.br_startoff = got->br_startoff; in xrep_cow_replace_mapping()
463 got.br_startoff + got.br_blockcount); in xrep_cow_replace_range()
H A Dquota_repair.c423 if (irec.br_startoff > max_dqid_off || in xrep_quota_data_fork()
424 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xrep_quota_data_fork()
440 irec.br_startoff, irec.br_blockcount, in xrep_quota_data_fork()
444 ASSERT(nrec.br_startoff == irec.br_startoff); in xrep_quota_data_fork()
482 for (fsbno = irec.br_startblock, off = irec.br_startoff; in xrep_quota_data_fork()
H A Dquota.c283 irec.br_startoff > max_dqid_off || in xchk_quota_data_fork()
284 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork()
286 irec.br_startoff); in xchk_quota_data_fork()
H A Dreap.c710 xfs_rmap_ino_owner(&oinfo, ip->i_ino, whichfork, imap->br_startoff); in xreap_bmapi_select()
808 off = imap->br_startoff + imap->br_blockcount; in xreap_bmapi_binval()
826 off = hmap.br_startoff + hmap.br_blockcount; in xreap_bmapi_binval()
828 scan_blocks = off - imap->br_startoff; in xreap_bmapi_binval()
1046 off = imap.br_startoff + imap.br_blockcount; in xrep_reap_ifork()
H A Dbmap_repair.c129 .br_startoff = startoff, in xrep_bmap_from_rmap()
172 irec.br_startoff += irec.br_blockcount; in xrep_bmap_from_rmap()
337 if (irec.br_startoff < next_off) in xrep_bmap_sort_records()
340 next_off = irec.br_startoff + irec.br_blockcount; in xrep_bmap_sort_records()
H A Dinode_repair.c862 fileoff = be64_to_cpu(fkp->br_startoff); in xrep_dinode_bad_bmbt_fork()
1686 off = got.br_startoff + got.br_blockcount; in xrep_inode_blockdir_size()
H A Dtempfile.c315 for (; off < end; off = map.br_startoff + map.br_blockcount) { in xrep_tempfile_prealloc()
H A Dtrace.h474 __entry->startoff = cursor->bmap.br_startoff;
2125 __entry->lblk = irec->br_startoff;
2580 __entry->startoff = irec->br_startoff;
2740 __entry->lblk = irec->br_startoff;
2780 __entry->fileoff = irec->br_startoff;
/linux/fs/xfs/libxfs/
H A Dxfs_bmap.c124 cur->bc_rec.b.br_startoff = 0; in xfs_bmbt_lookup_first()
304 ASSERT(be64_to_cpu(prevp->br_startoff) < in xfs_check_block()
305 be64_to_cpu(keyp->br_startoff)); in xfs_check_block()
525 ASSERT(mval[i].br_startoff >= bno); in xfs_bmap_validate_ret()
527 ASSERT(mval[i].br_startoff + mval[i].br_blockcount <= in xfs_bmap_validate_ret()
530 ASSERT(mval[i].br_startoff < bno + len); in xfs_bmap_validate_ret()
531 ASSERT(mval[i].br_startoff + mval[i].br_blockcount > in xfs_bmap_validate_ret()
535 mval[i - 1].br_startoff + mval[i - 1].br_blockcount == in xfs_bmap_validate_ret()
536 mval[i].br_startoff); in xfs_bmap_validate_ret()
729 kp->br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(arp)); in xfs_bmap_extents_to_btree()
[all …]
H A Dxfs_bmap_btree.c85 irec->br_startoff = (l0 & xfs_mask64lo(64 - BMBT_EXNTFLAG_BITLEN)) >> 9; in xfs_bmbt_disk_get_all()
126 ASSERT(!(s->br_startoff & xfs_mask64hi(64-BMBT_STARTOFF_BITLEN))); in xfs_bmbt_disk_set_all()
132 ((xfs_bmbt_rec_base_t)s->br_startoff << 9) | in xfs_bmbt_disk_set_all()
350 key->bmbt.br_startoff = in xfs_bmbt_init_key_from_rec()
359 key->bmbt.br_startoff = cpu_to_be64( in xfs_bmbt_init_high_key_from_rec()
377 return (int64_t)be64_to_cpu(key->bmbt.br_startoff) - in xfs_bmbt_key_diff()
378 cur->bc_rec.b.br_startoff; in xfs_bmbt_key_diff()
388 uint64_t a = be64_to_cpu(k1->bmbt.br_startoff); in xfs_bmbt_diff_two_keys()
389 uint64_t b = be64_to_cpu(k2->bmbt.br_startoff); in xfs_bmbt_diff_two_keys()
391 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()
638 xfs_fileoff_t offset = irec->br_startoff; in xfs_iext_insert_raw()
652 xfs_iext_rec_cmp(cur_rec(cur), irec->br_startoff) != 0); in xfs_iext_insert_raw()
986 gotp->br_startoff <= *end - 1) in xfs_iext_lookup_extent_before()
990 *end = gotp->br_startoff + gotp->br_blockcount; in xfs_iext_lookup_extent_before()
1009 if (new->br_startoff != old.br_startoff) { in xfs_iext_update_extent()
1010 xfs_iext_update_node(ifp, old.br_startoff, in xfs_iext_update_extent()
1011 new->br_startoff, 1, cur->leaf); in xfs_iext_update_extent()
H A Dxfs_types.h152 xfs_fileoff_t br_startoff; /* starting file offset */ member
H A Dxfs_da_btree.c2337 b = mapp[mapi - 1].br_startoff + in xfs_da_grow_inode_int()
2349 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int()
2350 mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount != in xfs_da_grow_inode_int()
2732 if (off != irecs[i].br_startoff) in xfs_dabuf_map()
2761 i, irecs[i].br_startoff, in xfs_dabuf_map()
H A Dxfs_rmap.c2614 ri->ri_bmap.br_startoff); in xfs_rmap_finish_one()
2742 bmap.br_startoff = 0; in xfs_rmap_alloc_extent()
2764 bmap.br_startoff = 0; in xfs_rmap_free_extent()
/linux/fs/xfs/
H A Dxfs_reflink.c261 if (got.br_startoff >= offset_fsb + count_fsb) in xfs_reflink_convert_cow_locked()
317 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_find_trim_cow_extent()
328 cmap->br_startoff = offset_fsb + count_fsb; in xfs_find_trim_cow_extent()
329 if (cmap->br_startoff > offset_fsb) { in xfs_find_trim_cow_extent()
330 xfs_trim_extent(imap, imap->br_startoff, in xfs_find_trim_cow_extent()
331 cmap->br_startoff - imap->br_startoff); in xfs_find_trim_cow_extent()
337 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount); in xfs_find_trim_cow_extent()
354 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_reflink_convert_unwritten()
397 resaligned = xfs_aligned_fsb_count(imap->br_startoff, in xfs_reflink_fill_cow_hole()
422 error = xfs_bmapi_write(tp, ip, imap->br_startoff, imap->br_blockcount, in xfs_reflink_fill_cow_hole()
[all …]
H A Dxfs_iomap.c47 (unsigned long long)imap->br_startoff, in xfs_alert_fsblock_zero()
128 iomap->offset = XFS_FSB_TO_B(mp, imap->br_startoff); in xfs_bmbt_to_iomap()
233 aligned_end_fsb >= irec.br_startoff + irec.br_blockcount) in xfs_iomap_eof_align_last_fsb()
462 prev.br_startoff + prev.br_blockcount < offset_fsb) in xfs_iomap_prealloc_size()
474 got.br_startoff + got.br_blockcount != prev.br_startoff || in xfs_iomap_prealloc_size()
757 if (imap->br_startoff > offset_fsb) in imap_spans_range()
759 if (imap->br_startoff + imap->br_blockcount < end_fsb) in imap_spans_range()
839 end_fsb = imap.br_startoff + imap.br_blockcount; in xfs_direct_write_iomap_begin()
896 end_fsb = min(end_fsb, imap.br_startoff + imap.br_blockcount); in xfs_direct_write_iomap_begin()
909 length = XFS_FSB_TO_B(mp, cmap.br_startoff + cmap.br_blockcount); in xfs_direct_write_iomap_begin()
[all …]
H A Dxfs_aops.c297 cow_fsb = imap.br_startoff; in xfs_map_blocks()
321 imap.br_startoff = end_fsb; /* fake a hole past EOF */ in xfs_map_blocks()
326 if (imap.br_startoff > offset_fsb) { in xfs_map_blocks()
327 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks()
328 imap.br_startoff = offset_fsb; in xfs_map_blocks()
340 cow_fsb < imap.br_startoff + imap.br_blockcount) in xfs_map_blocks()
341 imap.br_blockcount = cow_fsb - imap.br_startoff; in xfs_map_blocks()
H A Dxfs_bmap_util.c191 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, got->br_startoff); in xfs_getbmap_report_one()
235 xfs_fileoff_t end = rec->br_startoff + rec->br_blockcount; in xfs_getbmap_next_rec()
240 rec->br_startoff += rec->br_blockcount; in xfs_getbmap_next_rec()
389 if (got.br_startoff > bno) { in xfs_getbmap()
391 got.br_startoff); in xfs_getbmap()
401 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap()
462 while (got.br_startoff + got.br_blockcount > start_fsb) { in xfs_bmap_punch_delalloc_range()
1283 error = xfs_bmapi_read(ip, tirec.br_startoff, in xfs_swap_extent_rmap()
1289 ASSERT(tirec.br_startoff == irec.br_startoff); in xfs_swap_extent_rmap()
1332 tirec.br_startoff += rlen; in xfs_swap_extent_rmap()
H A Dxfs_rmap_item.c269 map->me_startoff = ri->ri_bmap.br_startoff; in xfs_rmap_update_log_item()
493 ri->ri_bmap.br_startoff = map->me_startoff; in xfs_rui_recover_work()
H A Dxfs_bmap_item.c263 map->me_startoff = bi->bi_bmap.br_startoff; in xfs_bmap_update_log_item()
474 bi->bi_bmap.br_startoff = map->me_startoff; in xfs_bui_recover_work()
H A Dxfs_pnfs.c189 end_fsb = min(end_fsb, imap.br_startoff + in xfs_fs_map_blocks()
H A Dxfs_inode.c1106 for (off = round_up(got.br_startoff, geo->fsbcount); in xfs_inactive_dir()
1107 off < got.br_startoff + got.br_blockcount; in xfs_inactive_dir()
1113 fsbno = (off - got.br_startoff) + got.br_startblock; in xfs_inactive_dir()
H A Dxfs_trace.h404 __entry->startoff = r.br_startoff;
1479 __entry->startoff = irec ? irec->br_startoff : 0;
2988 __entry->l_loff = ri->ri_bmap.br_startoff;
3065 __entry->l_loff = bi->bi_bmap.br_startoff;
3635 __entry->lblk = irec->br_startoff;
5186 __entry->loff = left->br_startoff;
5189 __entry->coff = curr->br_startoff;
5192 __entry->noff = new->br_startoff;
5195 __entry->roff = right->br_startoff;

12