Skip to contentSkip to conversation

vfs: fix break_lease() function signature in !CONFIG_FILE_LOCKING case

PATCH New Jeff Layton 1 participant 1 message Dec 14, 2025

lore
Share & tools
lore
#0 lore raw

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")

---
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
index 54b824c05299261e6bd6acc4175cb277ea35b35d..078da14dc4ce52d34cb3bbeb44a6274daa0f6056 100644
@@ -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]>