kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] orangefs: Axe some dead code
@ 2016-11-21 22:17 Christophe JAILLET
  2016-11-22 15:49 ` Martin Brandenburg
  0 siblings, 1 reply; 10+ messages in thread
From: Christophe JAILLET @ 2016-11-21 22:17 UTC (permalink / raw)
  To: hubcap; +Cc: linux-kernel, kernel-janitors, Christophe JAILLET

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.

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


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-11-28 14:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-21 22:17 [PATCH] orangefs: Axe some dead code Christophe JAILLET
2016-11-22 15:49 ` Martin Brandenburg
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).