/fs/xfs/libxfs/ |
D | xfs_bmap.c | 618 struct xfs_iext_cursor icur; in xfs_bmap_extents_to_btree() local 688 for_each_xfs_iext(ifp, &icur, &rec) { in xfs_bmap_extents_to_btree() 775 struct xfs_iext_cursor icur; in xfs_bmap_local_to_extents() local 842 xfs_iext_first(ifp, &icur); in xfs_bmap_local_to_extents() 843 xfs_iext_insert(ip, &icur, &rec, 0); in xfs_bmap_local_to_extents() 1087 struct xfs_iext_cursor icur; member 1164 xfs_iext_insert(ip, &ir->icur, &new, in xfs_iread_bmbt_block() 1166 trace_xfs_read_extent(ip, &ir->icur, in xfs_iread_bmbt_block() 1168 xfs_iext_next(ifp, &ir->icur); in xfs_iread_bmbt_block() 1195 xfs_iext_first(ifp, &ir.icur); in xfs_iread_extents() [all …]
|
D | xfs_inode_fork.c | 109 struct xfs_iext_cursor icur; in xfs_iformat_extents() local 133 xfs_iext_first(ifp, &icur); in xfs_iformat_extents() 147 xfs_iext_insert(ip, &icur, &new, state); in xfs_iformat_extents() 148 trace_xfs_read_extent(ip, &icur, state, _THIS_IP_); in xfs_iformat_extents() 149 xfs_iext_next(ifp, &icur); in xfs_iformat_extents() 562 struct xfs_iext_cursor icur; in xfs_iextents_copy() local 569 for_each_xfs_iext(ifp, &icur, &rec) { in xfs_iextents_copy() 574 trace_xfs_write_extent(ip, &icur, state, _RET_IP_); in xfs_iextents_copy()
|
D | xfs_bmap.h | 31 struct xfs_iext_cursor icur; /* incore extent cursor */ member 224 struct xfs_iext_cursor *icur, struct xfs_btree_cur **curp,
|
D | xfs_ialloc.c | 1464 struct xfs_btree_cur *icur; /* inobt cursor */ in xfs_dialloc_ag() local 1524 icur = xfs_inobt_init_cursor(pag, tp, agbp, XFS_BTNUM_INO); in xfs_dialloc_ag() 1526 error = xfs_check_agi_freecount(icur); in xfs_dialloc_ag() 1530 error = xfs_dialloc_ag_update_inobt(icur, &rec, offset); in xfs_dialloc_ag() 1544 error = xfs_check_agi_freecount(icur); in xfs_dialloc_ag() 1551 xfs_btree_del_cursor(icur, XFS_BTREE_NOERROR); in xfs_dialloc_ag() 1557 xfs_btree_del_cursor(icur, XFS_BTREE_ERROR); in xfs_dialloc_ag()
|
D | xfs_attr.c | 87 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()
|
/fs/xfs/ |
D | xfs_reflink.c | 250 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() 586 struct xfs_iext_cursor icur; in xfs_reflink_cancel_cow_blocks() local 591 if (!xfs_iext_lookup_extent_before(ip, ifp, &end_fsb, &icur, &got)) in xfs_reflink_cancel_cow_blocks() 601 xfs_iext_prev(ifp, &icur); in xfs_reflink_cancel_cow_blocks() 609 &icur, &got, &del); in xfs_reflink_cancel_cow_blocks() [all …]
|
D | xfs_iomap.c | 209 struct xfs_iext_cursor icur; in xfs_iomap_eof_align_last_fsb() local 226 xfs_iext_last(ifp, &icur); in xfs_iomap_eof_align_last_fsb() 227 if (!xfs_iext_get_extent(ifp, &icur, &irec) || in xfs_iomap_eof_align_last_fsb() 413 struct xfs_iext_cursor *icur) in xfs_iomap_prealloc_size() argument 415 struct xfs_iext_cursor ncur = *icur; in xfs_iomap_prealloc_size() 961 struct xfs_iext_cursor icur, ccur; in xfs_buffered_write_iomap_begin() local 1005 eof = !xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap); in xfs_buffered_write_iomap_begin() 1096 offset, count, &icur); in xfs_buffered_write_iomap_begin() 1124 allocfork == XFS_DATA_FORK ? &icur : &ccur, in xfs_buffered_write_iomap_begin() 1288 struct xfs_iext_cursor icur; in xfs_seek_iomap_begin() local [all …]
|
D | xfs_dir2_readdir.c | 258 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()
|
D | xfs_bmap_util.c | 232 struct xfs_iext_cursor icur; in xfs_bmap_count_leaves() local 236 for_each_xfs_iext(ifp, &icur, &got) { in xfs_bmap_count_leaves() 416 struct xfs_iext_cursor icur; in xfs_getbmap() local 519 if (!xfs_iext_lookup_extent(ip, ifp, bno, &icur, &got)) { in xfs_getbmap() 558 if (!xfs_iext_next_extent(ifp, &icur, &got)) { in xfs_getbmap() 601 struct xfs_iext_cursor icur; in xfs_bmap_punch_delalloc_range() local 607 if (!xfs_iext_lookup_extent_before(ip, ifp, &end_fsb, &icur, &got)) in xfs_bmap_punch_delalloc_range() 621 if (!xfs_iext_prev_extent(ifp, &icur, &got)) in xfs_bmap_punch_delalloc_range() 626 error = xfs_bmap_del_extent_delay(ip, XFS_DATA_FORK, &icur, in xfs_bmap_punch_delalloc_range() 628 if (error || !xfs_iext_get_extent(ifp, &icur, &got)) in xfs_bmap_punch_delalloc_range()
|
D | xfs_aops.c | 289 struct xfs_iext_cursor icur; in xfs_map_blocks() local 333 xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &imap)) in xfs_map_blocks() 357 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks()
|
D | xfs_icache.c | 1775 struct xfs_iext_cursor icur; in xfs_check_delalloc() local 1777 if (!ifp || !xfs_iext_lookup_extent(ip, ifp, 0, &icur, &got)) in xfs_check_delalloc() 1787 } while (xfs_iext_next_extent(ifp, &icur, &got)); in xfs_check_delalloc()
|
/fs/xfs/scrub/ |
D | bmap.c | 98 struct xfs_iext_cursor icur; member 444 struct xfs_iext_cursor icur; in xchk_bmapbt_rec() local 485 if (!xfs_iext_lookup_extent(ip, ifp, irec.br_startoff, &icur, in xchk_bmapbt_rec() 529 struct xfs_iext_cursor icur; member 563 &sbcri->icur, &irec); in xchk_bmap_check_rmap() 594 have_map = xfs_iext_next_extent(ifp, &sbcri->icur, &irec); in xchk_bmap_check_rmap() 781 xfs_iext_next(ifp, &info->icur); in xchk_bmap_iext_iter() 782 if (!xfs_iext_get_extent(ifp, &info->icur, irec)) in xchk_bmap_iext_iter() 796 while (xfs_iext_peek_next_extent(ifp, &info->icur, &got)) { in xchk_bmap_iext_iter() 808 xfs_iext_next(ifp, &info->icur); in xchk_bmap_iext_iter()
|
D | dir.c | 632 struct xfs_iext_cursor icur; in xchk_directory_blocks() local 654 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks() 683 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks() 690 if (xfs_iext_lookup_extent(sc->ip, ifp, leaf_lblk, &icur, &got) && in xchk_directory_blocks() 693 !xfs_iext_next_extent(ifp, &icur, &got)) { in xchk_directory_blocks() 709 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks() 747 found = xfs_iext_lookup_extent(sc->ip, ifp, lblk, &icur, &got); in xchk_directory_blocks()
|
D | ialloc.c | 766 struct xfs_btree_cur **icur, in xchk_xref_inode_check() argument 772 if (!(*icur) || xchk_skip_xref(sc->sm)) in xchk_xref_inode_check() 775 error = xfs_ialloc_has_inodes_at_extent(*icur, agbno, len, &outcome); in xchk_xref_inode_check() 776 if (!xchk_should_check_xref(sc, &error, icur)) in xchk_xref_inode_check() 779 xchk_btree_xref_set_corrupt(sc, *icur, 0); in xchk_xref_inode_check()
|
D | quota.c | 182 struct xfs_iext_cursor icur; in xchk_quota_data_fork() local 196 for_each_xfs_iext(ifp, &icur, &irec) { in xchk_quota_data_fork()
|
D | readdir.c | 152 struct xfs_iext_cursor icur; in xchk_read_leaf_dir_buf() local 169 if (!xfs_iext_lookup_extent(dp, ifp, map_off, &icur, &map)) in xchk_read_leaf_dir_buf()
|
/fs/erofs/ |
D | zdata.c | 530 unsigned int icur; member 736 while (fe->icur > 0) { in z_erofs_attach_page() 737 if (pcl->compressed_bvecs[--fe->icur].page) in z_erofs_attach_page() 739 pcl->compressed_bvecs[fe->icur] = *bvec; in z_erofs_attach_page() 894 fe->icur = z_erofs_pclusterpages(fe->pcl); in z_erofs_pcluster_begin()
|