Skip to contentSkip to conversation

xfs: fix !quota build

PATCH In review Christoph Hellwig 3 participants 4 messages Dec 11, 2024 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs: fix !quota build

fix the !quota stub for xfs_trans_apply_dquot_deltas.

Fixes 03d23e3ebeb7 ("xfs: don't lose solo dquot update transactions")
---
 fs/xfs/xfs_quota.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_quota.h +1 -1
index b864ed597877..d7565462af3d 100644
@@ -173,7 +173,7 @@ static inline void xfs_trans_mod_dquot_byino(struct xfs_trans *tp,
 		struct xfs_inode *ip, uint field, int64_t delta)
 {
 }
-#define xfs_trans_apply_dquot_deltas(tp, a)
+#define xfs_trans_apply_dquot_deltas(tp)
 #define xfs_trans_unreserve_and_mod_dquots(tp, a)
 static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
 		struct xfs_inode *ip, int64_t dblocks, int64_t rblocks,
Signature · 1 line
2.45.2
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Christoph Hellwig

fix the !quota stub for xfs_trans_apply_dquot_deltas.

Fixes 03d23e3ebeb7 ("xfs: don't lose solo dquot update transactions")
---
 fs/xfs/xfs_quota.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_quota.h +0 -0
index b864ed597877..d7565462af3d 100644

fs/xfs/xfs_quota.h static inline void xfs_trans_mod_dquot_byino(struct xfs_trans *tp, · line 179

Quoted 8 lines
fs/xfs/xfs_quota.h +1 -1
@@ -173,7 +173,7 @@ static inline void xfs_trans_mod_dquot_byino(struct xfs_trans *tp,
 		struct xfs_inode *ip, uint field, int64_t delta)
 {
 }
-#define xfs_trans_apply_dquot_deltas(tp, a)
+#define xfs_trans_apply_dquot_deltas(tp)
 #define xfs_trans_unreserve_and_mod_dquots(tp, a)
 static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
 		struct xfs_inode *ip, int64_t dblocks, int64_t rblocks,
Quoted 3 lines
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#2 lore raw
In reply to Christoph Hellwig
Quoted 5 lines · Christoph Hellwig

fix the !quota stub for xfs_trans_apply_dquot_deltas.

Fixes 03d23e3ebeb7 ("xfs: don't lose solo dquot update transactions")

Doh, looks like I got confused by all the bot reports and modified both.

Also, can we get rid of CONFIG_XFS_{QUOTA,POSIX_ACL}? Maintaining all these dummy macros is ... irritating.

--D

Quoted 20 lines
---
 fs/xfs/xfs_quota.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_quota.h +1 -1
index b864ed597877..d7565462af3d 100644
@@ -173,7 +173,7 @@ static inline void xfs_trans_mod_dquot_byino(struct xfs_trans *tp,
 		struct xfs_inode *ip, uint field, int64_t delta)
 {
 }
-#define xfs_trans_apply_dquot_deltas(tp, a)
+#define xfs_trans_apply_dquot_deltas(tp)
 #define xfs_trans_unreserve_and_mod_dquots(tp, a)
 static inline int xfs_trans_reserve_quota_nblks(struct xfs_trans *tp,
 		struct xfs_inode *ip, int64_t dblocks, int64_t rblocks,
Signature · 1 line
2.45.2