]> git.karo-electronics.de Git - karo-tx-linux.git/commit
block: remove redundant check to bd_openers()
authorGuo Chao <yan@linux.vnet.ibm.com>
Wed, 20 Feb 2013 02:13:53 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:16 +0000 (16:52 +1100)
commit7725de9b71121105c2caa51becf91a36920c193c
treedd7752e7f9cb73665dcccf7a8c8fcd13f26fd303
parente1b20bca11278c76a6d4a89576dcd39eef8e4a15
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