blk-cgroup: Kill the header printed at the start of blkio.weight_device file
authorVivek Goyal <vgoyal@redhat.com>
Wed, 15 Sep 2010 21:06:32 +0000 (17:06 -0400)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 16 Sep 2010 06:40:42 +0000 (08:40 +0200)
o Kill extra "dev weight" header which is printed when somebody reads
  blkio.weight_device file. This really seems to be out of convention. No other
  blkio files are printing any header at the start of file. I think it is ok
  to just print values and how to interpret values should be part of
  documentation.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-cgroup.c

index a6809645d212d9cf970b85473e3d9c05bc4ba652..c1a39d90d14ad7c0e49ff94dc989357729402945 100644 (file)
@@ -811,8 +811,6 @@ static int blkiocg_weight_device_read(struct cgroup *cgrp, struct cftype *cft,
        struct blkio_cgroup *blkcg;
        struct blkio_policy_node *pn;
 
-       seq_printf(m, "dev\tweight\n");
-
        blkcg = cgroup_to_blkio_cgroup(cgrp);
        if (!list_empty(&blkcg->policy_list)) {
                spin_lock_irq(&blkcg->lock);