Skip to content

Commit

Permalink
NFS: Move declaration of nfs_mount() to fs/nfs/internal.h
Browse files Browse the repository at this point in the history
Clean up:  The nfs_mount() function is not to be used outside of the
NFS client.  Move its public declaration to fs/nfs/internal.h.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Dec 23, 2008
1 parent 7b5d2b9 commit 146ec94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions fs/nfs/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ struct nfs_parsed_mount_data {
struct security_mnt_opts lsm_opts;
};

/* mount_clnt.c */
extern int nfs_mount(struct sockaddr *, size_t, char *, char *,
int, int, struct nfs_fh *);

/* client.c */
extern struct rpc_program nfs_program;

Expand Down
2 changes: 2 additions & 0 deletions fs/nfs/nfsroot.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
#include <net/ipconfig.h>
#include <linux/parser.h>

#include "internal.h"

/* Define this to allow debugging output */
#undef NFSROOT_DEBUG
#define NFSDBG_FACILITY NFSDBG_ROOT
Expand Down
6 changes: 0 additions & 6 deletions include/linux/nfs_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -532,12 +532,6 @@ static inline void nfs3_forget_cached_acls(struct inode *inode)
}
#endif /* CONFIG_NFS_V3_ACL */

/*
* linux/fs/mount_clnt.c
*/
extern int nfs_mount(struct sockaddr *, size_t, char *, char *,
int, int, struct nfs_fh *);

/*
* inline functions
*/
Expand Down

0 comments on commit 146ec94

Please sign in to comment.