Home
last modified time | relevance | path

Searched refs:icur (Results 1 – 16 of 16) sorted by relevance

/linux-6.1.9/fs/xfs/libxfs/
Dxfs_bmap.c613 struct xfs_iext_cursor icur; in xfs_bmap_extents_to_btree() local
694 for_each_xfs_iext(ifp, &icur, &rec) { in xfs_bmap_extents_to_btree()
781 struct xfs_iext_cursor icur; in xfs_bmap_local_to_extents() local
852 xfs_iext_first(ifp, &icur); in xfs_bmap_local_to_extents()
853 xfs_iext_insert(ip, &icur, &rec, 0); in xfs_bmap_local_to_extents()
1098 struct xfs_iext_cursor icur; member
1146 xfs_iext_insert(ip, &ir->icur, &new, in xfs_iread_bmbt_block()
1148 trace_xfs_read_extent(ip, &ir->icur, in xfs_iread_bmbt_block()
1150 xfs_iext_next(ifp, &ir->icur); in xfs_iread_bmbt_block()
1177 xfs_iext_first(ifp, &ir.icur); in xfs_iread_extents()
[all …]
Dxfs_inode_fork.c109 struct xfs_iext_cursor icur; in xfs_iformat_extents() local
133 xfs_iext_first(ifp, &icur); in xfs_iformat_extents()
146 xfs_iext_insert(ip, &icur, &new, state); in xfs_iformat_extents()
147 trace_xfs_read_extent(ip, &icur, state, _THIS_IP_); in xfs_iformat_extents()
148 xfs_iext_next(ifp, &icur); in xfs_iformat_extents()
547 struct xfs_iext_cursor icur; in xfs_iextents_copy() local
554 for_each_xfs_iext(ifp, &icur, &rec) { in xfs_iextents_copy()
559 trace_xfs_write_extent(ip, &icur, state, _RET_IP_); in xfs_iextents_copy()
Dxfs_bmap.h30 struct xfs_iext_cursor icur; /* incore extent cursor */ member
221 struct xfs_iext_cursor *icur, struct xfs_btree_cur **curp,
Dxfs_ialloc.c1443 struct xfs_btree_cur *icur; /* inobt cursor */ in xfs_dialloc_ag() local
1503 icur = xfs_inobt_init_cursor(mp, tp, agbp, pag, XFS_BTNUM_INO); in xfs_dialloc_ag()
1505 error = xfs_check_agi_freecount(icur); in xfs_dialloc_ag()
1509 error = xfs_dialloc_ag_update_inobt(icur, &rec, offset); in xfs_dialloc_ag()
1523 error = xfs_check_agi_freecount(icur); in xfs_dialloc_ag()
1530 xfs_btree_del_cursor(icur, XFS_BTREE_NOERROR); in xfs_dialloc_ag()
1536 xfs_btree_del_cursor(icur, XFS_BTREE_ERROR); in xfs_dialloc_ag()
Dxfs_attr.c87 struct xfs_iext_cursor icur; in xfs_attr_is_leaf() local
93 xfs_iext_first(ifp, &icur); in xfs_attr_is_leaf()
94 xfs_iext_get_extent(ifp, &icur, &imap); in xfs_attr_is_leaf()
/linux-6.1.9/fs/xfs/
Dxfs_reflink.c250 struct xfs_iext_cursor icur; in xfs_reflink_convert_cow_locked() local
256 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &got)) in xfs_reflink_convert_cow_locked()
273 XFS_COW_FORK, &icur, &dummy_cur, &got, in xfs_reflink_convert_cow_locked()
277 } while (xfs_iext_next_extent(ip->i_cowfp, &icur, &got)); in xfs_reflink_convert_cow_locked()
318 struct xfs_iext_cursor icur; in xfs_find_trim_cow_extent() local
326 if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, cmap)) in xfs_find_trim_cow_extent()
588 struct xfs_iext_cursor icur; in xfs_reflink_cancel_cow_blocks() local
593 if (!xfs_iext_lookup_extent_before(ip, ifp, &end_fsb, &icur, &got)) in xfs_reflink_cancel_cow_blocks()
603 xfs_iext_prev(ifp, &icur); in xfs_reflink_cancel_cow_blocks()
611 &icur, &got, &del); in xfs_reflink_cancel_cow_blocks()
[all …]
Dxfs_iomap.c166 struct xfs_iext_cursor icur; in xfs_iomap_eof_align_last_fsb() local
183 xfs_iext_last(ifp, &icur); in xfs_iomap_eof_align_last_fsb()
184 if (!xfs_iext_get_extent(ifp, &icur, &irec) || in xfs_iomap_eof_align_last_fsb()
368 struct xfs_iext_cursor *icur) in xfs_iomap_prealloc_size() argument
370 struct xfs_iext_cursor ncur = *icur; in xfs_iomap_prealloc_size()
912 struct xfs_iext_cursor icur, ccur; in xfs_buffered_write_iomap_begin() local
951 eof = !xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap); in xfs_buffered_write_iomap_begin()
1045 offset, count, &icur); in xfs_buffered_write_iomap_begin()
1070 allocfork == XFS_DATA_FORK ? &icur : &ccur, in xfs_buffered_write_iomap_begin()
1247 struct xfs_iext_cursor icur; in xfs_seek_iomap_begin() local
[all …]
Dxfs_dir2_readdir.c258 struct xfs_iext_cursor icur; in xfs_dir2_leaf_readbuf() local
273 if (!xfs_iext_lookup_extent(dp, ifp, map_off, &icur, &map)) in xfs_dir2_leaf_readbuf()
301 !xfs_iext_next_extent(ifp, &icur, &map)) in xfs_dir2_leaf_readbuf()
325 if (!xfs_iext_next_extent(ifp, &icur, &map)) { in xfs_dir2_leaf_readbuf()
Dxfs_bmap_util.c232 struct xfs_iext_cursor icur; in xfs_bmap_count_leaves() local
236 for_each_xfs_iext(ifp, &icur, &got) { in xfs_bmap_count_leaves()
418 struct xfs_iext_cursor icur; in xfs_getbmap() local
521 if (!xfs_iext_lookup_extent(ip, ifp, bno, &icur, &got)) { in xfs_getbmap()
560 if (!xfs_iext_next_extent(ifp, &icur, &got)) { in xfs_getbmap()
599 struct xfs_iext_cursor icur; in xfs_bmap_punch_delalloc_range() local
605 if (!xfs_iext_lookup_extent_before(ip, ifp, &end_fsb, &icur, &got)) in xfs_bmap_punch_delalloc_range()
619 if (!xfs_iext_prev_extent(ifp, &icur, &got)) in xfs_bmap_punch_delalloc_range()
624 error = xfs_bmap_del_extent_delay(ip, XFS_DATA_FORK, &icur, in xfs_bmap_punch_delalloc_range()
626 if (error || !xfs_iext_get_extent(ifp, &icur, &got)) in xfs_bmap_punch_delalloc_range()
Dxfs_aops.c282 struct xfs_iext_cursor icur; in xfs_map_blocks() local
324 xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &imap)) in xfs_map_blocks()
348 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks()
Dxfs_icache.c1781 struct xfs_iext_cursor icur; in xfs_check_delalloc() local
1783 if (!ifp || !xfs_iext_lookup_extent(ip, ifp, 0, &icur, &got)) in xfs_check_delalloc()
1793 } while (xfs_iext_next_extent(ifp, &icur, &got)); in xfs_check_delalloc()
/linux-6.1.9/fs/xfs/scrub/
Dbmap.c375 struct xfs_iext_cursor icur; in xchk_bmapbt_rec() local
410 if (!xfs_iext_lookup_extent(ip, ifp, irec.br_startoff, &icur, in xchk_bmapbt_rec()
454 struct xfs_iext_cursor icur; member
488 &sbcri->icur, &irec); in xchk_bmap_check_rmap()
519 have_map = xfs_iext_next_extent(ifp, &sbcri->icur, &irec); in xchk_bmap_check_rmap()
629 struct xfs_iext_cursor icur; in xchk_bmap() local
693 for_each_xfs_iext(ifp, &icur, &irec) { in xchk_bmap()
Dialloc.c624 struct xfs_btree_cur **icur, in xchk_xref_inode_check() argument
630 if (!(*icur) || xchk_skip_xref(sc->sm)) in xchk_xref_inode_check()
633 error = xfs_ialloc_has_inodes_at_extent(*icur, agbno, len, &has_inodes); in xchk_xref_inode_check()
634 if (!xchk_should_check_xref(sc, &error, icur)) in xchk_xref_inode_check()
637 xchk_btree_xref_set_corrupt(sc, *icur, 0); in xchk_xref_inode_check()
Ddir.c675 struct xfs_iext_cursor icur; in xchk_directory_blocks() local
700 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
729 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
736 if (xfs_iext_lookup_extent(sc->ip, ifp, leaf_lblk, &icur, &got) && in xchk_directory_blocks()
739 !xfs_iext_next_extent(ifp, &icur, &got)) { in xchk_directory_blocks()
755 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
793 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
Dquota.c175 struct xfs_iext_cursor icur; in xchk_quota_data_fork() local
189 for_each_xfs_iext(ifp, &icur, &irec) { in xchk_quota_data_fork()
/linux-6.1.9/fs/erofs/
Dzdata.c288 unsigned int icur; member
423 while (fe->icur > 0) { in z_erofs_try_inplace_io()
424 if (!cmpxchg(&pcl->compressed_bvecs[--fe->icur].page, in z_erofs_try_inplace_io()
426 pcl->compressed_bvecs[fe->icur] = *bvec; in z_erofs_try_inplace_io()
593 fe->icur = z_erofs_pclusterpages(fe->pcl); in z_erofs_collector_begin()