Re: [PATCH 11/20] filelock: convert the IS_* macros to take file_lock_core

2024-01-17 Thread Jeff Layton
On Wed, 2024-01-17 at 09:16 +1100, NeilBrown wrote: > On Wed, 17 Jan 2024, Jeff Layton wrote: > > I couldn't get them to work properly as macros, so convert them > > to static inlines instead (which is probably better for the type safety > > anyway). > > > > Signed-off-by: Jeff Layton > > --- >

Re: [PATCH 11/20] filelock: convert the IS_* macros to take file_lock_core

2024-01-16 Thread NeilBrown
On Wed, 17 Jan 2024, Jeff Layton wrote: > I couldn't get them to work properly as macros, so convert them > to static inlines instead (which is probably better for the type safety > anyway). > > Signed-off-by: Jeff Layton > --- > fs/locks.c | 46 +- >

[PATCH 11/20] filelock: convert the IS_* macros to take file_lock_core

2024-01-16 Thread Jeff Layton
I couldn't get them to work properly as macros, so convert them to static inlines instead (which is probably better for the type safety anyway). Signed-off-by: Jeff Layton --- fs/locks.c | 46 +- 1 file changed, 33 insertions(+), 13 deletions(-) diff