diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-01-27 02:23:30 +0100 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-02-03 18:18:49 +0100 |
commit | 35b1101099e85af74a46b8e36f4d1fdac0367ffd (patch) | |
tree | cda160dcae123004c563ecd1cebfe54c756aa428 /fs/xfs/xfs_quota.h | |
parent | xfs: create convenience wrappers for incore quota block reservations (diff) | |
download | linux-35b1101099e85af74a46b8e36f4d1fdac0367ffd.tar.xz linux-35b1101099e85af74a46b8e36f4d1fdac0367ffd.zip |
xfs: remove xfs_trans_unreserve_quota_nblks completely
xfs_trans_cancel will release all the quota resources that were reserved
on behalf of the transaction, so get rid of the explicit unreserve step.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_quota.h')
-rw-r--r-- | fs/xfs/xfs_quota.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_quota.h b/fs/xfs/xfs_quota.h index 1d1a1634ea29..31d0de899cc4 100644 --- a/fs/xfs/xfs_quota.h +++ b/fs/xfs/xfs_quota.h @@ -164,8 +164,6 @@ xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t blocks) #define xfs_qm_unmount_quotas(mp) #endif /* CONFIG_XFS_QUOTA */ -#define xfs_trans_unreserve_quota_nblks(tp, ip, nblks, ninos, flags) \ - xfs_trans_reserve_quota_nblks(tp, ip, -(nblks), -(ninos), flags) #define xfs_trans_reserve_quota(tp, mp, ud, gd, pd, nb, ni, f) \ xfs_trans_reserve_quota_bydquots(tp, mp, ud, gd, pd, nb, ni, \ f | XFS_QMOPT_RES_REGBLKS) |