Home
last modified time | relevance | path

Searched refs:resblks (Results 1 – 25 of 26) sorted by relevance

12

/linux/fs/xfs/scrub/
H A Dsymlink_repair.c57 unsigned int *resblks) in xrep_setup_symlink() argument
85 *resblks += blocks; in xrep_setup_symlink()
394 unsigned int resblks; in xrep_symlink_rebuild() local
425 resblks = xfs_symlink_space_res(sc->mp, target_len, fs_blocks); in xrep_symlink_rebuild()
426 error = xfs_trans_reserve_quota_nblks(sc->tp, sc->tempip, resblks, 0, in xrep_symlink_rebuild()
438 target_buf, target_len, fs_blocks, resblks); in xrep_symlink_rebuild()
H A Dtempfile.c57 unsigned int resblks; in xrep_tempfile_create() local
79 resblks = xfs_mkdir_space_res(mp, 0); in xrep_tempfile_create()
82 resblks = XFS_IALLOC_SPACE_RES(mp); in xrep_tempfile_create()
86 error = xfs_trans_alloc_icreate(mp, tres, udqp, gdqp, pdqp, resblks, in xrep_tempfile_create()
713 req->resblks = sf_resblks; in xrep_tempexch_estimate()
728 req->resblks = sf_resblks; in xrep_tempexch_estimate()
743 req->resblks = 2 * sf_resblks; in xrep_tempexch_estimate()
836 error = xfs_trans_reserve_more(sc->tp, tx->req.resblks, 0); in xrep_tempexch_trans_reserve()
879 tx->req.resblks, 0, flags, &sc->tp); in xrep_tempexch_trans_alloc()
H A Ddirtree_repair.c390 unsigned int resblks; in xrep_dirtree_unlink() local
404 resblks = xfs_remove_space_res(mp, step->name_len); in xrep_dirtree_unlink()
408 resblks, 0, false, &sc->tp); in xrep_dirtree_unlink()
409 if ((error == -ENOSPC || error == -EDQUOT) && resblks > 0) { in xrep_dirtree_unlink()
410 resblks = 0; in xrep_dirtree_unlink()
415 &resblks, &sc->tp, &dontcare); in xrep_dirtree_unlink()
475 resblks); in xrep_dirtree_unlink()
H A Drtsummary.h19 unsigned int resblks; member
H A Drtbitmap_repair.c81 rtb->resblks += blocks; in xrep_setup_rtbitmap()
543 if (blocks > rtb->resblks) { in xrep_rtbitmap()
544 uint64_t delta = blocks - rtb->resblks; in xrep_rtbitmap()
553 rtb->resblks += delta; in xrep_rtbitmap()
H A Drtbitmap.h29 unsigned int resblks; member
H A Dcommon.h9 int xchk_trans_alloc(struct xfs_scrub *sc, uint resblks);
177 int xchk_setup_inode_contents(struct xfs_scrub *sc, unsigned int resblks);
H A Dmetapath.c367 const unsigned int resblks = mpath->link_resblks; in xrep_metadir_add_child() local
384 error = xfs_dir_createname(tp, dp, name, I_INO(ip), resblks); in xrep_metadir_add_child()
399 I_INO(dp), resblks); in xrep_metadir_add_child()
H A Ddir_repair.c757 uint resblks; in xrep_dir_replay_update() local
760 resblks = xfs_link_space_res(mp, xname->len); in xrep_dir_replay_update()
761 error = xchk_trans_alloc(rd->sc, resblks); in xrep_dir_replay_update()
786 resblks); in xrep_dir_replay_update()
814 error = xrep_dir_replay_removename(rd, xname, resblks); in xrep_dir_replay_update()
1692 rd->pscan.parent_ino, rd->tx.req.resblks); in xrep_dir_swap()
H A Drtsummary_repair.c64 rts->resblks += blocks; in xrep_setup_rtsummary()
H A Drepair.h92 int xrep_setup_symlink(struct xfs_scrub *sc, unsigned int *resblks);
H A Drtbitmap.c61 error = xchk_trans_alloc(sc, rtb->resblks); in xchk_setup_rtbitmap()
H A Drtsummary.c76 error = xchk_trans_alloc(sc, rts->resblks); in xchk_setup_rtsummary()
/linux/fs/xfs/libxfs/
H A Dxfs_exchmaps.c658 xfs_filblks_t resblks = req->resblks; in xfs_exchmaps_rmapbt_blocks()
680 if (check_add_overflow(resblks, bmbt_blocks, &resblks)) in xfs_exchmaps_estimate_overhead()
682 if (check_add_overflow(resblks, bmbt_blocks, &resblks)) in xfs_exchmaps_estimate_overhead() local
684 if (check_add_overflow(resblks, rmapbt_blocks, &resblks)) in xfs_exchmaps_estimate_overhead()
686 if (check_add_overflow(resblks, rmapbt_blocks, &resblks)) in xfs_exchmaps_estimate_overhead()
[all...]
H A Dxfs_dir2.h345 int xfs_dir_create_child(struct xfs_trans *tp, unsigned int resblks,
347 int xfs_dir_add_child(struct xfs_trans *tp, unsigned int resblks,
349 int xfs_dir_remove_child(struct xfs_trans *tp, unsigned int resblks,
/linux/fs/xfs/
H A Dxfs_reflink.c945 unsigned int resblks; in xfs_reflink_end_cow_extent() local
948 resblks = XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK); in xfs_reflink_end_cow_extent()
949 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, in xfs_reflink_end_cow_extent()
1040 unsigned int resblks; in xfs_reflink_end_atomic_cow() local
1051 resblks = (end_fsb - offset_fsb) * in xfs_reflink_end_atomic_cow()
1054 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_atomic_ioend, resblks, 0, in xfs_reflink_end_atomic_cow()
1359 unsigned int dblocks, rblocks, resblks; in xfs_reflink_remap_extent() local
1389 resblks = XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK); in xfs_reflink_remap_extent()
1391 dblocks = resblks; in xfs_reflink_remap_extent()
1394 dblocks = resblks + dmap->br_blockcount; in xfs_reflink_remap_extent()
[all …]
H A Dxfs_inode.c667 uint resblks; in xfs_create() local
683 resblks = xfs_mkdir_space_res(mp, name->len); in xfs_create()
686 resblks = xfs_create_space_res(mp, name->len); in xfs_create()
700 error = xfs_trans_alloc_icreate(mp, tres, udqp, gdqp, pdqp, resblks, in xfs_create()
728 error = xfs_dir_create_child(tp, resblks, &du); in xfs_create()
800 uint resblks; in xfs_create_tmpfile() local
813 resblks = XFS_IALLOC_SPACE_RES(mp); in xfs_create_tmpfile()
816 error = xfs_trans_alloc_icreate(mp, tres, udqp, gdqp, pdqp, resblks, in xfs_create_tmpfile()
917 int resblks; in xfs_link() local
940 resblks = xfs_link_space_res(mp, target_name->len); in xfs_link()
[all …]
H A Dxfs_bmap_util.c720 unsigned int dblocks, rblocks, resblks; in xfs_alloc_file_space() local
750 resblks = min_t(xfs_fileoff_t, (e - s), in xfs_alloc_file_space()
754 rblocks = resblks; in xfs_alloc_file_space()
756 dblocks = XFS_DIOSTRAT_SPACE_RES(mp, resblks); in xfs_alloc_file_space()
816 uint resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0); in xfs_unmap_extent() local
819 error = xfs_trans_alloc_inode(ip, &M_RES(mp)->tr_write, resblks, 0, in xfs_unmap_extent()
1547 int resblks = 0; in xfs_swap_extents()
1621 resblks = XFS_SWAP_RMAP_SPACE_RES(mp, ipnext, w); in xfs_swap_extents()
1622 resblks += XFS_SWAP_RMAP_SPACE_RES(mp, tipnext, w); in xfs_swap_extents()
1633 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, in xfs_swap_extents()
1548 int resblks = 0; xfs_swap_extents() local
[all...]
H A Dxfs_iops.c918 uint resblks = 0; in xfs_vn_setattr_size() local
1051 resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0); in xfs_vn_setattr_size()
1053 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate, resblks, in xfs_vn_setattr_size()
H A Dxfs_super.c1022 uint64_t resblks; in xfs_restore_resvblks() local
1027 resblks = mp->m_free[i].res_saved; in xfs_restore_resvblks()
1030 resblks = xfs_default_resblks(mp, i); in xfs_restore_resvblks()
1031 xfs_reserve_blocks(mp, i, resblks); in xfs_restore_resvblks()
H A Dxfs_iomap.c628 uint resblks; in xfs_iomap_write_unwritten() local
647 resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0) << 1; in xfs_iomap_write_unwritten()
664 error = xfs_trans_alloc_inode(ip, &M_RES(mp)->tr_write, resblks, in xfs_iomap_write_unwritten()
679 XFS_BMAPI_CONVERT, resblks, &imap, in xfs_iomap_write_unwritten()
H A Dxfs_zone_alloc.c333 unsigned int resblks = in xfs_zoned_end_io() local
344 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, in xfs_zoned_end_io()
H A Dxfs_exchmaps_item.c465 error = xfs_trans_alloc(mp, &resv, req.resblks, 0, 0, &tp); in xfs_exchmaps_recover_work()
H A Dxfs_ioctl.c1169 error = xfs_reserve_blocks(mp, XC_FREE_BLOCKS, fsop.resblks); in xfs_ioctl_getset_resblocks()
1176 fsop.resblks = mp->m_free[XC_FREE_BLOCKS].res_total; in xfs_ioctl_getset_resblocks()
H A Dxfs_exchrange.c231 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, req.resblks, 0, in xfs_exchrange_mappings()

12