vfs: fix break_lease() function signature in !CONFIG_FILE_LOCKING case
PATCH 1/1 vfs: fix break_lease() function signature in !CONFIG_FILE_LOCKING case
Commit 4be9f3cc582a ("filelock: rework the __break_lease API to use flags") contained a spurious change to the break_lease() stub when CONFIG_FILE_LOCKING is N. Revert that part of the patch.
Fixes 4be9f3cc582a ("filelock: rework the __break_lease API to use flags")
Signed-off-by Jeff Layton <[email protected]>
---
This is a problem that Chris found with his Claude review prompts. It doesn't seem to cause a problem with the build when file locking is disabled, so I consider this low-priority. Your call if you want to take it in for v6.19 or v7.0.
--- include/linux/filelock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/filelock.h +1 -1
@@ -552,7 +552,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: 187d0801404f415f22c0b31531982c7ea97fa341
change-id: 20251214-vfs-6-19-09d4562fbab0
Best regards,
Signature · 1 line
Jeff Layton <[email protected]>