filelock: move file locking definitions to separate header file
authorJeff Layton <jlayton@kernel.org>
Sun, 20 Nov 2022 14:15:34 +0000 (09:15 -0500)
committerJeff Layton <jlayton@kernel.org>
Wed, 11 Jan 2023 11:52:32 +0000 (06:52 -0500)
commit5970e15dbcfeb0ed3a0bf1954f35bbe60a048754
treea5fd3b3e8f79dc9c44a06abe0b5597a853e0eee6
parent1fe4fd6f5cad346e598593af36caeadc4f5d4fa9
filelock: move file locking definitions to separate header file

The file locking definitions have lived in fs.h since the dawn of time,
but they are only used by a small subset of the source files that
include it.

Move the file locking definitions to a new header file, and add the
appropriate #include directives to the source files that need them. By
doing this we trim down fs.h a bit and limit the amount of rebuilding
that has to be done when we make changes to the file locking APIs.

Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Howells <dhowells@redhat.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Acked-by: Steve French <stfrench@microsoft.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
42 files changed:
arch/arm/kernel/sys_oabi-compat.c
fs/9p/vfs_file.c
fs/afs/internal.h
fs/attr.c
fs/ceph/caps.c
fs/ceph/locks.c
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c
fs/cifs/file.c
fs/cifs/smb2file.c
fs/dlm/plock.c
fs/fcntl.c
fs/file_table.c
fs/fuse/file.c
fs/gfs2/file.c
fs/inode.c
fs/ksmbd/smb2pdu.c
fs/ksmbd/vfs.c
fs/ksmbd/vfs_cache.c
fs/lockd/clntproc.c
fs/lockd/netns.h
fs/locks.c
fs/namei.c
fs/nfs/file.c
fs/nfs/nfs4_fs.h
fs/nfs/pagelist.c
fs/nfs/write.c
fs/nfs_common/grace.c
fs/nfsd/netns.h
fs/ocfs2/locks.c
fs/ocfs2/stack_user.c
fs/open.c
fs/orangefs/file.c
fs/posix_acl.c
fs/proc/fd.c
fs/utimes.c
fs/xattr.c
fs/xfs/xfs_linux.h
include/linux/filelock.h [new file with mode: 0644]
include/linux/fs.h
include/linux/lockd/xdr.h