Commit fa9df8e3 authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman

Staging: lustre: obdclass: obd_mount: Declare as static

Declare lustre_fs_type, do_lcfg, lustre_fill_super, lustre_put_lsi,
lustre_init_lsi, lustre_start_simple, server_name2index and
server_name2fsname as static since they are used only in this
particular file.Also remove corresponding declarations from header
files.
Signed-off-by: default avatarShraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 28fcc662
...@@ -383,12 +383,7 @@ struct lustre_mount_info { ...@@ -383,12 +383,7 @@ struct lustre_mount_info {
/****************** prototypes *********************/ /****************** prototypes *********************/
/* obd_mount.c */ /* obd_mount.c */
int server_name2fsname(const char *svname, char *fsname, const char **endptr);
int server_name2index(const char *svname, __u32 *idx, const char **endptr);
int lustre_put_lsi(struct super_block *sb);
int lustre_start_simple(char *obdname, char *type, char *uuid,
char *s1, char *s2, char *s3, char *s4);
int lustre_start_mgc(struct super_block *sb); int lustre_start_mgc(struct super_block *sb);
void lustre_register_client_fill_super(int (*cfs)(struct super_block *sb, void lustre_register_client_fill_super(int (*cfs)(struct super_block *sb,
struct vfsmount *mnt)); struct vfsmount *mnt));
......
...@@ -58,9 +58,6 @@ struct cfg_interop_param { ...@@ -58,9 +58,6 @@ struct cfg_interop_param {
int class_find_param(char *buf, char *key, char **valp); int class_find_param(char *buf, char *key, char **valp);
int class_parse_nid(char *buf, lnet_nid_t *nid, char **endh); int class_parse_nid(char *buf, lnet_nid_t *nid, char **endh);
int class_parse_nid_quiet(char *buf, lnet_nid_t *nid, char **endh); int class_parse_nid_quiet(char *buf, lnet_nid_t *nid, char **endh);
/* obd_mount.c */
int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd,
char *s1, char *s2, char *s3, char *s4);
......
...@@ -143,8 +143,8 @@ EXPORT_SYMBOL(lustre_end_log); ...@@ -143,8 +143,8 @@ EXPORT_SYMBOL(lustre_end_log);
/** lustre_cfg_bufs are a holdover from 1.4; we can still set these up from /** lustre_cfg_bufs are a holdover from 1.4; we can still set these up from
* lctl (and do for echo cli/srv. * lctl (and do for echo cli/srv.
*/ */
int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd, static int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd,
char *s1, char *s2, char *s3, char *s4) char *s1, char *s2, char *s3, char *s4)
{ {
struct lustre_cfg_bufs bufs; struct lustre_cfg_bufs bufs;
struct lustre_cfg *lcfg = NULL; struct lustre_cfg *lcfg = NULL;
...@@ -169,13 +169,12 @@ int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd, ...@@ -169,13 +169,12 @@ int do_lcfg(char *cfgname, lnet_nid_t nid, int cmd,
lustre_cfg_free(lcfg); lustre_cfg_free(lcfg);
return rc; return rc;
} }
EXPORT_SYMBOL(do_lcfg);
/** Call class_attach and class_setup. These methods in turn call /** Call class_attach and class_setup. These methods in turn call
* obd type-specific methods. * obd type-specific methods.
*/ */
int lustre_start_simple(char *obdname, char *type, char *uuid, static int lustre_start_simple(char *obdname, char *type, char *uuid,
char *s1, char *s2, char *s3, char *s4) char *s1, char *s2, char *s3, char *s4)
{ {
int rc; int rc;
CDEBUG(D_MOUNT, "Starting obd %s (typ=%s)\n", obdname, type); CDEBUG(D_MOUNT, "Starting obd %s (typ=%s)\n", obdname, type);
...@@ -488,7 +487,7 @@ static int lustre_stop_mgc(struct super_block *sb) ...@@ -488,7 +487,7 @@ static int lustre_stop_mgc(struct super_block *sb)
/***************** lustre superblock **************/ /***************** lustre superblock **************/
struct lustre_sb_info *lustre_init_lsi(struct super_block *sb) static struct lustre_sb_info *lustre_init_lsi(struct super_block *sb)
{ {
struct lustre_sb_info *lsi; struct lustre_sb_info *lsi;
...@@ -547,7 +546,7 @@ static int lustre_free_lsi(struct super_block *sb) ...@@ -547,7 +546,7 @@ static int lustre_free_lsi(struct super_block *sb)
/* The lsi has one reference for every server that is using the disk - /* The lsi has one reference for every server that is using the disk -
e.g. MDT, MGS, and potentially MGC */ e.g. MDT, MGS, and potentially MGC */
int lustre_put_lsi(struct super_block *sb) static int lustre_put_lsi(struct super_block *sb)
{ {
struct lustre_sb_info *lsi = s2lsi(sb); struct lustre_sb_info *lsi = s2lsi(sb);
...@@ -577,7 +576,8 @@ int lustre_put_lsi(struct super_block *sb) ...@@ -577,7 +576,8 @@ int lustre_put_lsi(struct super_block *sb)
* @param [out] endptr if endptr isn't NULL it is set to end of fsname * @param [out] endptr if endptr isn't NULL it is set to end of fsname
* rc < 0 on error * rc < 0 on error
*/ */
int server_name2fsname(const char *svname, char *fsname, const char **endptr) static int server_name2fsname(const char *svname, char *fsname,
const char **endptr)
{ {
const char *dash; const char *dash;
...@@ -597,13 +597,13 @@ int server_name2fsname(const char *svname, char *fsname, const char **endptr) ...@@ -597,13 +597,13 @@ int server_name2fsname(const char *svname, char *fsname, const char **endptr)
return 0; return 0;
} }
EXPORT_SYMBOL(server_name2fsname);
/* Get the index from the obd name. /* Get the index from the obd name.
rc = server type, or rc = server type, or
rc < 0 on error rc < 0 on error
if endptr isn't NULL it is set to end of name */ if endptr isn't NULL it is set to end of name */
int server_name2index(const char *svname, __u32 *idx, const char **endptr) static int server_name2index(const char *svname, __u32 *idx,
const char **endptr)
{ {
unsigned long index; unsigned long index;
int rc; int rc;
...@@ -642,7 +642,6 @@ int server_name2index(const char *svname, __u32 *idx, const char **endptr) ...@@ -642,7 +642,6 @@ int server_name2index(const char *svname, __u32 *idx, const char **endptr)
return rc; return rc;
} }
EXPORT_SYMBOL(server_name2index);
/*************** mount common between server and client ***************/ /*************** mount common between server and client ***************/
...@@ -1074,7 +1073,7 @@ struct lustre_mount_data2 { ...@@ -1074,7 +1073,7 @@ struct lustre_mount_data2 {
* and this is where we start setting things up. * and this is where we start setting things up.
* @param data Mount options (e.g. -o flock,abort_recov) * @param data Mount options (e.g. -o flock,abort_recov)
*/ */
int lustre_fill_super(struct super_block *sb, void *data, int silent) static int lustre_fill_super(struct super_block *sb, void *data, int silent)
{ {
struct lustre_mount_data *lmd; struct lustre_mount_data *lmd;
struct lustre_mount_data2 *lmd2 = data; struct lustre_mount_data2 *lmd2 = data;
...@@ -1185,7 +1184,7 @@ static void lustre_kill_super(struct super_block *sb) ...@@ -1185,7 +1184,7 @@ static void lustre_kill_super(struct super_block *sb)
/** Register the "lustre" fs type /** Register the "lustre" fs type
*/ */
struct file_system_type lustre_fs_type = { static struct file_system_type lustre_fs_type = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.name = "lustre", .name = "lustre",
.mount = lustre_mount, .mount = lustre_mount,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment