From: Christoph Hellwig Date: Sun, 18 Jan 2015 15:16:30 +0000 (+0100) Subject: block: add a helper to free bio bounce buffer pages X-Git-Tag: fixes-v4.0-rc1~118^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dfa0f68c040080c5fefa7211b4ec34d202f8570;p=pandora-kernel.git block: add a helper to free bio bounce buffer pages The code sniplet to walk all bio_vecs and free their pages is opencoded in way to many places, so factor it into a helper. Also convert the slightly more complex cases in bio_kern_endio and __bio_copy_iov where we break the freeing from an existing loop into a separate one. Signed-off-by: Christoph Hellwig Reviewed-by: Ming Lei Signed-off-by: Jens Axboe --- Reading git-diff-tree failed