block: use bd{grab,put}() instead of open-coding
authorIlya Dryomov <idryomov@gmail.com>
Fri, 20 Nov 2015 21:18:43 +0000 (22:18 +0100)
committerJens Axboe <axboe@fb.com>
Wed, 13 Jan 2016 17:24:27 +0000 (10:24 -0700)
commited8a9d2c816e0b0a2c5a605505e0f09ae9010dd6
treedb36fbeeb9480457e126a1e29e26acaf4011f8f4
parente36f6204288088fda50d1c84830340ccb70f85ff
block: use bd{grab,put}() instead of open-coding

- bd_acquire() and bd_forget() open-code bdgrab() and bdput()
- raw driver uses igrab() but never checks its return value and always
  holds another ref from bind_set() while calling it, so it's
  equivalent to bdgrab()

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/char/raw.c
fs/block_dev.c