Lines Matching +full:ip +full:- +full:blocks

1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
27 #define XFS_NOT_DQATTACHED(mp, ip) \ argument
28 ((XFS_IS_UQUOTA_ON(mp) && (ip)->i_udquot == NULL) || \
29 (XFS_IS_GQUOTA_ON(mp) && (ip)->i_gdquot == NULL) || \
30 (XFS_IS_PQUOTA_ON(mp) && (ip)->i_pdquot == NULL))
34 (mp->m_sb.sb_qflags & XFS_UQUOTA_CHKD) == 0) || \
36 (mp->m_sb.sb_qflags & XFS_GQUOTA_CHKD) == 0) || \
38 (mp->m_sb.sb_qflags & XFS_PQUOTA_CHKD) == 0))
100 int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp, struct xfs_inode *ip,
118 extern int xfs_qm_dqattach_locked(struct xfs_inode *ip, bool doalloc);
126 bool xfs_inode_near_dquot_enforcement(struct xfs_inode *ip, xfs_dqtype_t type);
129 void xfs_trans_mod_ino_dquot(struct xfs_trans *tp, struct xfs_inode *ip,
147 # define xfs_trans_mod_ino_dquot(tp, ip, dqp, field, delta) \ argument
153 xfs_qm_vop_dqalloc(struct xfs_inode *ip, kuid_t kuid, kgid_t kgid, in xfs_qm_vop_dqalloc() argument
165 struct xfs_inode *ip, uint field, int64_t delta) in xfs_trans_mod_dquot_byino() argument
171 struct xfs_inode *ip, int64_t dblocks, int64_t rblocks, in xfs_trans_reserve_quota_nblks() argument
191 #define xfs_qm_vop_create_dqattach(tp, ip, u, g, p) argument
193 #define xfs_qm_vop_chown(tp, ip, old, new) (NULL) argument
194 #define xfs_qm_dqattach(ip) (0) argument
195 #define xfs_qm_dqattach_locked(ip, fl) (0) argument
196 #define xfs_qm_dqdetach(ip) argument
198 #define xfs_qm_statvfs(ip, s) do { } while(0) argument
203 #define xfs_inode_near_dquot_enforcement(ip, type) (false) argument
213 xfs_quota_reserve_blkres(struct xfs_inode *ip, int64_t blocks) in xfs_quota_reserve_blkres() argument
215 return xfs_trans_reserve_quota_nblks(NULL, ip, blocks, 0, false); in xfs_quota_reserve_blkres()
219 xfs_quota_unreserve_blkres(struct xfs_inode *ip, uint64_t blocks) in xfs_quota_unreserve_blkres() argument
222 xfs_quota_reserve_blkres(ip, -(int64_t)blocks); in xfs_quota_unreserve_blkres()