bcache: Use standard utility code
authorKent Overstreet <koverstreet@google.com>
Fri, 7 Jun 2013 01:15:57 +0000 (18:15 -0700)
committerKent Overstreet <kmo@daterainc.com>
Mon, 1 Jul 2013 21:43:53 +0000 (14:43 -0700)
commit8e51e414a3c6d92ef2cc41720c67342a8e2c0bf7
tree3155648dff173925a882ee182cd188e246ce9498
parent47cd2eb0ee05d9b1f8acd4808a1c829d63e93ac1
bcache: Use standard utility code

Some of bcache's utility code has made it into the rest of the kernel,
so drop the bcache versions.

Bcache used to have a workaround for allocating from a bio set under
generic_make_request() (if you allocated more than once, the bios you
already allocated would get stuck on current->bio_list when you
submitted, and you'd risk deadlock) - bcache would mask out __GFP_WAIT
when allocating bios under generic_make_request() so that allocation
could fail and it could retry from workqueue. But bio_alloc_bioset() has
a workaround now, so we can drop this hack and the associated error
handling.

Signed-off-by: Kent Overstreet <koverstreet@google.com>
drivers/md/bcache/btree.c
drivers/md/bcache/debug.c
drivers/md/bcache/io.c
drivers/md/bcache/movinggc.c
drivers/md/bcache/request.c
drivers/md/bcache/util.c
drivers/md/bcache/util.h
drivers/md/bcache/writeback.c