filelock: split leases out of struct file_lock
authorJeff Layton <jlayton@kernel.org>
Wed, 31 Jan 2024 23:02:28 +0000 (18:02 -0500)
committerChristian Brauner <brauner@kernel.org>
Mon, 5 Feb 2024 12:11:44 +0000 (13:11 +0100)
commitc69ff4071935f946f1cddc59e1d36a03442ed015
tree7f85094d5f6bb45755ae613e9251afe4a66a4e8f
parent282c30f320ba25794b66c2231ab134d15465ef21
filelock: split leases out of struct file_lock

Add a new struct file_lease and move the lease-specific fields from
struct file_lock to it. Convert the appropriate API calls to take
struct file_lease instead, and convert the callers to use them.

There is zero overlap between the lock manager operations for file
locks and the ones for file leases, so split the lease-related
operations off into a new lease_manager_operations struct.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20240131-flsplit-v3-47-c6129007ee8d@kernel.org
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/libfs.c
fs/locks.c
fs/nfs/nfs4_fs.h
fs/nfs/nfs4file.c
fs/nfs/nfs4proc.c
fs/nfsd/nfs4layouts.c
fs/nfsd/nfs4state.c
fs/smb/client/cifsfs.c
include/linux/filelock.h
include/linux/fs.h
include/trace/events/filelock.h