block: reorganize claim/release implementation
authorTejun Heo <tj@kernel.org>
Sat, 13 Nov 2010 10:55:17 +0000 (11:55 +0100)
committerTejun Heo <tj@kernel.org>
Sat, 13 Nov 2010 10:55:17 +0000 (11:55 +0100)
commit6a027eff62f6ae32d49f2ae5dadd6f4eee1ddae2
tree3ab86a6fb37d1e4a7d21708feafbb58d1be72e5c
parente525fd89d380c4a94c0d63913a1dd1a593ed25e7
block: reorganize claim/release implementation

With claim/release rolled into blkdev_get/put(), there's no reason to
keep bd_abort/finish_claim(), __bd_claim() and bd_release() as
separate functions.  It only makes the code difficult to follow.
Collapse them into blkdev_get/put().  This will ease future changes
around claim/release.

Signed-off-by: Tejun Heo <tj@kernel.org>
fs/block_dev.c