Skip to content

Commit

Permalink
nfsd: Move private headers to source directory
Browse files Browse the repository at this point in the history
Lots of include/linux/nfsd/* headers are only used by
nfsd module. Move them to the source directory

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
  • Loading branch information
Boaz Harrosh authored and J. Bruce Fields committed Dec 14, 2009
1 parent 68590c3 commit 9a74af2
Show file tree
Hide file tree
Showing 26 changed files with 52 additions and 44 deletions.
2 changes: 1 addition & 1 deletion fs/nfsd/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

#include <linux/sched.h>
#include <linux/nfsd/nfsd.h>
#include "nfsd.h"
#include "auth.h"

int nfsexp_flags(struct svc_rqst *rqstp, struct svc_export *exp)
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion fs/nfsd/export.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
#include <linux/module.h>
#include <linux/exportfs.h>

#include <linux/nfsd/nfsd.h>
#include <linux/nfsd/syscall.h>
#include <net/ipv6.h>

#include "nfsd.h"

#define NFSDDBG_FACILITY NFSDDBG_EXPORT

typedef struct auth_domain svc_client;
Expand Down
2 changes: 1 addition & 1 deletion fs/nfsd/lockd.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*/

#include <linux/file.h>
#include <linux/nfsd/nfsd.h>
#include <linux/lockd/bind.h>
#include "nfsd.h"
#include "vfs.h"

#define NFSDDBG_FACILITY NFSDDBG_LOCKD
Expand Down
7 changes: 4 additions & 3 deletions fs/nfsd/nfs2acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
* Copyright (C) 2002-2003 Andreas Gruenbacher <agruen@suse.de>
*/

#include <linux/nfsd/nfsd.h>
#include <linux/nfsd/cache.h>
#include <linux/nfsd/xdr3.h>
#include "nfsd.h"
/* FIXME: nfsacl.h is a broken header */
#include <linux/nfsacl.h>
#include "cache.h"
#include "xdr3.h"
#include "vfs.h"

#define NFSDDBG_FACILITY NFSDDBG_PROC
Expand Down
7 changes: 4 additions & 3 deletions fs/nfsd/nfs3acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
* Copyright (C) 2002-2003 Andreas Gruenbacher <agruen@suse.de>
*/

#include <linux/nfsd/nfsd.h>
#include <linux/nfsd/cache.h>
#include <linux/nfsd/xdr3.h>
#include "nfsd.h"
/* FIXME: nfsacl.h is a broken header */
#include <linux/nfsacl.h>
#include "cache.h"
#include "xdr3.h"
#include "vfs.h"

#define RETURN_STATUS(st) { resp->status = (st); return (st); }
Expand Down
4 changes: 2 additions & 2 deletions fs/nfsd/nfs3proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include <linux/ext2_fs.h>
#include <linux/magic.h>

#include <linux/nfsd/cache.h>
#include <linux/nfsd/xdr3.h>
#include "cache.h"
#include "xdr3.h"
#include "vfs.h"

#define NFSDDBG_FACILITY NFSDDBG_PROC
Expand Down
2 changes: 1 addition & 1 deletion fs/nfsd/nfs3xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

#include <linux/namei.h>
#include <linux/nfsd/xdr3.h>
#include "xdr3.h"
#include "auth.h"

#define NFSDDBG_FACILITY NFSDDBG_XDR
Expand Down
4 changes: 2 additions & 2 deletions fs/nfsd/nfs4callback.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
*/

#include <linux/sunrpc/clnt.h>
#include <linux/nfsd/nfsd.h>
#include <linux/nfsd/state.h>
#include "nfsd.h"
#include "state.h"

#define NFSDDBG_FACILITY NFSDDBG_PROC

Expand Down
4 changes: 2 additions & 2 deletions fs/nfsd/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
*/
#include <linux/file.h>

#include <linux/nfsd/cache.h>
#include <linux/nfsd/xdr4.h>
#include "cache.h"
#include "xdr4.h"
#include "vfs.h"

#define NFSDDBG_FACILITY NFSDDBG_PROC
Expand Down
5 changes: 3 additions & 2 deletions fs/nfsd/nfs4recover.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@
*
*/

#include <linux/nfsd/nfsd.h>
#include <linux/nfsd/state.h>
#include <linux/file.h>
#include <linux/namei.h>
#include <linux/crypto.h>
#include <linux/sched.h>

#include "nfsd.h"
#include "state.h"
#include "vfs.h"

#define NFSDDBG_FACILITY NFSDDBG_PROC
Expand Down
2 changes: 1 addition & 1 deletion fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@

#include <linux/file.h>
#include <linux/smp_lock.h>
#include <linux/nfsd/xdr4.h>
#include <linux/namei.h>
#include <linux/swap.h>
#include <linux/sunrpc/svcauth_gss.h>
#include <linux/sunrpc/clnt.h>
#include "xdr4.h"
#include "vfs.h"

#define NFSDDBG_FACILITY NFSDDBG_PROC
Expand Down
3 changes: 2 additions & 1 deletion fs/nfsd/nfs4xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@
#include <linux/namei.h>
#include <linux/statfs.h>
#include <linux/utsname.h>
#include <linux/nfsd/xdr4.h>
#include <linux/nfsd_idmap.h>
#include <linux/nfs4_acl.h>
#include <linux/sunrpc/svcauth_gss.h>

#include "xdr4.h"
#include "vfs.h"

#define NFSDDBG_FACILITY NFSDDBG_XDR
Expand Down
4 changes: 2 additions & 2 deletions fs/nfsd/nfscache.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
*/

#include <linux/nfsd/nfsd.h>
#include <linux/nfsd/cache.h>
#include "nfsd.h"
#include "cache.h"

/* Size of reply cache. Common values are:
* 4.3BSD: 128
Expand Down
5 changes: 3 additions & 2 deletions fs/nfsd/nfsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@

#include <linux/nfsd_idmap.h>
#include <linux/sunrpc/svcsock.h>
#include <linux/nfsd/nfsd.h>
#include <linux/nfsd/cache.h>
#include <linux/nfsd/syscall.h>
#include <linux/lockd/lockd.h>
#include <linux/sunrpc/clnt.h>

#include "nfsd.h"
#include "cache.h"

/*
* We have a single directory with 9 nodes in it.
*/
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion fs/nfsd/nfsfh.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <linux/exportfs.h>

#include <linux/sunrpc/svcauth_gss.h>
#include <linux/nfsd/nfsd.h>
#include "nfsd.h"
#include "vfs.h"
#include "auth.h"

Expand Down
4 changes: 2 additions & 2 deletions fs/nfsd/nfsproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

#include <linux/namei.h>

#include <linux/nfsd/cache.h>
#include <linux/nfsd/xdr.h>
#include "cache.h"
#include "xdr.h"
#include "vfs.h"

typedef struct svc_rqst svc_rqst;
Expand Down
4 changes: 2 additions & 2 deletions fs/nfsd/nfssvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@

#include <linux/sunrpc/stats.h>
#include <linux/sunrpc/svcsock.h>
#include <linux/nfsd/nfsd.h>
#include <linux/nfsd/cache.h>
#include <linux/lockd/bind.h>
#include <linux/nfsacl.h>
#include <linux/seq_file.h>
#include "nfsd.h"
#include "cache.h"
#include "vfs.h"

#define NFSDDBG_FACILITY NFSDDBG_SVC
Expand Down
2 changes: 1 addition & 1 deletion fs/nfsd/nfsxdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
*/

#include <linux/nfsd/xdr.h>
#include "xdr.h"
#include "auth.h"

#define NFSDDBG_FACILITY NFSDDBG_XDR
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions fs/nfsd/stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@

#include <linux/seq_file.h>
#include <linux/module.h>

#include <linux/sunrpc/stats.h>
#include <linux/nfsd/nfsd.h>
#include <linux/nfsd/stats.h>

#include "nfsd.h"

struct nfsd_stats nfsdstats;
struct svc_stat nfsd_svcstats = {
.program = &nfsd_program,
Expand Down
18 changes: 10 additions & 8 deletions fs/nfsd/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,25 @@
#include <linux/fcntl.h>
#include <linux/namei.h>
#include <linux/delay.h>
#include <linux/nfsd/nfsd.h>
#ifdef CONFIG_NFSD_V3
#include <linux/nfsd/xdr3.h>
#endif /* CONFIG_NFSD_V3 */
#include <linux/quotaops.h>
#include <linux/fsnotify.h>
#include <linux/posix_acl_xattr.h>
#include <linux/xattr.h>
#include <linux/jhash.h>
#include <linux/ima.h>
#include <asm/uaccess.h>

#ifdef CONFIG_NFSD_V3
#include "xdr3.h"
#endif /* CONFIG_NFSD_V3 */

#ifdef CONFIG_NFSD_V4
#include <linux/nfs4_acl.h>
#include <linux/nfsd_idmap.h>
#endif /* CONFIG_NFSD_V4 */
#include <linux/jhash.h>
#include <linux/ima.h>
#include "vfs.h"

#include <asm/uaccess.h>
#include "nfsd.h"
#include "vfs.h"

#define NFSDDBG_FACILITY NFSDDBG_FILEOP

Expand Down
2 changes: 1 addition & 1 deletion include/linux/nfsd/xdr.h → fs/nfsd/xdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define LINUX_NFSD_H

#include <linux/vfs.h>
#include <linux/nfsd/nfsd.h>
#include "nfsd.h"

struct nfsd_fhandle {
struct svc_fh fh;
Expand Down
2 changes: 1 addition & 1 deletion include/linux/nfsd/xdr3.h → fs/nfsd/xdr3.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#ifndef _LINUX_NFSD_XDR3_H
#define _LINUX_NFSD_XDR3_H

#include <linux/nfsd/xdr.h>
#include "xdr.h"

struct nfsd3_sattrargs {
struct svc_fh fh;
Expand Down
4 changes: 2 additions & 2 deletions include/linux/nfsd/xdr4.h → fs/nfsd/xdr4.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
#ifndef _LINUX_NFSD_XDR4_H
#define _LINUX_NFSD_XDR4_H

#include <linux/nfsd/state.h>
#include <linux/nfsd/nfsd.h>
#include "state.h"
#include "nfsd.h"

#define NFSD4_MAX_TAGLEN 128
#define XDR_LEN(n) (((n) + 3) & ~3)
Expand Down

0 comments on commit 9a74af2

Please sign in to comment.