filelock: split common fields into struct file_lock_core
authorJeff Layton <jlayton@kernel.org>
Wed, 31 Jan 2024 23:01:58 +0000 (18:01 -0500)
committerChristian Brauner <brauner@kernel.org>
Mon, 5 Feb 2024 12:11:38 +0000 (13:11 +0100)
commita69ce85ec9af6bdc0b3511959a7dc1a324e5e16a
tree4df18a2921afb3ad3a002210fad2f84a32fa2425
parent3d40f78169a0a954ff06e2b0f8e21463f7edb433
filelock: split common fields into struct file_lock_core

In a future patch, we're going to split file leases into their own
structure. Since a lot of the underlying machinery uses the same fields
move those into a new file_lock_core, and embed that inside struct
file_lock.

For now, add some macros to ensure that we can continue to build while
the conversion is in progress.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20240131-flsplit-v3-17-c6129007ee8d@kernel.org
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
24 files changed:
fs/9p/vfs_file.c
fs/afs/internal.h
fs/ceph/locks.c
fs/dlm/plock.c
fs/fuse/file.c
fs/gfs2/file.c
fs/lockd/clntproc.c
fs/locks.c
fs/nfs/file.c
fs/nfs/nfs4_fs.h
fs/nfs/write.c
fs/nfsd/netns.h
fs/ocfs2/locks.c
fs/ocfs2/stack_user.c
fs/open.c
fs/posix_acl.c
fs/smb/client/cifsglob.h
fs/smb/client/cifssmb.c
fs/smb/client/file.c
fs/smb/client/smb2file.c
fs/smb/server/smb2pdu.c
fs/smb/server/vfs.c
include/linux/filelock.h
include/linux/lockd/xdr.h