block: bd_start_claiming cleanup
authorNick Piggin <npiggin@suse.de>
Tue, 25 May 2010 15:51:19 +0000 (01:51 +1000)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 10 Jun 2010 17:08:34 +0000 (19:08 +0200)
commitb0018361c3f934858592cbbb5e1a4f318c2a70ed
treefa14b78331f2683838a3aee5a694ec37911c4ea3
parentcf3425707ed9ce0d5ebaba20bc3d22dd39e52f2f
block: bd_start_claiming cleanup

I don't like the subtle multi-context code in bd_claim (ie.  detects where it
has been called based on bd_claiming). It seems clearer to just require a new
function to finish a 2-part claim.

Also improve commentary in bd_start_claiming as to how it should
be used.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fs/block_dev.c