From: Tejun Heo Date: Tue, 13 Dec 2011 23:33:38 +0000 (+0100) Subject: block: misc updates to blk_get_queue() X-Git-Tag: v3.3-rc1~49^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09ac46c429464c919d04bb737b27edd84d944f02;p=pandora-kernel.git block: misc updates to blk_get_queue() * blk_get_queue() is peculiar in that it returns 0 on success and 1 on failure instead of 0 / -errno or boolean. Update it such that it returns %true on success and %false on failure. * Make sure the caller checks for the return value. * Separate out __blk_get_queue() which doesn't check whether @q is dead and put it in blk.h. This will be used later. This patch doesn't introduce any functional changes. Signed-off-by: Tejun Heo Signed-off-by: Jens Axboe --- Reading git-diff-tree failed