diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2009-09-09 10:59:35 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2009-09-09 10:59:35 -0400 |
commit | 2b88f7c535a8125213def012a67c1b0a667ceb2e (patch) | |
tree | 9351a2c0a444c5054bf9b4744f37b3ac30a2ab32 /fs/gfs2/sys.c | |
parent | acf7e2444acfaf4c8540603b76d71010eea3fc24 (diff) |
GFS2: Remove unused sysfs file
The /sys/fs/gfs2/<fsname>/lock_module/id file has been unused for
some time now, so we can remove it. We still accept the mount option
though, as userspace still sends that.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/sys.c')
-rw-r--r-- | fs/gfs2/sys.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/gfs2/sys.c b/fs/gfs2/sys.c index 0d4f7e974e9f..446329728d52 100644 --- a/fs/gfs2/sys.c +++ b/fs/gfs2/sys.c | |||
@@ -320,12 +320,6 @@ static ssize_t block_store(struct gfs2_sbd *sdp, const char *buf, size_t len) | |||
320 | return ret; | 320 | return ret; |
321 | } | 321 | } |
322 | 322 | ||
323 | static ssize_t lkid_show(struct gfs2_sbd *sdp, char *buf) | ||
324 | { | ||
325 | struct lm_lockstruct *ls = &sdp->sd_lockstruct; | ||
326 | return sprintf(buf, "%u\n", ls->ls_id); | ||
327 | } | ||
328 | |||
329 | static ssize_t lkfirst_show(struct gfs2_sbd *sdp, char *buf) | 323 | static ssize_t lkfirst_show(struct gfs2_sbd *sdp, char *buf) |
330 | { | 324 | { |
331 | struct lm_lockstruct *ls = &sdp->sd_lockstruct; | 325 | struct lm_lockstruct *ls = &sdp->sd_lockstruct; |
@@ -390,7 +384,6 @@ static struct gfs2_attr gdlm_attr_##_name = __ATTR(_name,_mode,_show,_store) | |||
390 | GDLM_ATTR(proto_name, 0444, proto_name_show, NULL); | 384 | GDLM_ATTR(proto_name, 0444, proto_name_show, NULL); |
391 | GDLM_ATTR(block, 0644, block_show, block_store); | 385 | GDLM_ATTR(block, 0644, block_show, block_store); |
392 | GDLM_ATTR(withdraw, 0644, withdraw_show, withdraw_store); | 386 | GDLM_ATTR(withdraw, 0644, withdraw_show, withdraw_store); |
393 | GDLM_ATTR(id, 0444, lkid_show, NULL); | ||
394 | GDLM_ATTR(jid, 0444, jid_show, NULL); | 387 | GDLM_ATTR(jid, 0444, jid_show, NULL); |
395 | GDLM_ATTR(first, 0444, lkfirst_show, NULL); | 388 | GDLM_ATTR(first, 0444, lkfirst_show, NULL); |
396 | GDLM_ATTR(first_done, 0444, first_done_show, NULL); | 389 | GDLM_ATTR(first_done, 0444, first_done_show, NULL); |
@@ -402,7 +395,6 @@ static struct attribute *lock_module_attrs[] = { | |||
402 | &gdlm_attr_proto_name.attr, | 395 | &gdlm_attr_proto_name.attr, |
403 | &gdlm_attr_block.attr, | 396 | &gdlm_attr_block.attr, |
404 | &gdlm_attr_withdraw.attr, | 397 | &gdlm_attr_withdraw.attr, |
405 | &gdlm_attr_id.attr, | ||
406 | &gdlm_attr_jid.attr, | 398 | &gdlm_attr_jid.attr, |
407 | &gdlm_attr_first.attr, | 399 | &gdlm_attr_first.attr, |
408 | &gdlm_attr_first_done.attr, | 400 | &gdlm_attr_first_done.attr, |