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.c176 offset = irec->br_startoff; in xchk_bmap_get_rmap()
195 irec->br_startoff); in xchk_bmap_get_rmap()
223 irec->br_startoff); in xchk_bmap_xref_rmap()
228 irec->br_startoff); in xchk_bmap_xref_rmap()
231 if (rmap.rm_offset != irec->br_startoff) in xchk_bmap_xref_rmap()
233 irec->br_startoff); in xchk_bmap_xref_rmap()
236 if (rmap_end != irec->br_startoff + irec->br_blockcount) in xchk_bmap_xref_rmap()
238 irec->br_startoff); in xchk_bmap_xref_rmap()
243 irec->br_startoff); in xchk_bmap_xref_rmap()
255 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 Dquota_repair.c428 if (irec.br_startoff > max_dqid_off || in xrep_quota_data_fork()
429 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xrep_quota_data_fork()
445 irec.br_startoff, irec.br_blockcount, in xrep_quota_data_fork()
449 ASSERT(nrec.br_startoff == irec.br_startoff); in xrep_quota_data_fork()
486 for (fsbno = irec.br_startblock, off = irec.br_startoff; in xrep_quota_data_fork()
H A Dcow_repair.c96 startoff = xc->irec.br_startoff + in xrep_cow_mark_file_range()
508 if (got->br_startoff > badoff) in xrep_cow_find_mapping()
517 if (got->br_startoff < badoff) { in xrep_cow_find_mapping()
518 const int64_t delta = badoff - got->br_startoff; in xrep_cow_find_mapping()
521 rep->br_startoff += delta; in xrep_cow_find_mapping()
525 if (got->br_startoff + got->br_blockcount > badoff + badlen) { in xrep_cow_find_mapping()
526 const int64_t delta = (got->br_startoff + got->br_blockcount) - in xrep_cow_find_mapping()
H A Ddir.c833 if (got.br_startoff >= leaf_lblk) in xchk_directory_blocks()
847 for (lblk = roundup((xfs_dablk_t)got.br_startoff, in xchk_directory_blocks()
849 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
857 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
867 got.br_startoff == leaf_lblk && in xchk_directory_blocks()
891 lblk = got.br_startoff; in xchk_directory_blocks()
912 for (lblk = roundup((xfs_dablk_t)got.br_startoff, in xchk_directory_blocks()
914 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
921 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
H A Dquota.c289 irec.br_startoff > max_dqid_off || in xchk_quota_data_fork()
290 irec.br_startoff + irec.br_blockcount - 1 > max_dqid_off) { in xchk_quota_data_fork()
292 irec.br_startoff); in xchk_quota_data_fork()
H A Drtbitmap_repair.c442 off = map.br_startoff + map.br_blockcount; in xrep_rtbitmap_data_mappings()
461 error = xfs_bmapi_write(sc->tp, sc->ip, map.br_startoff, in xrep_rtbitmap_data_mappings()
473 off = map.br_startoff + map.br_blockcount; in xrep_rtbitmap_data_mappings()
H A Dreap.c1252 xfs_rmap_inode_owner(&oinfo, rs->ip, rs->whichfork, imap->br_startoff); in xreap_bmapi_select()
1348 off = imap->br_startoff + imap->br_blockcount; in xreap_bmapi_binval()
1366 off = hmap.br_startoff + hmap.br_blockcount; in xreap_bmapi_binval()
1368 scan_blocks = off - imap->br_startoff; in xreap_bmapi_binval()
1690 off = imap.br_startoff + imap.br_blockcount; in xrep_reap_ifork()
H A Dattr_repair.c900 offset = got.br_startoff + got.br_blockcount) { in xrep_xattr_recover()
911 for (dabno = round_up(got.br_startoff, geo->fsbcount); in xrep_xattr_recover()
912 dabno < got.br_startoff + got.br_blockcount; in xrep_xattr_recover()
914 xfs_fileoff_t curr_offset = dabno - got.br_startoff; in xrep_xattr_recover()
989 i++, irec.br_startoff, in xrep_xattr_fork_remove()
H A Ddir_repair.c979 offset = got.br_startoff + got.br_blockcount) { in xrep_dir_recover()
990 for (dabno = round_up(got.br_startoff, geo->fsbcount); in xrep_dir_recover()
991 dabno < got.br_startoff + got.br_blockcount; in xrep_dir_recover()
H A Drmap_repair.c358 rec->br_startoff == accum->rm_offset + accum->rm_blockcount && in xrep_rmap_visit_bmbt()
372 accum->rm_offset = rec->br_startoff; in xrep_rmap_visit_bmbt()
H A Dinode_repair.c935 fileoff = be64_to_cpu(fkp->br_startoff); in xrep_dinode_bad_bmbt_fork()
1871 off = got.br_startoff + got.br_blockcount; in xrep_inode_blockdir_size()
/linux/fs/xfs/
H A Dxfs_iomap.c50 (unsigned long long)imap->br_startoff, in xfs_alert_fsblock_zero()
145 iomap->offset = XFS_FSB_TO_B(mp, imap->br_startoff); in xfs_bmbt_to_iomap()
260 aligned_end_fsb >= irec.br_startoff + irec.br_blockcount) in xfs_iomap_eof_align_last_fsb()
513 prev.br_startoff + prev.br_blockcount < offset_fsb) in xfs_iomap_prealloc_size()
525 got.br_startoff + got.br_blockcount != prev.br_startoff || in xfs_iomap_prealloc_size()
808 if (imap->br_startoff > offset_fsb) in imap_spans_range()
810 if (imap->br_startoff + imap->br_blockcount < end_fsb) in imap_spans_range()
935 end_fsb = imap.br_startoff + imap.br_blockcount; in xfs_direct_write_iomap_begin()
1009 end_fsb = min(end_fsb, imap.br_startoff + imap.br_blockcount); in xfs_direct_write_iomap_begin()
1022 length = XFS_FSB_TO_B(mp, cmap.br_startoff + cmap.br_blockcount); in xfs_direct_write_iomap_begin()
[all …]
H A Dxfs_reflink.c312 if (got.br_startoff >= offset_fsb + count_fsb) in xfs_reflink_convert_cow_locked()
368 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_find_trim_cow_extent()
379 cmap->br_startoff = offset_fsb + count_fsb; in xfs_find_trim_cow_extent()
380 if (cmap->br_startoff > offset_fsb) { in xfs_find_trim_cow_extent()
381 xfs_trim_extent(imap, imap->br_startoff, in xfs_find_trim_cow_extent()
382 cmap->br_startoff - imap->br_startoff); in xfs_find_trim_cow_extent()
388 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount); in xfs_find_trim_cow_extent()
405 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_reflink_convert_unwritten()
449 resaligned = xfs_aligned_fsb_count(imap->br_startoff, in xfs_reflink_fill_cow_hole()
479 error = xfs_bmapi_read(ip, imap->br_startoff, in xfs_reflink_fill_cow_hole()
[all …]
H A Dxfs_aops.c218 cow_fsb = imap.br_startoff; in xfs_map_blocks()
242 imap.br_startoff = end_fsb; /* fake a hole past EOF */ in xfs_map_blocks()
247 if (imap.br_startoff > offset_fsb) { in xfs_map_blocks()
248 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks()
249 imap.br_startoff = offset_fsb; in xfs_map_blocks()
261 cow_fsb < imap.br_startoff + imap.br_blockcount) in xfs_map_blocks()
262 imap.br_blockcount = cow_fsb - imap.br_startoff; in xfs_map_blocks()
438 imap.br_startoff = end_fsb; /* fake a hole past EOF */ in xfs_zoned_map_blocks()
439 if (imap.br_startoff > offset_fsb) { in xfs_zoned_map_blocks()
440 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_zoned_map_blocks()
[all …]
H A Dxfs_bmap_util.c184 p->bmv_offset = XFS_FSB_TO_BB(ip->i_mount, got->br_startoff); in xfs_getbmap_report_one()
228 xfs_fileoff_t end = rec->br_startoff + rec->br_blockcount; in xfs_getbmap_next_rec()
233 rec->br_startoff += rec->br_blockcount; in xfs_getbmap_next_rec()
382 if (got.br_startoff > bno) { in xfs_getbmap()
384 got.br_startoff); in xfs_getbmap()
394 bno = got.br_startoff + got.br_blockcount; in xfs_getbmap()
456 while (got.br_startoff + got.br_blockcount > start_fsb) { in xfs_bmap_punch_delalloc_range()
1327 error = xfs_bmapi_read(ip, tirec.br_startoff, in xfs_swap_extent_rmap()
1333 ASSERT(tirec.br_startoff == irec.br_startoff); in xfs_swap_extent_rmap()
[all...]
H A Dxfs_zone_alloc.c243 error = xfs_bmapi_read(ip, new->br_startoff, new->br_blockcount, &data, in xfs_zoned_map_extent()
329 .br_startoff = XFS_B_TO_FSBT(mp, offset), in xfs_zoned_end_io()
341 while (new.br_startoff < end_fsb) { in xfs_zoned_end_io()
342 new.br_blockcount = end_fsb - new.br_startoff; in xfs_zoned_end_io()
360 new.br_startoff += new.br_blockcount; in xfs_zoned_end_io()
H A Dxfs_bmap_item.c271 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_dquot.c789 if (got.br_startoff < start) in xfs_dq_get_next_id()
790 got.br_startoff = start; in xfs_dq_get_next_id()
791 *id = got.br_startoff * mp->m_quotainfo->qi_dqperchunk; in xfs_dq_get_next_id()
H A Dxfs_rmap_item.c293 map->me_startoff = ri->ri_bmap.br_startoff; in xfs_rmap_update_log_item()
551 ri->ri_bmap.br_startoff = map->me_startoff; in xfs_rui_recover_work()
H A Dxfs_inode.c1124 for (off = round_up(got.br_startoff, geo->fsbcount); in xfs_inactive_dir()
1125 off < got.br_startoff + got.br_blockcount; in xfs_inactive_dir()
1131 fsbno = (off - got.br_startoff) + got.br_startblock; in xfs_inactive_dir()
H A Dxfs_trace.h694 __entry->startoff = r.br_startoff;
1832 __entry->startoff = irec ? irec->br_startoff : 0;
3393 __entry->l_loff = ri->ri_bmap.br_startoff;
3475 __entry->l_loff = bi->bi_bmap.br_startoff;
4061 __entry->lblk = irec->br_startoff;
5587 __entry->loff = left->br_startoff;
5590 __entry->coff = curr->br_startoff;
5593 __entry->noff = new->br_startoff;
5596 __entry->roff = right->br_startoff;
6461 __entry->startoff = got->br_startoff;
[all …]
/linux/fs/xfs/libxfs/
H A Dxfs_exchmaps.c96 len = min(XFS_FSB_TO_B(mp, imap->br_startoff + imap->br_blockcount), in xfs_exchmaps_update_size()
235 if (!isaligned_64(irec->br_startoff, mp->m_sb.sb_rextsize)) { in xfs_exchmaps_can_skip_mapping()
238 new_end = roundup_64(irec->br_startoff, mp->m_sb.sb_rextsize); in xfs_exchmaps_can_skip_mapping()
240 new_end - irec->br_startoff); in xfs_exchmaps_can_skip_mapping()
258 new_end = rounddown_64(irec->br_startoff + irec->br_blockcount, in xfs_exchmaps_can_skip_mapping()
260 irec->br_blockcount = new_end - irec->br_startoff; in xfs_exchmaps_can_skip_mapping()
300 irec1->br_startoff != xmi->xmi_startoff1) { in xfs_exchmaps_find_mappings()
325 irec2->br_startoff != xmi->xmi_startoff2) { in xfs_exchmaps_find_mappings()
399 swap(irec1->br_startoff, irec2->br_startoff); in xfs_exchmaps_one_step()
[all...]
H A Dxfs_types.h156 xfs_fileoff_t br_startoff; /* starting file offset */ member
H A Dxfs_da_btree.c2367 b = mapp[mapi - 1].br_startoff + in xfs_da_grow_inode_int()
2379 if (got != count || mapp[0].br_startoff != *bno || in xfs_da_grow_inode_int()
2380 mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount != in xfs_da_grow_inode_int()
2759 if (off != irecs[i].br_startoff) in xfs_dabuf_map()
2788 i, irecs[i].br_startoff, in xfs_dabuf_map()

12