]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: close_bdev_exclusive() should use the same @flags as the matching open_bdev_ex...
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)
commit7cac13ad9a70a5ee8facc1c3d121fe411d4798e9
treef0c9c9b2d21a1258939b99ec37a2d11396583ea6
parenta9fff95a294522b332c7ec6b94dfa963af367528
btrfs: close_bdev_exclusive() should use the same @flags as the matching open_bdev_exclusive()

In the failure path of __btrfs_open_devices(), close_bdev_exclusive()
is called with @flags which doesn't match the one used during
open_bdev_exclusive().  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c