diff options
author | Tejun Heo <tj@kernel.org> | 2010-11-13 11:55:17 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-11-13 11:55:17 +0100 |
commit | 75f1dc0d076d1c1168f2115f1941ea627d38bd5a (patch) | |
tree | af12858b842579e8924b30cb636b96fcca6f46b1 /fs/btrfs/volumes.c | |
parent | block: reorganize claim/release implementation (diff) | |
download | linux-75f1dc0d076d1c1168f2115f1941ea627d38bd5a.tar.xz linux-75f1dc0d076d1c1168f2115f1941ea627d38bd5a.zip |
block: check bdev_read_only() from blkdev_get()
bdev read-only status can be queried using bdev_read_only() and may
change while the device is being opened. Enforce it by checking it
from blkdev_get() after open succeeds.
This makes bdev_read_only() check in open_bdev_exclusive() and
fsg_lun_open() unnecessary. Drop them.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: linux-usb@vger.kernel.org
Diffstat (limited to 'fs/btrfs/volumes.c')
0 files changed, 0 insertions, 0 deletions