diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-01-22 16:48:34 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-02-03 09:18:49 -0800 |
commit | ad4a74739708e193c21245dae908ff50f72ff207 (patch) | |
tree | bea1c6da89ad35035211aaadaa4a7b2e9d7c642d /fs/xfs/xfs_symlink.c | |
parent | 35b1101099e85af74a46b8e36f4d1fdac0367ffd (diff) | |
download | linux-ad4a74739708e193c21245dae908ff50f72ff207.tar.gz linux-ad4a74739708e193c21245dae908ff50f72ff207.tar.bz2 linux-ad4a74739708e193c21245dae908ff50f72ff207.zip |
xfs: clean up icreate quota reservation calls
Create a proper helper so that inode creation calls can reserve quota
with a dedicated function.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Diffstat (limited to 'fs/xfs/xfs_symlink.c')
-rw-r--r-- | fs/xfs/xfs_symlink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_symlink.c b/fs/xfs/xfs_symlink.c index 7f96649e918a..d5dee8f409b2 100644 --- a/fs/xfs/xfs_symlink.c +++ b/fs/xfs/xfs_symlink.c @@ -215,8 +215,7 @@ xfs_symlink( /* * Reserve disk quota : blocks and inode. */ - error = xfs_trans_reserve_quota(tp, mp, udqp, gdqp, - pdqp, resblks, 1, 0); + error = xfs_trans_reserve_quota_icreate(tp, udqp, gdqp, pdqp, resblks); if (error) goto out_trans_cancel; |