Skip to content

Commit af41d7b

Browse files
rhvgoyalJens Axboe
authored andcommitted
blk-cgroup: Kill the header printed at the start of blkio.weight_device 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>
1 parent 38b6f45 commit af41d7b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎block/blk-cgroup.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,6 @@ static int blkiocg_weight_device_read(struct cgroup *cgrp, struct cftype *cft,
811811
struct blkio_cgroup *blkcg;
812812
struct blkio_policy_node *pn;
813813

814-
seq_printf(m, "dev\tweight\n");
815-
816814
blkcg = cgroup_to_blkio_cgroup(cgrp);
817815
if (!list_empty(&blkcg->policy_list)) {
818816
spin_lock_irq(&blkcg->lock);

0 commit comments

Comments
 (0)