Skip to content

Commit

Permalink
GFS2: Remove ancient, unused code
Browse files Browse the repository at this point in the history
Remove code that used to have something to do with initrd
but has been unused for a long time.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
Steven Whitehouse committed Jan 5, 2009
1 parent 2bfb644 commit 2e20470
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
8 changes: 0 additions & 8 deletions fs/gfs2/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,6 @@ int gfs2_mount_args(struct gfs2_sbd *sdp, char *data_arg, int remount)
int error = 0;

if (!remount) {
/* If someone preloaded options, use those instead */
spin_lock(&gfs2_sys_margs_lock);
if (gfs2_sys_margs) {
data = gfs2_sys_margs;
gfs2_sys_margs = NULL;
}
spin_unlock(&gfs2_sys_margs_lock);

/* Set some defaults */
args->ar_quota = GFS2_QUOTA_DEFAULT;
args->ar_data = GFS2_DATA_DEFAULT;
Expand Down
6 changes: 0 additions & 6 deletions fs/gfs2/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
#include "quota.h"
#include "util.h"

char *gfs2_sys_margs;
spinlock_t gfs2_sys_margs_lock;

static ssize_t id_show(struct gfs2_sbd *sdp, char *buf)
{
return snprintf(buf, PAGE_SIZE, "%u:%u\n",
Expand Down Expand Up @@ -477,8 +474,6 @@ static struct kset_uevent_ops gfs2_uevent_ops = {

int gfs2_sys_init(void)
{
gfs2_sys_margs = NULL;
spin_lock_init(&gfs2_sys_margs_lock);
gfs2_kset = kset_create_and_add("gfs2", &gfs2_uevent_ops, fs_kobj);
if (!gfs2_kset)
return -ENOMEM;
Expand All @@ -487,7 +482,6 @@ int gfs2_sys_init(void)

void gfs2_sys_uninit(void)
{
kfree(gfs2_sys_margs);
kset_unregister(gfs2_kset);
}

4 changes: 0 additions & 4 deletions fs/gfs2/sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
#include <linux/spinlock.h>
struct gfs2_sbd;

/* Allow args to be passed to GFS2 when using an initial ram disk */
extern char *gfs2_sys_margs;
extern spinlock_t gfs2_sys_margs_lock;

int gfs2_sys_fs_add(struct gfs2_sbd *sdp);
void gfs2_sys_fs_del(struct gfs2_sbd *sdp);

Expand Down

0 comments on commit 2e20470

Please sign in to comment.