]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
block: add bio_kmalloc()
authorJens Axboe <jens.axboe@oracle.com>
Thu, 11 Sep 2008 11:17:37 +0000 (13:17 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:17 +0000 (08:56 +0200)
commit0a0d96b03a1f3bfd6bc3ea08008699e8e59fccd9
tree59cbbcb691a76121fba8d7af74d89558296d5834
parent3e6053d76dcbd92b2f9f4ad5ece9bce83149523e
block: add bio_kmalloc()

Not all callers need (or want!) the mempool backing guarentee, it
essentially means that you can only use bio_alloc() for short allocations
and not for preallocating some bio's at setup or init time.

So add bio_kmalloc() which does the same thing as bio_alloc(), except
it just uses kmalloc() as the backing instead of the bio mempools.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/bio.c
include/linux/bio.h