orangefs: Axe some dead code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 21 Nov 2016 22:17:02 +0000 (23:17 +0100)
committerMike Marshall <hubcap@omnibond.com>
Mon, 12 Dec 2016 17:49:20 +0000 (12:49 -0500)
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>
Reviewed-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/orangefs-sysfs.c

index a799546a67f779ef92f30f3bf959c3fd177b9292..084954448f1868840cbf3291cbb226206c2ffd51 100644 (file)
@@ -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)) {