aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_quota.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2009-06-12 11:34:55 -0400
committerFelix Blyakher <felixb@sgi.com>2009-06-12 22:15:12 -0400
commit493b87e5ed352cf548e6456ddfc36576e28278ea (patch)
tree50d7419e1de1f5818906f0e2bb801b616cfa3dc6 /fs/xfs/xfs_quota.h
parent7747a0b0af5976ba3828796b4f7a7adc3bb76dbd (diff)
xfs: fix warnings with CONFIG_XFS_QUOTA disabled
Fix warnings about unitialized dquot variables by making sure xfs_qm_vop_dqalloc touches it even when quotas are disabled. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Felix Blyakher <felixb@sgi.com> Signed-off-by: Felix Blyakher <felixb@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_quota.h')
-rw-r--r--fs/xfs/xfs_quota.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/xfs/xfs_quota.h b/fs/xfs/xfs_quota.h
index 079d2e61c626..3ec91ac74c2a 100644
--- a/fs/xfs/xfs_quota.h
+++ b/fs/xfs/xfs_quota.h
@@ -335,6 +335,14 @@ extern void xfs_qm_unmount(struct xfs_mount *);
335extern void xfs_qm_unmount_quotas(struct xfs_mount *); 335extern void xfs_qm_unmount_quotas(struct xfs_mount *);
336 336
337#else 337#else
338static inline int
339xfs_qm_vop_dqalloc(struct xfs_inode *ip, uid_t uid, gid_t gid, prid_t prid,
340 uint flags, struct xfs_dquot **udqp, struct xfs_dquot **gdqp)
341{
342 *udqp = NULL;
343 *gdqp = NULL;
344 return 0;
345}
338#define xfs_trans_dup_dqinfo(tp, tp2) 346#define xfs_trans_dup_dqinfo(tp, tp2)
339#define xfs_trans_free_dqinfo(tp) 347#define xfs_trans_free_dqinfo(tp)
340#define xfs_trans_mod_dquot_byino(tp, ip, fields, delta) 348#define xfs_trans_mod_dquot_byino(tp, ip, fields, delta)
@@ -342,7 +350,6 @@ extern void xfs_qm_unmount_quotas(struct xfs_mount *);
342#define xfs_trans_unreserve_and_mod_dquots(tp) 350#define xfs_trans_unreserve_and_mod_dquots(tp)
343#define xfs_trans_reserve_quota_nblks(tp, ip, nblks, ninos, flags) (0) 351#define xfs_trans_reserve_quota_nblks(tp, ip, nblks, ninos, flags) (0)
344#define xfs_trans_reserve_quota_bydquots(tp, mp, u, g, nb, ni, fl) (0) 352#define xfs_trans_reserve_quota_bydquots(tp, mp, u, g, nb, ni, fl) (0)
345#define xfs_qm_vop_dqalloc(ip, uid, gid, prid, fl, ou, og) (0)
346#define xfs_qm_vop_create_dqattach(tp, ip, u, g) 353#define xfs_qm_vop_create_dqattach(tp, ip, u, g)
347#define xfs_qm_vop_rename_dqattach(it) (0) 354#define xfs_qm_vop_rename_dqattach(it) (0)
348#define xfs_qm_vop_chown(tp, ip, old, new) (NULL) 355#define xfs_qm_vop_chown(tp, ip, old, new) (NULL)