From 6b1f79d5df9f2735192ed1a40c711cf131d4f43e Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Wed, 26 Apr 2023 16:34:57 -0400 Subject: Update bcachefs sources to 6a20aede29 bcachefs: Fix quotas + snapshots Signed-off-by: Kent Overstreet --- include/linux/kernel.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/linux/kernel.h') diff --git a/include/linux/kernel.h b/include/linux/kernel.h index a55b8a9b..01466c40 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -96,6 +96,14 @@ (type *)((char *)__mptr - offsetof(type, member)); }) #endif +#define __struct_group(TAG, NAME, ATTRS, MEMBERS...) \ + union { \ + struct { MEMBERS } ATTRS; \ + struct TAG { MEMBERS } ATTRS NAME; \ + } +#define struct_group(NAME, MEMBERS...) \ + __struct_group(/* no tag */, NAME, /* no attrs */, MEMBERS) + #define max(x, y) ({ \ typeof(x) _max1 = (x); \ typeof(y) _max2 = (y); \ -- cgit v1.2.3