diff options
author | David Howells <dhowells@redhat.com> | 2006-06-09 09:34:33 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-09 09:34:33 -0400 |
commit | f7b422b17ee5ee4920e8ae24a6ad04bf3481ce72 (patch) | |
tree | 4ae8372762efc092ceb4f884b57cad1efe6594de /fs/nfs/proc.c | |
parent | 4e5ccf60c5aa79d325c123f47d288a068166f389 (diff) |
NFS: Split fs/nfs/inode.c
As fs/nfs/inode.c is rather large, heterogenous and unwieldy, the attached
patch splits it up into a number of files:
(*) fs/nfs/inode.c
Strictly inode specific functions.
(*) fs/nfs/super.c
Superblock management functions for NFS and NFS4, normal access, clones
and referrals. The NFS4 superblock functions _could_ move out into a
separate conditionally compiled file, but it's probably not worth it as
there're so many common bits.
(*) fs/nfs/namespace.c
Some namespace-specific functions have been moved here.
(*) fs/nfs/nfs4namespace.c
NFS4-specific namespace functions (this could be merged into the previous
file). This file is conditionally compiled.
(*) fs/nfs/internal.h
Inter-file declarations, plus a few simple utility functions moved from
fs/nfs/inode.c.
Additionally, all the in-.c-file externs have been moved here, and those
files they were moved from now includes this file.
For the most part, the functions have not been changed, only some multiplexor
functions have changed significantly.
I've also:
(*) Added some extra banner comments above some functions.
(*) Rearranged the function order within the files to be more logical and
better grouped (IMO), though someone may prefer a different order.
(*) Reduced the number of #ifdefs in .c files.
(*) Added missing __init and __exit directives.
Signed-Off-By: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/nfs/proc.c')
-rw-r--r-- | fs/nfs/proc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfs/proc.c b/fs/nfs/proc.c index 9dd85cac2df0..b3899ea3229e 100644 --- a/fs/nfs/proc.c +++ b/fs/nfs/proc.c | |||
@@ -44,11 +44,10 @@ | |||
44 | #include <linux/nfs_page.h> | 44 | #include <linux/nfs_page.h> |
45 | #include <linux/lockd/bind.h> | 45 | #include <linux/lockd/bind.h> |
46 | #include <linux/smp_lock.h> | 46 | #include <linux/smp_lock.h> |
47 | #include "internal.h" | ||
47 | 48 | ||
48 | #define NFSDBG_FACILITY NFSDBG_PROC | 49 | #define NFSDBG_FACILITY NFSDBG_PROC |
49 | 50 | ||
50 | extern struct rpc_procinfo nfs_procedures[]; | ||
51 | |||
52 | /* | 51 | /* |
53 | * Bare-bones access to getattr: this is for nfs_read_super. | 52 | * Bare-bones access to getattr: this is for nfs_read_super. |
54 | */ | 53 | */ |
@@ -611,8 +610,6 @@ nfs_proc_pathconf(struct nfs_server *server, struct nfs_fh *fhandle, | |||
611 | return 0; | 610 | return 0; |
612 | } | 611 | } |
613 | 612 | ||
614 | extern u32 * nfs_decode_dirent(u32 *, struct nfs_entry *, int); | ||
615 | |||
616 | static int nfs_read_done(struct rpc_task *task, struct nfs_read_data *data) | 613 | static int nfs_read_done(struct rpc_task *task, struct nfs_read_data *data) |
617 | { | 614 | { |
618 | if (task->tk_status >= 0) { | 615 | if (task->tk_status >= 0) { |