From: Jens Axboe Date: Wed, 7 May 2008 08:15:46 +0000 (+0200) Subject: block: avoid duplicate calls to get_part() in disk stat code X-Git-Tag: v2.6.26-rc2~33^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28f13702f03e527fcb979747a882cf366c489c50;p=pandora-kernel.git block: avoid duplicate calls to get_part() in disk stat code get_part() is fairly expensive, as it O(N) loops over partitions to find the right one. In lots of normal IO paths we end up looking up the partition twice, to make matters even worse. Change the stat add code to accept a passed in partition instead. Signed-off-by: Jens Axboe --- Reading git-diff-tree failed