]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block: remove redundant check to bd_openers()
authorGuo Chao <yan@linux.vnet.ibm.com>
Thu, 7 Feb 2013 01:26:05 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:12 +0000 (16:46 +1100)
commita64eaf59b15a57cb4ba8a05bdaa77e99ce376915
tree4318c5e5e79ea422c283c867c627a9b6cf91ec14
parent1c9763f72048f80d551e554c4bd76fc4950908c9
block: remove redundant check to bd_openers()

bd_openers is stable under bd_mutex, no need to check it twice.

Signed-off-by: Guo Chao <yan@linux.vnet.ibm.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Guo Chao <yan@linux.vnet.ibm.com>
Cc: M. Hindess <hindessm@uk.ibm.com>
Cc: Nikanth Karthikesan <knikanth@suse.de>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/block_dev.c