From: Tejun Heo Date: Fri, 17 Apr 2009 06:34:48 +0000 (+0200) Subject: block: include empty disks in /proc/diskstats X-Git-Tag: v2.6.30-rc4~65^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71982a409f12c50d011325a4471aa20666bb908d;p=pandora-kernel.git block: include empty disks in /proc/diskstats /proc/diskstats used to show stats for all disks whether they're zero-sized or not and their non-zero partitions. Commit 074a7aca7afa6f230104e8e65eba3420263714a5 accidentally changed the behavior such that it doesn't print out zero sized disks. This patch implements DISK_PITER_INCL_EMPTY_PART0 flag to partition iterator and uses it in diskstats_show() such that empty part0 is shown in /proc/diskstats. Reported and bisectd by Dianel Collins. Signed-off-by: Tejun Heo Reported-by: Daniel Collins Signed-off-by: Jens Axboe --- Reading git-diff-tree failed