public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfs: fix !quota build
@ 2024-12-11  3:54 Christoph Hellwig
  2024-12-11  9:42 ` Carlos Maiolino
  2024-12-11 17:33 ` Darrick J. Wong
  0 siblings, 2 replies; 4+ messages in thread
From: Christoph Hellwig @ 2024-12-11  3:54 UTC (permalink / raw)
  To: cem; +Cc: djwong, linux-xfs, Stephen Rothwell

fix the !quota stub for xfs_trans_apply_dquot_deltas.

Fixes: 03d23e3ebeb7 ("xfs: don't lose solo dquot update transactions")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 fs/xfs/xfs_quota.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/xfs_quota.h b/fs/xfs/xfs_quota.h
index b864ed597877..d7565462af3d 100644
--- a/fs/xfs/xfs_quota.h
+++ b/fs/xfs/xfs_quota.h
@@ -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,
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] xfs: fix !quota build
  2024-12-11  3:54 [PATCH] xfs: fix !quota build Christoph Hellwig
@ 2024-12-11  9:42 ` Carlos Maiolino
  2024-12-11 17:33 ` Darrick J. Wong
  1 sibling, 0 replies; 4+ messages in thread
From: Carlos Maiolino @ 2024-12-11  9:42 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: djwong, linux-xfs, Stephen Rothwell

On Wed, Dec 11, 2024 at 04:54:32AM +0100, Christoph Hellwig wrote:
> fix the !quota stub for xfs_trans_apply_dquot_deltas.
> 
> Fixes: 03d23e3ebeb7 ("xfs: don't lose solo dquot update transactions")
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>  fs/xfs/xfs_quota.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/xfs/xfs_quota.h b/fs/xfs/xfs_quota.h
> index b864ed597877..d7565462af3d 100644
> --- a/fs/xfs/xfs_quota.h
> +++ b/fs/xfs/xfs_quota.h
> @@ -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,

Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>


> -- 
> 2.45.2
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] xfs: fix !quota build
  2024-12-11  3:54 [PATCH] xfs: fix !quota build Christoph Hellwig
  2024-12-11  9:42 ` Carlos Maiolino
@ 2024-12-11 17:33 ` Darrick J. Wong
  2024-12-11 17:36   ` Christoph Hellwig
  1 sibling, 1 reply; 4+ messages in thread
From: Darrick J. Wong @ 2024-12-11 17:33 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: cem, linux-xfs, Stephen Rothwell

On Wed, Dec 11, 2024 at 04:54:32AM +0100, Christoph Hellwig wrote:
> fix the !quota stub for xfs_trans_apply_dquot_deltas.
> 
> Fixes: 03d23e3ebeb7 ("xfs: don't lose solo dquot update transactions")
> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Doh, looks like I got confused by all the bot reports and modified both.
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>

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

--D

> ---
>  fs/xfs/xfs_quota.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/xfs/xfs_quota.h b/fs/xfs/xfs_quota.h
> index b864ed597877..d7565462af3d 100644
> --- a/fs/xfs/xfs_quota.h
> +++ b/fs/xfs/xfs_quota.h
> @@ -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,
> -- 
> 2.45.2
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] xfs: fix !quota build
  2024-12-11 17:33 ` Darrick J. Wong
@ 2024-12-11 17:36   ` Christoph Hellwig
  0 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2024-12-11 17:36 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: Christoph Hellwig, cem, linux-xfs, Stephen Rothwell

On Wed, Dec 11, 2024 at 09:33:18AM -0800, Darrick J. Wong wrote:
> Also, can we get rid of CONFIG_XFS_{QUOTA,POSIX_ACL}?  Maintaining all
> these dummy macros is ... irritating.

I have a slightly older branch that looked into the config options
including module size comparisms.  Quota is surprisingly big, RT less so,
but ACL should be a no-brainer:

http://git.infradead.org/?p=users/hch/xfs.git;a=shortlog;h=refs/heads/xfs-config-options

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-12-11 17:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11  3:54 [PATCH] xfs: fix !quota build Christoph Hellwig
2024-12-11  9:42 ` Carlos Maiolino
2024-12-11 17:33 ` Darrick J. Wong
2024-12-11 17:36   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox