[PATCH 0/3] Move NFS filehandle defs into separate include
Chuck Lever <[email protected]> Mon, 20 Jul 2026 10:14:39 -0400
| Newsgroups | gmane.linux.nfs |
|---|---|
| Message-ID | <[email protected]> |
struct nfs_fh is defined in linux/nfs.h, which also pulls in cred.h, a pair of sunrpc headers, and uapi/linux/nfs.h. A consumer that wants nothing but the file handle definition drags all of those items with it. Relocate struct nfs_fh and its helpers to a new minimal header: linux/nfs_fh.h. This series introduces two consumers for this header. More will follow in subsequent series. Chuck Lever (3): NFS: Add linux/nfs_fh.h lockd: Switch linux/nfs.h to linux/nfs_fh.h NFSD: Use struct knfsd_fh in struct pnfs_ff_layout fs/lockd/svc.c | 1 - fs/lockd/trace.h | 1 - fs/lockd/xdr.h | 2 +- fs/nfsd/flexfilelayout.c | 3 +- fs/nfsd/flexfilelayoutxdr.c | 4 +-- fs/nfsd/flexfilelayoutxdr.h | 3 +- include/linux/nfs.h | 39 ++--------------------- include/linux/nfs_fh.h | 63 +++++++++++++++++++++++++++++++++++++ 8 files changed, 71 insertions(+), 45 deletions(-) create mode 100644 include/linux/nfs_fh.h -- 2.54.0