]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
block: restore original behavior of /proc/partition when there's no partition
authorTejun Heo <tj@kernel.org>
Mon, 1 Sep 2008 06:55:10 +0000 (08:55 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 1 Sep 2008 06:55:10 +0000 (08:55 +0200)
commitddef43a843f620c6742a06633739887a901ec06b
tree25eec6c04abf5c7ec3cb9aba2338d249844ffb61
parentbb23b431db7405f6d79f989ad0236bf6428ba1cb
block: restore original behavior of /proc/partition when there's no partition

/proc/partitions didn't use to write out the header if there was no
partition.  However, recent commit 66c64afe changed the behavior.
This is nothing major but there's no reason to change user visible
behavior without a good rationale.  Restore the original behavior.

Note that 2.6.28 has clean up changes scheduled which will replace
this rather hacky implementation.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Greg KH <greg@kroah.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/genhd.c