Skip to content

Commit

Permalink
blk-cgroup: Kill the header printed at the start of blkio.weight_devi…
Browse files Browse the repository at this point in the history
…ce file

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>
  • Loading branch information
Vivek Goyal authored and Jens Axboe committed Sep 16, 2010
1 parent 38b6f45 commit af41d7b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions block/blk-cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit af41d7b

Please sign in to comment.