diff options
| -rw-r--r-- | fs/gfs2/mount.c | 8 | ||||
| -rw-r--r-- | fs/gfs2/sys.c | 6 | ||||
| -rw-r--r-- | fs/gfs2/sys.h | 4 |
3 files changed, 0 insertions, 18 deletions
diff --git a/fs/gfs2/mount.c b/fs/gfs2/mount.c index 8c0f16e301f6..3cb0a44ba023 100644 --- a/fs/gfs2/mount.c +++ b/fs/gfs2/mount.c | |||
| @@ -85,14 +85,6 @@ int gfs2_mount_args(struct gfs2_sbd *sdp, char *data_arg, int remount) | |||
| 85 | int error = 0; | 85 | int error = 0; |
| 86 | 86 | ||
| 87 | if (!remount) { | 87 | if (!remount) { |
| 88 | /* If someone preloaded options, use those instead */ | ||
| 89 | spin_lock(&gfs2_sys_margs_lock); | ||
| 90 | if (gfs2_sys_margs) { | ||
| 91 | data = gfs2_sys_margs; | ||
| 92 | gfs2_sys_margs = NULL; | ||
| 93 | } | ||
| 94 | spin_unlock(&gfs2_sys_margs_lock); | ||
| 95 | |||
| 96 | /* Set some defaults */ | 88 | /* Set some defaults */ |
| 97 | args->ar_quota = GFS2_QUOTA_DEFAULT; | 89 | args->ar_quota = GFS2_QUOTA_DEFAULT; |
| 98 | args->ar_data = GFS2_DATA_DEFAULT; | 90 | args->ar_data = GFS2_DATA_DEFAULT; |
diff --git a/fs/gfs2/sys.c b/fs/gfs2/sys.c index 298bcb6c2713..26c1fa777a95 100644 --- a/fs/gfs2/sys.c +++ b/fs/gfs2/sys.c | |||
| @@ -26,9 +26,6 @@ | |||
| 26 | #include "quota.h" | 26 | #include "quota.h" |
| 27 | #include "util.h" | 27 | #include "util.h" |
| 28 | 28 | ||
| 29 | char *gfs2_sys_margs; | ||
| 30 | spinlock_t gfs2_sys_margs_lock; | ||
| 31 | |||
| 32 | static ssize_t id_show(struct gfs2_sbd *sdp, char *buf) | 29 | static ssize_t id_show(struct gfs2_sbd *sdp, char *buf) |
| 33 | { | 30 | { |
| 34 | return snprintf(buf, PAGE_SIZE, "%u:%u\n", | 31 | return snprintf(buf, PAGE_SIZE, "%u:%u\n", |
| @@ -477,8 +474,6 @@ static struct kset_uevent_ops gfs2_uevent_ops = { | |||
| 477 | 474 | ||
| 478 | int gfs2_sys_init(void) | 475 | int gfs2_sys_init(void) |
| 479 | { | 476 | { |
| 480 | gfs2_sys_margs = NULL; | ||
| 481 | spin_lock_init(&gfs2_sys_margs_lock); | ||
| 482 | gfs2_kset = kset_create_and_add("gfs2", &gfs2_uevent_ops, fs_kobj); | 477 | gfs2_kset = kset_create_and_add("gfs2", &gfs2_uevent_ops, fs_kobj); |
| 483 | if (!gfs2_kset) | 478 | if (!gfs2_kset) |
| 484 | return -ENOMEM; | 479 | return -ENOMEM; |
| @@ -487,7 +482,6 @@ int gfs2_sys_init(void) | |||
| 487 | 482 | ||
| 488 | void gfs2_sys_uninit(void) | 483 | void gfs2_sys_uninit(void) |
| 489 | { | 484 | { |
| 490 | kfree(gfs2_sys_margs); | ||
| 491 | kset_unregister(gfs2_kset); | 485 | kset_unregister(gfs2_kset); |
| 492 | } | 486 | } |
| 493 | 487 | ||
diff --git a/fs/gfs2/sys.h b/fs/gfs2/sys.h index 1ca8cdac5304..e94560e836d7 100644 --- a/fs/gfs2/sys.h +++ b/fs/gfs2/sys.h | |||
| @@ -13,10 +13,6 @@ | |||
| 13 | #include <linux/spinlock.h> | 13 | #include <linux/spinlock.h> |
| 14 | struct gfs2_sbd; | 14 | struct gfs2_sbd; |
| 15 | 15 | ||
| 16 | /* Allow args to be passed to GFS2 when using an initial ram disk */ | ||
| 17 | extern char *gfs2_sys_margs; | ||
| 18 | extern spinlock_t gfs2_sys_margs_lock; | ||
| 19 | |||
| 20 | int gfs2_sys_fs_add(struct gfs2_sbd *sdp); | 16 | int gfs2_sys_fs_add(struct gfs2_sbd *sdp); |
| 21 | void gfs2_sys_fs_del(struct gfs2_sbd *sdp); | 17 | void gfs2_sys_fs_del(struct gfs2_sbd *sdp); |
| 22 | 18 | ||
