Home
last modified time | relevance | path

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

/fs/xfs/
Dxfs_symlink.c171 uint resblks; in xfs_symlink() local
210 resblks = XFS_SYMLINK_SPACE_RES(mp, link_name->len, fs_blocks); in xfs_symlink()
212 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_symlink, resblks, 0, 0, &tp); in xfs_symlink()
231 pdqp, resblks, 1, 0); in xfs_symlink()
258 if (resblks) in xfs_symlink()
259 resblks -= XFS_IALLOC_SPACE_RES(mp); in xfs_symlink()
276 XFS_BMAPI_METADATA, resblks, mval, &nmaps); in xfs_symlink()
280 if (resblks) in xfs_symlink()
281 resblks -= fs_blocks; in xfs_symlink()
323 error = xfs_dir_createname(tp, dp, link_name, ip->i_ino, resblks); in xfs_symlink()
Dxfs_bmap_util.c873 uint qblocks, resblks, resrtextents; in xfs_alloc_file_space() local
930 resblks = min_t(xfs_fileoff_t, (e - s), (MAXEXTLEN * nimaps)); in xfs_alloc_file_space()
932 resrtextents = qblocks = resblks; in xfs_alloc_file_space()
934 resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0); in xfs_alloc_file_space()
938 resblks = qblocks = XFS_DIOSTRAT_SPACE_RES(mp, resblks); in xfs_alloc_file_space()
945 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, in xfs_alloc_file_space()
967 allocatesize_fsb, alloc_type, resblks, in xfs_alloc_file_space()
1011 uint resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0); in xfs_unmap_extent() local
1014 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, 0, &tp); in xfs_unmap_extent()
1022 ip->i_pdquot, resblks, 0, XFS_QMOPT_RES_REGBLKS); in xfs_unmap_extent()
[all …]
Dxfs_mount.c553 uint64_t resblks; in xfs_default_resblks() local
562 resblks = mp->m_sb.sb_dblocks; in xfs_default_resblks()
563 do_div(resblks, 20); in xfs_default_resblks()
564 resblks = min_t(uint64_t, resblks, 8192); in xfs_default_resblks()
565 return resblks; in xfs_default_resblks()
636 uint64_t resblks; in xfs_mountfs() local
947 resblks = xfs_default_resblks(mp); in xfs_mountfs()
948 error = xfs_reserve_blocks(mp, &resblks, NULL); in xfs_mountfs()
1027 uint64_t resblks; in xfs_unmountfs() local
1094 resblks = 0; in xfs_unmountfs()
[all …]
Dxfs_reflink.c362 xfs_extlen_t resblks = 0; in xfs_reflink_allocate_cow() local
378 resblks = XFS_DIOSTRAT_SPACE_RES(mp, resaligned); in xfs_reflink_allocate_cow()
381 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, 0, &tp); in xfs_reflink_allocate_cow()
403 error = xfs_trans_reserve_quota_nblks(tp, ip, resblks, 0, in xfs_reflink_allocate_cow()
414 resblks, imap, &nimaps); in xfs_reflink_allocate_cow()
442 xfs_trans_unreserve_quota_nblks(tp, ip, (long)resblks, 0, in xfs_reflink_allocate_cow()
610 unsigned int resblks; in xfs_reflink_end_cow_extent() local
619 resblks = XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK); in xfs_reflink_end_cow_extent()
620 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, in xfs_reflink_end_cow_extent()
1003 unsigned int resblks; in xfs_reflink_remap_extent() local
[all …]
Dxfs_iomap.c184 uint qblocks, resblks, resrtextents; in xfs_iomap_write_direct() local
224 resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0); in xfs_iomap_write_direct()
228 resblks = qblocks = XFS_DIOSTRAT_SPACE_RES(mp, resaligned); in xfs_iomap_write_direct()
258 resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0) << 1; in xfs_iomap_write_direct()
261 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, resrtextents, in xfs_iomap_write_direct()
281 bmapi_flags, resblks, imap, &nimaps); in xfs_iomap_write_direct()
747 uint resblks; in xfs_iomap_write_unwritten() local
766 resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0) << 1; in xfs_iomap_write_unwritten()
778 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, in xfs_iomap_write_unwritten()
791 XFS_BMAPI_CONVERT, resblks, &imap, in xfs_iomap_write_unwritten()
Dxfs_inode.c1144 uint resblks; in xfs_create() local
1164 resblks = XFS_MKDIR_SPACE_RES(mp, name->len); in xfs_create()
1167 resblks = XFS_CREATE_SPACE_RES(mp, name->len); in xfs_create()
1177 error = xfs_trans_alloc(mp, tres, resblks, 0, 0, &tp); in xfs_create()
1181 error = xfs_trans_alloc(mp, tres, resblks, 0, 0, &tp); in xfs_create()
1193 pdqp, resblks, 1, 0); in xfs_create()
1217 resblks ? in xfs_create()
1218 resblks - XFS_IALLOC_SPACE_RES(mp) : 0); in xfs_create()
1297 uint resblks; in xfs_create_tmpfile() local
1314 resblks = XFS_IALLOC_SPACE_RES(mp); in xfs_create_tmpfile()
[all …]
Dxfs_fsops.c334 outval->resblks = mp->m_resblks; in xfs_reserve_blocks()
421 outval->resblks = mp->m_resblks; in xfs_reserve_blocks()
Dxfs_rtalloc.c769 int resblks; /* space reservation */ in xfs_growfs_rt_alloc() local
776 resblks = XFS_GROWFSRT_SPACE_RES(mp, nblocks - oblocks); in xfs_growfs_rt_alloc()
780 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growrtalloc, resblks, in xfs_growfs_rt_alloc()
795 XFS_BMAPI_METADATA, resblks, &map, in xfs_growfs_rt_alloc()
Dxfs_super.c1146 uint64_t resblks = 0; in xfs_save_resvblks() local
1149 xfs_reserve_blocks(mp, &resblks, NULL); in xfs_save_resvblks()
1155 uint64_t resblks; in xfs_restore_resvblks() local
1158 resblks = mp->m_resblks_save; in xfs_restore_resvblks()
1161 resblks = xfs_default_resblks(mp); in xfs_restore_resvblks()
1163 xfs_reserve_blocks(mp, &resblks, NULL); in xfs_restore_resvblks()
Dxfs_log_recover.c4748 uint resblks; in xlog_finish_defer_ops() local
4762 resblks = min_t(int64_t, UINT_MAX, freeblks); in xlog_finish_defer_ops()
4763 resblks = (resblks * 15) >> 4; in xlog_finish_defer_ops()
4764 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate, resblks, in xlog_finish_defer_ops()
Dxfs_ioctl.c2286 in = inout.resblks; in xfs_file_ioctl()
/fs/xfs/scrub/
Dcommon.c601 uint resblks) in xchk_trans_alloc() argument
605 resblks, 0, 0, &sc->tp); in xchk_trans_alloc()
616 uint resblks; in xchk_setup_fs() local
618 resblks = xrep_calc_ag_resblks(sc); in xchk_setup_fs()
619 return xchk_trans_alloc(sc, resblks); in xchk_setup_fs()
738 unsigned int resblks) in xchk_setup_inode_contents() argument
749 error = xchk_trans_alloc(sc, resblks); in xchk_setup_inode_contents()
Dcommon.h34 int xchk_trans_alloc(struct xfs_scrub *sc, uint resblks);
134 unsigned int resblks);
/fs/xfs/libxfs/
Dxfs_fs.h224 __u64 resblks; member