/linux/fs/xfs/ |
A D | xfs_symlink.c | 164 uint resblks; in xfs_symlink() local 202 resblks = XFS_SYMLINK_SPACE_RES(mp, link_name->len, fs_blocks); in xfs_symlink() 205 pdqp, resblks, &tp); in xfs_symlink() 251 resblks -= XFS_IALLOC_SPACE_RES(mp); in xfs_symlink() 268 XFS_BMAPI_METADATA, resblks, mval, &nmaps); in xfs_symlink() 272 resblks -= fs_blocks; in xfs_symlink() 313 error = xfs_dir_createname(tp, dp, link_name, ip->i_ino, resblks); in xfs_symlink()
|
A D | xfs_mount.c | 450 uint64_t resblks; in xfs_default_resblks() local 459 resblks = mp->m_sb.sb_dblocks; in xfs_default_resblks() 460 do_div(resblks, 20); in xfs_default_resblks() 461 resblks = min_t(uint64_t, resblks, 8192); in xfs_default_resblks() 462 return resblks; in xfs_default_resblks() 599 uint64_t resblks; in xfs_mountfs() local 933 resblks = xfs_default_resblks(mp); in xfs_mountfs() 934 error = xfs_reserve_blocks(mp, &resblks, NULL); in xfs_mountfs() 1021 uint64_t resblks; in xfs_unmountfs() local 1058 resblks = 0; in xfs_unmountfs() [all …]
|
A D | xfs_reflink.c | 360 xfs_extlen_t resblks = 0; in xfs_reflink_allocate_cow() local 376 resblks = XFS_DIOSTRAT_SPACE_RES(mp, resaligned); in xfs_reflink_allocate_cow() 381 error = xfs_trans_alloc_inode(ip, &M_RES(mp)->tr_write, resblks, 0, in xfs_reflink_allocate_cow() 595 unsigned int resblks; in xfs_reflink_end_cow_extent() local 604 resblks = XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK); in xfs_reflink_end_cow_extent() 605 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, in xfs_reflink_end_cow_extent() 996 unsigned int resblks; in xfs_reflink_remap_extent() local 1025 resblks = XFS_EXTENTADD_SPACE_RES(mp, XFS_DATA_FORK); in xfs_reflink_remap_extent() 1027 resblks + dmap->br_blockcount, 0, false, &tp); in xfs_reflink_remap_extent() 1031 resblks, 0, false, &tp); in xfs_reflink_remap_extent()
|
A D | xfs_inode.c | 978 uint resblks; in xfs_create() local 1018 resblks, &tp); in xfs_create() 1134 uint resblks; in xfs_create_tmpfile() local 1152 resblks = XFS_IALLOC_SPACE_RES(mp); in xfs_create_tmpfile() 1221 int resblks; in xfs_link() local 1241 resblks = 0; in xfs_link() 1268 if (!resblks) { in xfs_link() 1288 resblks); in xfs_link() 2759 uint resblks; in xfs_remove() local 2783 resblks = XFS_REMOVE_SPACE_RES(mp); in xfs_remove() [all …]
|
A D | xfs_bmap_util.c | 817 unsigned int dblocks, rblocks, resblks; in xfs_alloc_file_space() local 845 resblks = min_t(xfs_fileoff_t, (e - s), (MAXEXTLEN * nimaps)); in xfs_alloc_file_space() 848 rblocks = resblks; in xfs_alloc_file_space() 850 dblocks = XFS_DIOSTRAT_SPACE_RES(mp, resblks); in xfs_alloc_file_space() 909 uint resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0); in xfs_unmap_extent() local 912 error = xfs_trans_alloc_inode(ip, &M_RES(mp)->tr_write, resblks, 0, in xfs_unmap_extent() 1630 int resblks = 0; in xfs_swap_extents() local 1691 resblks = XFS_SWAP_RMAP_SPACE_RES(mp, ipnext, w); in xfs_swap_extents() 1692 resblks += XFS_SWAP_RMAP_SPACE_RES(mp, tipnext, w); in xfs_swap_extents() 1703 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_write, resblks, 0, flags, in xfs_swap_extents()
|
A D | xfs_fsops.c | 388 outval->resblks = mp->m_resblks; in xfs_reserve_blocks() 475 outval->resblks = mp->m_resblks; in xfs_reserve_blocks()
|
A D | xfs_super.c | 847 uint64_t resblks = 0; in xfs_save_resvblks() local 850 xfs_reserve_blocks(mp, &resblks, NULL); in xfs_save_resvblks() 856 uint64_t resblks; in xfs_restore_resvblks() local 859 resblks = mp->m_resblks_save; in xfs_restore_resvblks() 862 resblks = xfs_default_resblks(mp); in xfs_restore_resvblks() 864 xfs_reserve_blocks(mp, &resblks, NULL); in xfs_restore_resvblks()
|
A D | xfs_iomap.c | 508 uint resblks; in xfs_iomap_write_unwritten() local 527 resblks = XFS_DIOSTRAT_SPACE_RES(mp, 0) << 1; in xfs_iomap_write_unwritten() 544 error = xfs_trans_alloc_inode(ip, &M_RES(mp)->tr_write, resblks, in xfs_iomap_write_unwritten() 559 XFS_BMAPI_CONVERT, resblks, &imap, in xfs_iomap_write_unwritten()
|
A D | xfs_rtalloc.c | 780 int resblks; /* space reservation */ in xfs_growfs_rt_alloc() local 793 resblks = XFS_GROWFSRT_SPACE_RES(mp, nblocks - oblocks); in xfs_growfs_rt_alloc() 797 error = xfs_trans_alloc(mp, &M_RES(mp)->tr_growrtalloc, resblks, in xfs_growfs_rt_alloc()
|
A D | xfs_ioctl.c | 2095 in = inout.resblks; in xfs_file_ioctl()
|
/linux/fs/xfs/scrub/ |
A D | common.c | 572 uint resblks) in xchk_trans_alloc() argument 576 resblks, 0, 0, &sc->tp); in xchk_trans_alloc() 586 uint resblks; in xchk_setup_fs() local 588 resblks = xrep_calc_ag_resblks(sc); in xchk_setup_fs() 589 return xchk_trans_alloc(sc, resblks); in xchk_setup_fs() 706 unsigned int resblks) in xchk_setup_inode_contents() argument 717 error = xchk_trans_alloc(sc, resblks); in xchk_setup_inode_contents()
|
A D | common.h | 34 int xchk_trans_alloc(struct xfs_scrub *sc, uint resblks); 136 int xchk_setup_inode_contents(struct xfs_scrub *sc, unsigned int resblks);
|
/linux/fs/xfs/libxfs/ |
A D | xfs_fs.h | 224 __u64 resblks; member
|