Home
last modified time | relevance | path

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

12

/linux-6.15/fs/xfs/libxfs/
H A Dxfs_metadir.c256 unsigned int resblks; in xfs_metadir_create() local
297 resblks = xfs_mkdir_space_res(mp, xname.len); in xfs_metadir_create()
299 resblks = xfs_create_space_res(mp, xname.len); in xfs_metadir_create()
304 error = xfs_dir_create_child(upd->tp, resblks, &du); in xfs_metadir_create()
325 unsigned int resblks; in xfs_metadir_start_link() local
337 resblks = xfs_link_space_res(mp, MAXNAMELEN); in xfs_metadir_start_link()
339 &resblks, &upd->tp, &nospace_error); in xfs_metadir_start_link()
342 if (!resblks) { in xfs_metadir_start_link()
380 unsigned int resblks; in xfs_metadir_link() local
400 resblks = xfs_link_space_res(mp, xname.len); in xfs_metadir_link()
[all …]
H A Dxfs_exchmaps.c682 xfs_filblks_t resblks = req->resblks; in xfs_exchmaps_estimate_overhead() local
704 if (check_add_overflow(resblks, bmbt_blocks, &resblks)) in xfs_exchmaps_estimate_overhead()
706 if (check_add_overflow(resblks, bmbt_blocks, &resblks)) in xfs_exchmaps_estimate_overhead()
708 if (check_add_overflow(resblks, rmapbt_blocks, &resblks)) in xfs_exchmaps_estimate_overhead()
710 if (check_add_overflow(resblks, rmapbt_blocks, &resblks)) in xfs_exchmaps_estimate_overhead()
714 if (req->resblks > UINT_MAX) in xfs_exchmaps_estimate_overhead()
717 req->resblks = resblks; in xfs_exchmaps_estimate_overhead()
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,
H A Dxfs_symlink_remote.h25 xfs_fsblock_t fs_blocks, uint resblks);
H A Dxfs_dir2.c848 unsigned int resblks, in xfs_dir_create_child() argument
859 error = xfs_dir_createname(tp, dp, name, ip->i_ino, resblks); in xfs_dir_create_child()
898 unsigned int resblks, in xfs_dir_add_child() argument
911 if (!resblks) { in xfs_dir_add_child()
930 error = xfs_dir_createname(tp, dp, name, ip->i_ino, resblks); in xfs_dir_add_child()
962 unsigned int resblks, in xfs_dir_remove_child() argument
1020 error = xfs_dir_removename(tp, dp, name, ip->i_ino, resblks); in xfs_dir_remove_child()
H A Dxfs_exchmaps.h86 unsigned long long resblks; member
H A Dxfs_symlink_remote.c320 uint resblks) in xfs_symlink_write_target() argument
347 resblks, mval, &nmaps); in xfs_symlink_write_target()
/linux-6.15/fs/xfs/
H A Dxfs_symlink.c110 uint resblks; in xfs_symlink() local
143 resblks = xfs_symlink_space_res(mp, link_name->len, fs_blocks); in xfs_symlink()
150 pdqp, resblks, &tp); in xfs_symlink()
188 resblks -= XFS_IALLOC_SPACE_RES(mp); in xfs_symlink()
190 pathlen, fs_blocks, resblks); in xfs_symlink()
193 resblks -= fs_blocks; in xfs_symlink()
199 error = xfs_dir_create_child(tp, resblks, &du); in xfs_symlink()
H A Dxfs_trans.c1371 unsigned int resblks; in xfs_trans_alloc_dir() local
1377 resblks = *dblocks; in xfs_trans_alloc_dir()
1378 error = xfs_trans_alloc(mp, resv, resblks, 0, 0, &tp); in xfs_trans_alloc_dir()
1381 resblks = 0; in xfs_trans_alloc_dir()
1382 error = xfs_trans_alloc(mp, resv, resblks, 0, 0, &tp); in xfs_trans_alloc_dir()
1406 if (resblks == 0) in xfs_trans_alloc_dir()
1409 error = xfs_trans_reserve_quota_nblks(tp, dp, resblks, 0, false); in xfs_trans_alloc_dir()
1422 resblks = 0; in xfs_trans_alloc_dir()
1430 *dblocks = resblks; in xfs_trans_alloc_dir()
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()
706 resblks, &tp); in xfs_create()
734 error = xfs_dir_create_child(tp, resblks, &du); in xfs_create()
806 uint resblks; in xfs_create_tmpfile() local
819 resblks = XFS_IALLOC_SPACE_RES(mp); in xfs_create_tmpfile()
894 int resblks; in xfs_link() local
955 error = xfs_dir_add_child(tp, resblks, &du); in xfs_link()
1901 uint resblks; in xfs_remove() local
[all …]
H A Dxfs_bmap_util.c691 unsigned int dblocks, rblocks, resblks; in xfs_alloc_file_space() local
721 resblks = min_t(xfs_fileoff_t, (e - s), in xfs_alloc_file_space()
725 rblocks = resblks; in xfs_alloc_file_space()
727 dblocks = XFS_DIOSTRAT_SPACE_RES(mp, resblks); in xfs_alloc_file_space()
786 uint resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0); in xfs_unmap_extent() local
789 error = xfs_trans_alloc_inode(ip, &M_RES(mp)->tr_write, resblks, 0, in xfs_unmap_extent()
1518 int resblks = 0; in xfs_swap_extents() local
1592 resblks = XFS_SWAP_RMAP_SPACE_RES(mp, ipnext, w); in xfs_swap_extents()
1593 resblks += XFS_SWAP_RMAP_SPACE_RES(mp, tipnext, w); in xfs_swap_extents()
1604 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, flags, in xfs_swap_extents()
H A Dxfs_reflink.c799 unsigned int resblks; in xfs_reflink_end_cow_extent() local
804 resblks = XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK); in xfs_reflink_end_cow_extent()
805 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, in xfs_reflink_end_cow_extent()
1239 unsigned int dblocks, rblocks, resblks; in xfs_reflink_remap_extent() local
1269 resblks = XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK); in xfs_reflink_remap_extent()
1271 dblocks = resblks; in xfs_reflink_remap_extent()
1274 dblocks = resblks + dmap->br_blockcount; in xfs_reflink_remap_extent()
1282 resblks, 0, false, &tp); in xfs_reflink_remap_extent()
/linux-6.15/fs/xfs/scrub/
H A Dsymlink.c28 unsigned int resblks = 0; in xchk_setup_symlink() local
37 error = xrep_setup_symlink(sc, &resblks); in xchk_setup_symlink()
42 return xchk_setup_inode_contents(sc, resblks); in xchk_setup_symlink()
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()
697 req->resblks = 1; in xrep_tempexch_estimate()
712 req->resblks = 1; in xrep_tempexch_estimate()
727 req->resblks = 2; in xrep_tempexch_estimate()
820 error = xfs_trans_reserve_more(sc->tp, tx->req.resblks, 0); in xrep_tempexch_trans_reserve()
863 tx->req.resblks, 0, flags, &sc->tp); in xrep_tempexch_trans_alloc()
H A Drtsummary.h19 unsigned int resblks; member
H A Drtbitmap.h29 unsigned int resblks; member
H A Ddirtree_repair.c388 unsigned int resblks; in xrep_dirtree_unlink() local
402 resblks = xfs_remove_space_res(mp, step->name_len); in xrep_dirtree_unlink()
404 &resblks, &sc->tp, &dontcare); in xrep_dirtree_unlink()
463 resblks); in xrep_dirtree_unlink()
H A Dcommon.c889 uint resblks) in xchk_trans_alloc() argument
893 resblks, 0, 0, &sc->tp); in xchk_trans_alloc()
903 uint resblks; in xchk_setup_fs() local
905 resblks = xrep_calc_ag_resblks(sc); in xchk_setup_fs()
906 return xchk_trans_alloc(sc, resblks); in xchk_setup_fs()
1266 unsigned int resblks) in xchk_setup_inode_contents() argument
1281 error = xchk_trans_alloc(sc, resblks); in xchk_setup_inode_contents()
H A Drtbitmap_repair.c78 rtb->resblks += blocks; in xrep_setup_rtbitmap()
540 if (blocks > rtb->resblks) { in xrep_rtbitmap()
545 rtb->resblks += blocks; in xrep_rtbitmap()
H A Dcommon.h9 int xchk_trans_alloc(struct xfs_scrub *sc, uint resblks);
174 int xchk_setup_inode_contents(struct xfs_scrub *sc, unsigned int resblks);
H A Ddir_repair.c747 uint resblks; in xrep_dir_replay_update() local
750 resblks = xfs_link_space_res(mp, xname->len); in xrep_dir_replay_update()
751 error = xchk_trans_alloc(rd->sc, resblks); in xrep_dir_replay_update()
776 resblks); in xrep_dir_replay_update()
804 error = xrep_dir_replay_removename(rd, xname, resblks); in xrep_dir_replay_update()
1671 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 Drtbitmap.c61 error = xchk_trans_alloc(sc, rtb->resblks); in xchk_setup_rtbitmap()
H A Drepair.h100 int xrep_setup_symlink(struct xfs_scrub *sc, unsigned int *resblks);

12