/linux-4.19.296/fs/xfs/ |
D | xfs_symlink.c | 180 uint resblks; in xfs_symlink() local 219 resblks = XFS_SYMLINK_SPACE_RES(mp, link_name->len, fs_blocks); in xfs_symlink() 221 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_symlink, resblks, 0, 0, &tp); in xfs_symlink() 240 pdqp, resblks, 1, 0); in xfs_symlink() 267 if (resblks) in xfs_symlink() 268 resblks -= XFS_IALLOC_SPACE_RES(mp); in xfs_symlink() 285 XFS_BMAPI_METADATA, resblks, mval, &nmaps); in xfs_symlink() 289 if (resblks) in xfs_symlink() 290 resblks -= fs_blocks; in xfs_symlink() 332 error = xfs_dir_createname(tp, dp, link_name, ip->i_ino, resblks); in xfs_symlink()
|
D | xfs_mount.c | 597 uint64_t resblks; in xfs_default_resblks() local 606 resblks = mp->m_sb.sb_dblocks; in xfs_default_resblks() 607 do_div(resblks, 20); in xfs_default_resblks() 608 resblks = min_t(uint64_t, resblks, 8192); in xfs_default_resblks() 609 return resblks; in xfs_default_resblks() 679 uint64_t resblks; in xfs_mountfs() local 1016 resblks = xfs_default_resblks(mp); in xfs_mountfs() 1017 error = xfs_reserve_blocks(mp, &resblks, NULL); in xfs_mountfs() 1095 uint64_t resblks; in xfs_unmountfs() local 1161 resblks = 0; in xfs_unmountfs() [all …]
|
D | xfs_bmap_util.c | 877 uint qblocks, resblks, resrtextents; in xfs_alloc_file_space() local 933 resblks = min_t(xfs_fileoff_t, (e - s), (MAXEXTLEN * nimaps)); in xfs_alloc_file_space() 935 resrtextents = qblocks = resblks; in xfs_alloc_file_space() 937 resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0); in xfs_alloc_file_space() 941 resblks = qblocks = XFS_DIOSTRAT_SPACE_RES(mp, resblks); in xfs_alloc_file_space() 948 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, in xfs_alloc_file_space() 970 allocatesize_fsb, alloc_type, resblks, in xfs_alloc_file_space() 1014 uint resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0); in xfs_unmap_extent() local 1017 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, 0, &tp); in xfs_unmap_extent() 1025 ip->i_pdquot, resblks, 0, XFS_QMOPT_RES_REGBLKS); in xfs_unmap_extent() [all …]
|
D | xfs_iomap.c | 160 uint qblocks, resblks, resrtextents; in xfs_iomap_write_direct() local 200 resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0); in xfs_iomap_write_direct() 204 resblks = qblocks = XFS_DIOSTRAT_SPACE_RES(mp, resaligned); in xfs_iomap_write_direct() 234 resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0) << 1; in xfs_iomap_write_direct() 237 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, resrtextents, in xfs_iomap_write_direct() 257 bmapi_flags, resblks, imap, &nimaps); in xfs_iomap_write_direct() 821 uint resblks; in xfs_iomap_write_unwritten() local 840 resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0) << 1; in xfs_iomap_write_unwritten() 852 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, in xfs_iomap_write_unwritten() 865 XFS_BMAPI_CONVERT, resblks, &imap, in xfs_iomap_write_unwritten()
|
D | xfs_inode.c | 1151 uint resblks; in xfs_create() local 1171 resblks = XFS_MKDIR_SPACE_RES(mp, name->len); in xfs_create() 1174 resblks = XFS_CREATE_SPACE_RES(mp, name->len); in xfs_create() 1184 error = xfs_trans_alloc(mp, tres, resblks, 0, 0, &tp); in xfs_create() 1188 error = xfs_trans_alloc(mp, tres, resblks, 0, 0, &tp); in xfs_create() 1200 pdqp, resblks, 1, 0); in xfs_create() 1224 resblks ? in xfs_create() 1225 resblks - XFS_IALLOC_SPACE_RES(mp) : 0); in xfs_create() 1306 uint resblks; in xfs_create_tmpfile() local 1323 resblks = XFS_IALLOC_SPACE_RES(mp); in xfs_create_tmpfile() [all …]
|
D | xfs_reflink.c | 412 xfs_extlen_t resblks = 0; in xfs_reflink_allocate_cow() local 425 resblks = XFS_DIOSTRAT_SPACE_RES(mp, resaligned); in xfs_reflink_allocate_cow() 428 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, 0, &tp); in xfs_reflink_allocate_cow() 450 error = xfs_trans_reserve_quota_nblks(tp, ip, resblks, 0, in xfs_reflink_allocate_cow() 461 resblks, imap, &nimaps); in xfs_reflink_allocate_cow() 480 xfs_trans_unreserve_quota_nblks(tp, ip, (long)resblks, 0, in xfs_reflink_allocate_cow() 643 unsigned int resblks; in xfs_reflink_end_cow() local 669 resblks = XFS_NEXTENTADD_SPACE_RES(ip->i_mount, in xfs_reflink_end_cow() 673 resblks, 0, XFS_TRANS_RESERVE | XFS_TRANS_NOFS, &tp); in xfs_reflink_end_cow() 1008 unsigned int resblks; in xfs_reflink_remap_extent() local [all …]
|
D | xfs_fsops.c | 340 outval->resblks = mp->m_resblks; in xfs_reserve_blocks() 427 outval->resblks = mp->m_resblks; in xfs_reserve_blocks()
|
D | xfs_rtalloc.c | 778 int resblks; /* space reservation */ in xfs_growfs_rt_alloc() local 785 resblks = XFS_GROWFSRT_SPACE_RES(mp, nblocks - oblocks); in xfs_growfs_rt_alloc() 789 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growrtalloc, resblks, in xfs_growfs_rt_alloc() 804 XFS_BMAPI_METADATA, resblks, &map, in xfs_growfs_rt_alloc()
|
D | xfs_super.c | 1155 uint64_t resblks = 0; in xfs_save_resvblks() local 1158 xfs_reserve_blocks(mp, &resblks, NULL); in xfs_save_resvblks() 1164 uint64_t resblks; in xfs_restore_resvblks() local 1167 resblks = mp->m_resblks_save; in xfs_restore_resvblks() 1170 resblks = xfs_default_resblks(mp); in xfs_restore_resvblks() 1172 xfs_reserve_blocks(mp, &resblks, NULL); in xfs_restore_resvblks()
|
D | xfs_log_recover.c | 4825 uint resblks; in xlog_finish_defer_ops() local 4839 resblks = min_t(int64_t, UINT_MAX, freeblks); in xlog_finish_defer_ops() 4840 resblks = (resblks * 15) >> 4; in xlog_finish_defer_ops() 4841 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_itruncate, resblks, in xlog_finish_defer_ops()
|
D | xfs_ioctl.c | 2070 in = inout.resblks; in xfs_file_ioctl()
|
/linux-4.19.296/fs/xfs/scrub/ |
D | common.c | 590 uint resblks) in xchk_trans_alloc() argument 594 resblks, 0, 0, &sc->tp); in xchk_trans_alloc() 605 uint resblks; in xchk_setup_fs() local 607 resblks = xrep_calc_ag_resblks(sc); in xchk_setup_fs() 608 return xchk_trans_alloc(sc, resblks); in xchk_setup_fs() 727 unsigned int resblks) in xchk_setup_inode_contents() argument 738 error = xchk_trans_alloc(sc, resblks); in xchk_setup_inode_contents()
|
D | common.h | 34 int xchk_trans_alloc(struct xfs_scrub *sc, uint resblks); 132 unsigned int resblks);
|
/linux-4.19.296/fs/xfs/libxfs/ |
D | xfs_fs.h | 187 __u64 resblks; member
|