summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ceph/super.c4
-rw-r--r--fs/ceph/super.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index ab950fce4172..81916250f0b6 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -314,7 +314,7 @@ static int parse_mount_args(struct ceph_client *client,
int err;
substring_t argstr[MAX_OPT_ARGS];
int num_mon;
- struct ceph_entity_addr mon_addr[CEPH_MAX_MON_MOUNT_ADDR];
+ struct ceph_entity_addr mon_addr[CEPH_MAX_MON];
int i;
dout("parse_mount_args dev_name '%s'\n", dev_name);
@@ -344,7 +344,7 @@ static int parse_mount_args(struct ceph_client *client,
/* get mon ip(s) */
err = ceph_parse_ips(dev_name, *path, mon_addr,
- CEPH_MAX_MON_MOUNT_ADDR, &num_mon);
+ CEPH_MAX_MON, &num_mon);
if (err < 0)
return err;
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 75556e97e865..3af42d9097ec 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -47,8 +47,6 @@
(!!((client)->mount_args.flags & CEPH_OPT_##opt))
-#define CEPH_MAX_MON_MOUNT_ADDR 5
-
struct ceph_mount_args {
int sb_flags;
int flags;