From: Martin Brandenburg <martin@omnibond.com>
To: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: hubcap@omnibond.com, linux-kernel@vger.kernel.org,
kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] orangefs: Axe some dead code
Date: Tue, 22 Nov 2016 10:49:23 -0500 (EST) [thread overview]
Message-ID: <alpine.BSO.2.20.1611221048250.48648@x220.mkb.name> (raw)
In-Reply-To: <20161121221702.6438-1-christophe.jaillet@wanadoo.fr>
On Mon, 21 Nov 2016, Christophe JAILLET wrote:
> The "perf_counter_reset" case has already been handled above.
> Moreover "ORANGEFS_PARAM_REQUEST_OP_READAHEAD_COUNT_SIZE" is not a really
> consistent.
> It is likely that this (dead) code is a cut and paste left over.
That's exactly what this is.
Reviewed-by: Martin Brandenburg <martin@omnibond.com>
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
> ---
> fs/orangefs/orangefs-sysfs.c | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/fs/orangefs/orangefs-sysfs.c b/fs/orangefs/orangefs-sysfs.c
> index a799546a67f7..084954448f18 100644
> --- a/fs/orangefs/orangefs-sysfs.c
> +++ b/fs/orangefs/orangefs-sysfs.c
> @@ -609,15 +609,6 @@ static ssize_t sysfs_service_op_store(struct kobject *kobj,
> new_op->upcall.req.param.u.value32[0] = val1;
> new_op->upcall.req.param.u.value32[1] = val2;
> goto value_set;
> - } else if (!strcmp(attr->attr.name,
> - "perf_counter_reset")) {
> - if ((val > 0)) {
> - new_op->upcall.req.param.op =
> - ORANGEFS_PARAM_REQUEST_OP_READAHEAD_COUNT_SIZE;
> - } else {
> - rc = 0;
> - goto out;
> - }
> }
>
> } else if (!strcmp(kobj->name, ACACHE_KOBJ_ID)) {
> --
> 2.9.3
>
>
next prev parent reply other threads:[~2016-11-22 15:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-21 22:17 Christophe JAILLET
2016-11-22 15:49 ` Martin Brandenburg [this message]
2016-11-24 12:31 ` Mike Marshall
2016-11-25 21:51 ` Dan Carpenter
2016-11-25 23:09 ` Mike Marshall
2016-11-26 10:02 ` Dan Carpenter
2016-11-26 13:51 ` Mike Marshall
2016-11-28 11:07 ` Dan Carpenter
2016-11-28 14:06 ` Mike Marshall
2016-11-28 14:36 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.BSO.2.20.1611221048250.48648@x220.mkb.name \
--to=martin@omnibond.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=hubcap@omnibond.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®