filelock: update break_lease() stub with correct arguments
PATCH 1/1 filelock: update break_lease() stub with correct arguments
When CONFIG_FILE_LOCKING=n, break_lease() becomes a no-op. The arguments for the function still need to change though.
Fixes 4be9f3cc582a ("filelock: rework the __break_lease API to use flags")
Reported-by Nathan Chancellor <[email protected]>
Reported-by kernel test robot <[email protected]>
Signed-off-by Jeff Layton <[email protected]>
--- include/linux/filelock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/filelock.h +1 -1
@@ -584,7 +584,7 @@ static inline bool is_delegated(struct delegated_inode *di)return false; } -static inline int break_lease (struct inode *inode,bool wait) +static inline int break_lease (struct inode *inode,unsigned int mode) {return 0 ; }
---
base-commit: 4d14e43b656c6ddefa91114975470a6a992b30ee
change-id: 20260607-breakleasefix-3d5a9f1e1fd6
Best regards,
Signature · 1 line
Jeff Layton <[email protected]>
Quoted 8 lines · Jeff Layton
When
CONFIG_FILE_LOCKING=n,break_lease()becomes a no-op. The arguments for the function still need to change though.Fixes 4be9f3cc582a ("filelock: rework the __break_lease API to use flags")Reported-by Nathan Chancellor <[email protected]>Reported-by kernel test robot <[email protected]>Signed-off-by Jeff Layton <[email protected]>
Reviewed-by Nathan Chancellor <[email protected]>
Quoted 26 lines
--- include/linux/filelock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/filelock.h +1
-2@@ -584,7 +584,7 @@ static inline bool is_delegated(struct delegated_inode *di)return false; } -static inline int break_lease (struct inode *inode,bool wait) +static inline int break_lease (struct inode *inode,unsigned int mode) {return 0 ; } ---base-commit:
4d14e43b656c6ddefa91114975470a6a992b30ee
change-id: 20260607-breakleasefix-3d5a9f1e1fd6Best regards,
Signature · 1 line
Jeff Layton <[email protected]>
Signature · 2 lines
Cheers, Nathan