mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
lockd: Switch linux/nfs.h to linux/nfs_fh.h
lockd references "struct nfs_fh" but none of the other definitions in linux/nfs.h. That header also pulls in cred.h, several sunrpc headers, and uapi/linux/nfs.h, none of which lockd needs. A new linux/nfs_fh.h provides "struct nfs_fh" and its helpers without the rest of that surface. Switch lockd's xdr.h to linux/nfs_fh.h, and drop the now-redundant linux/nfs.h includes from svc.c and trace.h. Link: https://patch.msgid.link/20260720141442.783935-3-cel@kernel.org Signed-off-by: Chuck Lever <cel@kernel.org>
This commit is contained in:
parent
3675a2d128
commit
ee41a45f9a
|
|
@ -36,7 +36,6 @@
|
|||
#include <net/ip.h>
|
||||
#include <net/addrconf.h>
|
||||
#include <net/ipv6.h>
|
||||
#include <linux/nfs.h>
|
||||
|
||||
#include "lockd.h"
|
||||
#include "netns.h"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
#include <linux/tracepoint.h>
|
||||
#include <linux/crc32.h>
|
||||
#include <linux/nfs.h>
|
||||
|
||||
#include "lockd.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
#include <linux/fs.h>
|
||||
#include <linux/filelock.h>
|
||||
#include <linux/nfs.h>
|
||||
#include <linux/nfs_fh.h>
|
||||
#include <linux/sunrpc/xdr.h>
|
||||
|
||||
#define SM_MAXSTRLEN 1024
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user