| /linux-6.15/fs/xfs/libxfs/ |
| H A D | xfs_bmap.c | 867 xfs_iext_first(ifp, &icur); in xfs_bmap_local_to_extents() 1340 xfs_iext_last(ifp, &icur); in xfs_bmap_last_extent() 2127 xfs_iext_prev(ifp, icur); in xfs_bmap_add_extent_unwritten_real() 2184 xfs_iext_prev(ifp, icur); in xfs_bmap_add_extent_unwritten_real() 2227 xfs_iext_next(ifp, icur); in xfs_bmap_add_extent_unwritten_real() 2229 xfs_iext_prev(ifp, icur); in xfs_bmap_add_extent_unwritten_real() 2305 xfs_iext_prev(ifp, icur); in xfs_bmap_add_extent_unwritten_real() 2385 xfs_iext_next(ifp, icur); in xfs_bmap_add_extent_unwritten_real() 2421 xfs_iext_next(ifp, icur); in xfs_bmap_add_extent_unwritten_real() 2475 xfs_iext_next(ifp, icur); in xfs_bmap_add_extent_unwritten_real() [all …]
|
| H A D | xfs_inode_fork.c | 118 struct xfs_iext_cursor icur; in xfs_iformat_extents() local 143 xfs_iext_first(ifp, &icur); in xfs_iformat_extents() 158 xfs_iext_insert(ip, &icur, &new, state); in xfs_iformat_extents() 159 trace_xfs_read_extent(ip, &icur, state, _THIS_IP_); in xfs_iformat_extents() 160 xfs_iext_next(ifp, &icur); in xfs_iformat_extents() 515 struct xfs_iext_cursor icur; in xfs_iextents_copy() local 522 for_each_xfs_iext(ifp, &icur, &rec) { in xfs_iextents_copy() 527 trace_xfs_write_extent(ip, &icur, state, _RET_IP_); in xfs_iextents_copy()
|
| H A D | xfs_bmap.h | 31 struct xfs_iext_cursor icur; /* incore extent cursor */ member 226 struct xfs_iext_cursor *icur, struct xfs_btree_cur **curp,
|
| H A D | xfs_ialloc.c | 1577 struct xfs_btree_cur *icur; /* inobt cursor */ in xfs_dialloc_ag() local 1643 icur = xfs_inobt_init_cursor(pag, tp, agbp); in xfs_dialloc_ag() 1645 error = xfs_check_agi_freecount(icur); in xfs_dialloc_ag() 1649 error = xfs_dialloc_ag_update_inobt(icur, &rec, offset); in xfs_dialloc_ag() 1663 error = xfs_check_agi_freecount(icur); in xfs_dialloc_ag() 1670 xfs_btree_del_cursor(icur, XFS_BTREE_NOERROR); in xfs_dialloc_ag() 1676 xfs_btree_del_cursor(icur, XFS_BTREE_ERROR); in xfs_dialloc_ag()
|
| H A D | xfs_attr.c | 87 struct xfs_iext_cursor icur; in xfs_attr_is_leaf() local 95 xfs_iext_first(ifp, &icur); in xfs_attr_is_leaf() 96 xfs_iext_get_extent(ifp, &icur, &imap); in xfs_attr_is_leaf()
|
| /linux-6.15/fs/xfs/ |
| H A D | xfs_reflink.c | 302 struct xfs_iext_cursor icur; in xfs_reflink_convert_cow_locked() local 325 XFS_COW_FORK, &icur, &dummy_cur, &got, in xfs_reflink_convert_cow_locked() 370 struct xfs_iext_cursor icur; in xfs_find_trim_cow_extent() local 630 struct xfs_iext_cursor icur; in xfs_reflink_cancel_cow_blocks() local 646 xfs_iext_prev(ifp, &icur); in xfs_reflink_cancel_cow_blocks() 681 xfs_iext_prev(ifp, &icur); in xfs_reflink_cancel_cow_blocks() 684 if (!xfs_iext_get_extent(ifp, &icur, &got)) in xfs_reflink_cancel_cow_blocks() 794 struct xfs_iext_cursor icur; in xfs_reflink_end_cow_extent() local 837 if (!xfs_iext_next_extent(ifp, &icur, &got) || in xfs_reflink_end_cow_extent() 900 xfs_bmap_del_extent_cow(ip, &icur, &got, &del); in xfs_reflink_end_cow_extent() [all …]
|
| H A D | xfs_iomap.c | 227 struct xfs_iext_cursor icur; in xfs_iomap_eof_align_last_fsb() local 244 xfs_iext_last(ifp, &icur); in xfs_iomap_eof_align_last_fsb() 470 struct xfs_iext_cursor *icur) in xfs_iomap_prealloc_size() argument 1057 struct xfs_iext_cursor *icur, in xfs_bmap_add_extent_hole_delay() argument 1128 xfs_iext_remove(ip, icur, state); in xfs_bmap_add_extent_hole_delay() 1129 xfs_iext_prev(ifp, icur); in xfs_bmap_add_extent_hole_delay() 1148 xfs_iext_prev(ifp, icur); in xfs_bmap_add_extent_hole_delay() 1211 struct xfs_iext_cursor *icur, in xfs_bmapi_reserve_delalloc() argument 1350 struct xfs_iext_cursor icur; in xfs_zoned_buffered_write_iomap_begin() local 1670 offset, count, &icur); in xfs_buffered_write_iomap_begin() [all …]
|
| H A D | xfs_bmap_util.c | 78 struct xfs_iext_cursor icur; in xfs_bmap_count_leaves() local 82 for_each_xfs_iext(ifp, &icur, &got) { in xfs_bmap_count_leaves() 262 struct xfs_iext_cursor icur; in xfs_getbmap() local 364 if (!xfs_iext_lookup_extent(ip, ifp, bno, &icur, &got)) { in xfs_getbmap() 403 if (!xfs_iext_next_extent(ifp, &icur, &got)) { in xfs_getbmap() 448 struct xfs_iext_cursor icur; in xfs_bmap_punch_delalloc_range() local 467 if (!xfs_iext_prev_extent(ifp, &icur, &got)) in xfs_bmap_punch_delalloc_range() 479 xfs_bmap_del_extent_delay(ip, whichfork, &icur, &got, in xfs_bmap_punch_delalloc_range() 483 xfs_bmap_del_extent_delay(ip, whichfork, &icur, &got, in xfs_bmap_punch_delalloc_range() 487 if (!xfs_iext_get_extent(ifp, &icur, &got)) in xfs_bmap_punch_delalloc_range() [all …]
|
| H A D | xfs_aops.c | 293 struct xfs_iext_cursor icur; in xfs_map_blocks() local 338 xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &imap)) in xfs_map_blocks() 362 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks() 540 struct xfs_iext_cursor icur; in xfs_zoned_map_blocks() local 562 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &imap)) in xfs_zoned_map_blocks() 578 xfs_bmap_del_extent_delay(ip, XFS_COW_FORK, &icur, &imap, &del, in xfs_zoned_map_blocks()
|
| H A D | xfs_dir2_readdir.c | 260 struct xfs_iext_cursor icur; in xfs_dir2_leaf_readbuf() local 275 if (!xfs_iext_lookup_extent(dp, ifp, map_off, &icur, &map)) in xfs_dir2_leaf_readbuf() 304 !xfs_iext_next_extent(ifp, &icur, &map)) in xfs_dir2_leaf_readbuf() 328 if (!xfs_iext_next_extent(ifp, &icur, &map)) { in xfs_dir2_leaf_readbuf()
|
| H A D | xfs_icache.c | 1880 struct xfs_iext_cursor icur; in xfs_check_delalloc() local 1882 if (!ifp || !xfs_iext_lookup_extent(ip, ifp, 0, &icur, &got)) in xfs_check_delalloc() 1892 } while (xfs_iext_next_extent(ifp, &icur, &got)); in xfs_check_delalloc()
|
| H A D | xfs_zone_alloc.c | 373 struct xfs_iext_cursor icur; in xfs_last_used_zone() local 378 &icur, &got)) { in xfs_last_used_zone()
|
| /linux-6.15/fs/xfs/scrub/ |
| H A D | cow_repair.c | 478 struct xfs_iext_cursor *icur, in xrep_cow_find_mapping() argument 485 if (!xfs_iext_lookup_extent(ip, ifp, startoff, icur, got)) in xrep_cow_find_mapping() 516 struct xfs_iext_cursor *icur, in xrep_cow_replace_mapping() argument 533 xfs_iext_update_extent(ip, BMAP_COWFORK, icur, &new); in xrep_cow_replace_mapping() 544 xfs_iext_update_extent(ip, BMAP_COWFORK, icur, &new); in xrep_cow_replace_mapping() 549 xfs_iext_insert(ip, icur, &new, BMAP_COWFORK); in xrep_cow_replace_mapping() 562 struct xfs_iext_cursor icur; in xrep_cow_replace_range() local 574 error = xrep_cow_find_mapping(xc, &icur, startoff, &got); in xrep_cow_replace_range() 597 xrep_cow_replace_mapping(sc->ip, &icur, &got, &repl); in xrep_cow_replace_range() 656 struct xfs_iext_cursor icur; in xrep_bmap_cow() local [all …]
|
| H A D | bmap.c | 125 struct xfs_iext_cursor icur; member 528 struct xfs_iext_cursor icur; in xchk_bmapbt_rec() local 569 if (!xfs_iext_lookup_extent(ip, ifp, irec.br_startoff, &icur, in xchk_bmapbt_rec() 613 struct xfs_iext_cursor icur; member 647 &sbcri->icur, &irec); in xchk_bmap_check_rmap() 677 have_map = xfs_iext_next_extent(ifp, &sbcri->icur, &irec); in xchk_bmap_check_rmap() 969 xfs_iext_next(ifp, &info->icur); in xchk_bmap_iext_iter() 970 if (!xfs_iext_get_extent(ifp, &info->icur, irec)) in xchk_bmap_iext_iter() 984 while (xfs_iext_peek_next_extent(ifp, &info->icur, &got)) { in xchk_bmap_iext_iter() 996 xfs_iext_next(ifp, &info->icur); in xchk_bmap_iext_iter()
|
| H A D | bmap_repair.c | 485 struct xfs_iext_cursor icur; in xrep_bmap_find_delalloc() local 498 for_each_xfs_iext(ifp, &icur, &irec) { in xrep_bmap_find_delalloc() 653 struct xfs_iext_cursor icur; in xrep_bmap_extents_load() local 662 xfs_iext_first(ifp, &icur); in xrep_bmap_extents_load() 672 xfs_iext_insert_raw(ifp, &icur, &irec); in xrep_bmap_extents_load() 676 xfs_iext_next(ifp, &icur); in xrep_bmap_extents_load()
|
| H A D | ialloc.c | 757 struct xfs_btree_cur **icur, in xchk_xref_inode_check() argument 763 if (!(*icur) || xchk_skip_xref(sc->sm)) in xchk_xref_inode_check() 766 error = xfs_ialloc_has_inodes_at_extent(*icur, agbno, len, &outcome); in xchk_xref_inode_check() 767 if (!xchk_should_check_xref(sc, &error, icur)) in xchk_xref_inode_check() 770 xchk_btree_xref_set_corrupt(sc, *icur, 0); in xchk_xref_inode_check()
|
| H A D | dir.c | 802 struct xfs_iext_cursor icur; in xchk_directory_blocks() local 825 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks() 854 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks() 861 if (xfs_iext_lookup_extent(sc->ip, ifp, leaf_lblk, &icur, &got) && in xchk_directory_blocks() 864 !xfs_iext_next_extent(ifp, &icur, &got)) { in xchk_directory_blocks() 880 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks() 918 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
|
| H A D | rtbitmap.c | 151 struct xfs_iext_cursor icur; in xchk_rtbitmap_check_extents() local 160 if (xfs_iext_lookup_extent(ip, &ip->i_df, endoff, &icur, &map)) { in xchk_rtbitmap_check_extents()
|
| H A D | quota_repair.c | 400 struct xfs_iext_cursor icur; in xrep_quota_data_fork() local 417 for_each_xfs_iext(ifp, &icur, &irec) { in xrep_quota_data_fork() 481 for_each_xfs_iext(ifp, &icur, &irec) { in xrep_quota_data_fork()
|
| H A D | quota.c | 266 struct xfs_iext_cursor icur; in xchk_quota_data_fork() local 280 for_each_xfs_iext(ifp, &icur, &irec) { in xchk_quota_data_fork()
|
| H A D | rtsummary.c | 234 struct xfs_iext_cursor icur; in xchk_rtsum_compare() local 250 if (xfs_iext_lookup_extent(ip, &ip->i_df, endoff, &icur, &map)) { in xchk_rtsum_compare()
|
| H A D | readdir.c | 151 struct xfs_iext_cursor icur; in xchk_read_leaf_dir_buf() local 168 if (!xfs_iext_lookup_extent(dp, ifp, map_off, &icur, &map)) in xchk_read_leaf_dir_buf()
|
| H A D | rtrmap_repair.c | 309 struct xfs_iext_cursor icur; in xrep_rtrmap_scan_iext() local 312 for_each_xfs_iext(ifp, &icur, &rec) { in xrep_rtrmap_scan_iext()
|
| H A D | rmap_repair.c | 491 struct xfs_iext_cursor icur; in xrep_rmap_scan_iext() local 494 for_each_xfs_iext(ifp, &icur, &rec) { in xrep_rmap_scan_iext()
|
| /linux-6.15/fs/erofs/ |
| H A D | zdata.c | 483 unsigned int icur; member 667 fe->icur <= 1) { in z_erofs_attach_page() 670 while (fe->icur > 0) { in z_erofs_attach_page() 671 if (pcl->compressed_bvecs[--fe->icur].page) in z_erofs_attach_page() 673 pcl->compressed_bvecs[fe->icur] = *bvec; in z_erofs_attach_page() 840 fe->icur = z_erofs_pclusterpages(fe->pcl); in z_erofs_pcluster_begin()
|