diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2009-05-13 10:06:25 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2009-05-13 10:06:25 -0400 |
commit | 9582d41135c0d362f04ed6bf3dc8d693a7eafee2 (patch) | |
tree | 1c170478769db6383485c231f75186e2d95d93fe /fs/gfs2 | |
parent | 48c2b613616235d7c97fda5982f50100a6c79166 (diff) |
GFS2: Remove a couple of unused sysfs entries
These two tunables are pointless and would never need to be
changed anyway. There is also a race between them and umount
as the deamons which they refer to might have gone away. The
easiest way to fix the race is to remove the interface.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/sys.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/gfs2/sys.c b/fs/gfs2/sys.c index d53b22edc980..894bf773ec93 100644 --- a/fs/gfs2/sys.c +++ b/fs/gfs2/sys.c | |||
@@ -530,15 +530,6 @@ static ssize_t name##_store(struct gfs2_sbd *sdp, const char *buf, size_t len)\ | |||
530 | } \ | 530 | } \ |
531 | TUNE_ATTR_2(name, name##_store) | 531 | TUNE_ATTR_2(name, name##_store) |
532 | 532 | ||
533 | #define TUNE_ATTR_DAEMON(name, process) \ | ||
534 | static ssize_t name##_store(struct gfs2_sbd *sdp, const char *buf, size_t len)\ | ||
535 | { \ | ||
536 | ssize_t r = tune_set(sdp, &sdp->sd_tune.gt_##name, 1, buf, len); \ | ||
537 | wake_up_process(sdp->sd_##process); \ | ||
538 | return r; \ | ||
539 | } \ | ||
540 | TUNE_ATTR_2(name, name##_store) | ||
541 | |||
542 | TUNE_ATTR(incore_log_blocks, 0); | 533 | TUNE_ATTR(incore_log_blocks, 0); |
543 | TUNE_ATTR(log_flush_secs, 0); | 534 | TUNE_ATTR(log_flush_secs, 0); |
544 | TUNE_ATTR(quota_warn_period, 0); | 535 | TUNE_ATTR(quota_warn_period, 0); |
@@ -550,8 +541,6 @@ TUNE_ATTR(new_files_jdata, 0); | |||
550 | TUNE_ATTR(quota_simul_sync, 1); | 541 | TUNE_ATTR(quota_simul_sync, 1); |
551 | TUNE_ATTR(stall_secs, 1); | 542 | TUNE_ATTR(stall_secs, 1); |
552 | TUNE_ATTR(statfs_quantum, 1); | 543 | TUNE_ATTR(statfs_quantum, 1); |
553 | TUNE_ATTR_DAEMON(recoverd_secs, recoverd_process); | ||
554 | TUNE_ATTR_DAEMON(logd_secs, logd_process); | ||
555 | TUNE_ATTR_3(quota_scale, quota_scale_show, quota_scale_store); | 544 | TUNE_ATTR_3(quota_scale, quota_scale_show, quota_scale_store); |
556 | 545 | ||
557 | static struct attribute *tune_attrs[] = { | 546 | static struct attribute *tune_attrs[] = { |
@@ -565,8 +554,6 @@ static struct attribute *tune_attrs[] = { | |||
565 | &tune_attr_quota_simul_sync.attr, | 554 | &tune_attr_quota_simul_sync.attr, |
566 | &tune_attr_stall_secs.attr, | 555 | &tune_attr_stall_secs.attr, |
567 | &tune_attr_statfs_quantum.attr, | 556 | &tune_attr_statfs_quantum.attr, |
568 | &tune_attr_recoverd_secs.attr, | ||
569 | &tune_attr_logd_secs.attr, | ||
570 | &tune_attr_quota_scale.attr, | 557 | &tune_attr_quota_scale.attr, |
571 | &tune_attr_new_files_jdata.attr, | 558 | &tune_attr_new_files_jdata.attr, |
572 | NULL, | 559 | NULL, |