| /fs/xfs/scrub/ |
| A D | bmap.c | 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() 233 irec->br_startoff); 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() 484 if (irec->br_startoff < info->prev_rec.br_startoff + in xchk_bmap_iextent() 571 irec.br_startoff != iext_irec.br_startoff || in xchk_bmapbt_rec() 886 if (irec->br_startoff < info->prev_rec.br_startoff + in xchk_bmap_iextent_delalloc() [all …]
|
| A D | dqiterate.c | 32 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()
|
| A D | quota_repair.c | 423 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()
|
| A D | cow_repair.c | 101 startoff = xc->irec.br_startoff + in xrep_cow_mark_file_range() 488 if (got->br_startoff > startoff) in xrep_cow_find_mapping() 541 new.br_startoff += repl->len; in xrep_cow_replace_mapping() 546 new.br_startoff = got->br_startoff; in xrep_cow_replace_mapping() 578 got.br_startoff + got.br_blockcount); in xrep_cow_replace_range()
|
| A D | dir.c | 828 if (got.br_startoff >= leaf_lblk) in xchk_directory_blocks() 842 for (lblk = roundup((xfs_dablk_t)got.br_startoff, in xchk_directory_blocks() 844 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks() 852 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks() 862 got.br_startoff == leaf_lblk && in xchk_directory_blocks() 886 lblk = got.br_startoff; in xchk_directory_blocks() 907 for (lblk = roundup((xfs_dablk_t)got.br_startoff, in xchk_directory_blocks() 909 lblk < got.br_startoff + got.br_blockcount; in xchk_directory_blocks() 916 dabno = got.br_startoff + got.br_blockcount; in xchk_directory_blocks()
|
| A D | quota.c | 289 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()
|
| A D | readdir.c | 170 if (map.br_startoff >= last_da) in xchk_read_leaf_dir_buf() 175 new_off = xfs_dir2_da_to_byte(geo, map.br_startoff); in xchk_read_leaf_dir_buf() 179 return xfs_dir3_data_read(tp, dp, dp->i_ino, map.br_startoff, 0, bpp); in xchk_read_leaf_dir_buf()
|
| A D | bmap_repair.c | 138 .br_startoff = startoff, in xrep_bmap_from_rmap() 181 irec.br_startoff += irec.br_blockcount; in xrep_bmap_from_rmap() 344 if (irec.br_startoff < next_off) in xrep_bmap_sort_records() 347 next_off = irec.br_startoff + irec.br_blockcount; in xrep_bmap_sort_records()
|
| A D | reap.c | 978 xfs_rmap_ino_owner(&oinfo, ip->i_ino, whichfork, imap->br_startoff); in xreap_bmapi_select() 1076 off = imap->br_startoff + imap->br_blockcount; in xreap_bmapi_binval() 1094 off = hmap.br_startoff + hmap.br_blockcount; in xreap_bmapi_binval() 1096 scan_blocks = off - imap->br_startoff; in xreap_bmapi_binval() 1315 off = imap.br_startoff + imap.br_blockcount; in xrep_reap_ifork()
|
| A D | rtbitmap_repair.c | 439 off = map.br_startoff + map.br_blockcount; in xrep_rtbitmap_data_mappings() 458 error = xfs_bmapi_write(sc->tp, sc->ip, map.br_startoff, in xrep_rtbitmap_data_mappings() 470 off = map.br_startoff + map.br_blockcount; in xrep_rtbitmap_data_mappings()
|
| A D | attr_repair.c | 900 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()
|
| A D | rtrmap_repair.c | 242 rec->br_startoff == accum->rm_offset + accum->rm_blockcount && in xrep_rtrmap_visit_bmbt() 256 accum->rm_offset = rec->br_startoff; in xrep_rtrmap_visit_bmbt()
|
| /fs/xfs/libxfs/ |
| A D | xfs_bmap.c | 1483 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_delay_real() 1493 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_delay_real() 1793 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_delay_real() 2057 ASSERT(PREV.br_startoff <= new->br_startoff); in xfs_bmap_add_extent_unwritten_real() 2064 if (PREV.br_startoff == new->br_startoff) in xfs_bmap_add_extent_unwritten_real() 2380 RIGHT.br_startoff = new->br_startoff; in xfs_bmap_add_extent_unwritten_real() 2734 right.br_startoff = new->br_startoff; in xfs_bmap_add_extent_hole_real() 4709 if (got->br_startoff == del->br_startoff) in xfs_bmap_del_extent_delay() 4837 if (got->br_startoff == del->br_startoff) in xfs_bmap_del_extent_cow() 4951 ASSERT(got.br_startoff <= del->br_startoff); in xfs_bmap_del_extent_real() [all …]
|
| A D | xfs_bmap_btree.c | 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() 378 cur->bc_rec.b.br_startoff); in xfs_bmbt_cmp_key_with_cur() 388 ASSERT(!mask || mask->bmbt.br_startoff); in xfs_bmbt_cmp_two_keys() 390 return cmp_int(be64_to_cpu(k1->bmbt.br_startoff), in xfs_bmbt_cmp_two_keys() 391 be64_to_cpu(k2->bmbt.br_startoff)); in xfs_bmbt_cmp_two_keys() 479 return be64_to_cpu(k1->bmbt.br_startoff) < in xfs_bmbt_keys_inorder() 480 be64_to_cpu(k2->bmbt.br_startoff); in xfs_bmbt_keys_inorder() 501 ASSERT(!mask || mask->bmbt.br_startoff); in xfs_bmbt_keys_contiguous() [all …]
|
| A D | xfs_exchmaps.c | 237 if (!isaligned_64(irec->br_startoff, mp->m_sb.sb_rextsize)) { in xfs_exchmaps_can_skip_mapping() 240 new_end = roundup_64(irec->br_startoff, mp->m_sb.sb_rextsize); in xfs_exchmaps_can_skip_mapping() 242 new_end - irec->br_startoff); in xfs_exchmaps_can_skip_mapping() 260 new_end = rounddown_64(irec->br_startoff + irec->br_blockcount, in xfs_exchmaps_can_skip_mapping() 262 irec->br_blockcount = new_end - irec->br_startoff; in xfs_exchmaps_can_skip_mapping() 302 irec1->br_startoff != xmi->xmi_startoff1) { in xfs_exchmaps_find_mappings() 327 irec2->br_startoff != xmi->xmi_startoff2) { in xfs_exchmaps_find_mappings() 401 swap(irec1->br_startoff, irec2->br_startoff); in xfs_exchmaps_one_step() 737 if (b1->br_startoff + b1->br_blockcount == b2->br_startoff && in xmi_can_merge() 915 off = irec->br_startoff + irec->br_blockcount; in xmi_next() [all …]
|
| A D | xfs_iext_tree.c | 57 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()
|
| A D | xfs_types.h | 156 xfs_fileoff_t br_startoff; /* starting file offset */ member
|
| /fs/xfs/ |
| A D | xfs_iomap.c | 513 got.br_startoff + got.br_blockcount != prev.br_startoff || in xfs_iomap_prealloc_size() 1133 cmap.br_startoff = end_fsb; in xfs_atomic_write_cow_iomap_begin() 1139 end_fsb = cmap.br_startoff; in xfs_atomic_write_cow_iomap_begin() 1161 cmap.br_startoff = end_fsb; in xfs_atomic_write_cow_iomap_begin() 1283 left.br_startoff + left.br_blockcount == new->br_startoff && in xfs_bmap_add_extent_hole_delay() 1288 new->br_startoff + new->br_blockcount == right.br_startoff && in xfs_bmap_add_extent_hole_delay() 1351 right.br_startoff = new->br_startoff; in xfs_bmap_add_extent_hole_delay() 1478 got->br_startoff = aoff; in xfs_bmapi_reserve_delalloc() 1594 smap.br_startoff); in xfs_zoned_buffered_write_iomap_begin() 1614 got.br_startoff = end_fsb; in xfs_zoned_buffered_write_iomap_begin() [all …]
|
| A D | xfs_reflink.c | 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() 552 } while (cmap->br_startoff + cmap->br_blockcount <= imap->br_startoff); in xfs_reflink_fill_delalloc() 593 if (cmap->br_startoff > imap->br_startoff) in xfs_reflink_allocate_cow() 808 got.br_startoff >= end_fsb) { in xfs_reflink_end_cow_extent_locked() 822 got.br_startoff >= end_fsb) { in xfs_reflink_end_cow_extent_locked() 1381 ASSERT(nimaps == 1 && smap.br_startoff == dmap->br_startoff); in xfs_reflink_remap_extent() [all …]
|
| A D | xfs_aops.c | 379 cow_fsb = imap.br_startoff; in xfs_map_blocks() 403 imap.br_startoff = end_fsb; /* fake a hole past EOF */ in xfs_map_blocks() 408 if (imap.br_startoff > offset_fsb) { in xfs_map_blocks() 409 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks() 410 imap.br_startoff = offset_fsb; in xfs_map_blocks() 422 cow_fsb < imap.br_startoff + imap.br_blockcount) in xfs_map_blocks() 423 imap.br_blockcount = cow_fsb - imap.br_startoff; in xfs_map_blocks() 599 imap.br_startoff = end_fsb; /* fake a hole past EOF */ in xfs_zoned_map_blocks() 600 if (imap.br_startoff > offset_fsb) { in xfs_zoned_map_blocks() 601 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_zoned_map_blocks() [all …]
|
| A D | xfs_dir2_readdir.c | 277 if (map.br_startoff >= last_da) in xfs_dir2_leaf_readbuf() 282 new_off = xfs_dir2_da_to_byte(geo, map.br_startoff); in xfs_dir2_leaf_readbuf() 286 map.br_startoff, 0, &bp); in xfs_dir2_leaf_readbuf() 299 *ra_blk = map.br_startoff; in xfs_dir2_leaf_readbuf() 300 next_ra = map.br_startoff + geo->fsbcount; in xfs_dir2_leaf_readbuf() 306 if (map.br_startoff >= last_da) in xfs_dir2_leaf_readbuf() 313 next_ra = roundup((xfs_dablk_t)map.br_startoff, geo->fsbcount); in xfs_dir2_leaf_readbuf() 315 next_ra < map.br_startoff + map.br_blockcount) { in xfs_dir2_leaf_readbuf()
|
| A D | xfs_bmap_util.c | 184 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() 1297 error = xfs_bmapi_read(ip, tirec.br_startoff, in xfs_swap_extent_rmap() 1303 ASSERT(tirec.br_startoff == irec.br_startoff); in xfs_swap_extent_rmap() 1346 tirec.br_startoff += rlen; in xfs_swap_extent_rmap()
|
| A D | xfs_zone_alloc.c | 225 error = xfs_bmapi_read(ip, new->br_startoff, new->br_blockcount, &data, in xfs_zoned_map_extent() 295 .br_startoff = XFS_B_TO_FSBT(mp, offset), in xfs_zoned_end_io() 307 while (new.br_startoff < end_fsb) { in xfs_zoned_end_io() 308 new.br_blockcount = end_fsb - new.br_startoff; in xfs_zoned_end_io() 326 new.br_startoff += new.br_blockcount; in xfs_zoned_end_io()
|
| A D | xfs_bmap_item.c | 273 map->me_startoff = bi->bi_bmap.br_startoff; in xfs_bmap_update_log_item() 476 bi->bi_bmap.br_startoff = map->me_startoff; in xfs_bui_recover_work()
|
| A D | xfs_pnfs.c | 186 end_fsb = min(end_fsb, imap.br_startoff + in xfs_fs_map_blocks()
|