projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a68d593
)
Btrfs: Only open block devices once during mount -o subvol=
author
Chris Mason
<chris.mason@oracle.com>
Thu, 8 May 2008 19:05:58 +0000
(15:05 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:02 +0000
(11:04 -0400)
btrfs_open_devices needed a check to see if the device was already
open.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/volumes.c
b/fs/btrfs/volumes.c
index 55da5f0c56e3dddd9a14d7ac633b46d95135fef6..aa001b08ced09eee2be669cbddd1ee5ef37d6c5d 100644
(file)
--- a/
fs/btrfs/volumes.c
+++ b/
fs/btrfs/volumes.c
@@
-196,6
+196,9
@@
int btrfs_open_devices(struct btrfs_fs_devices *fs_devices,
mutex_lock(&uuid_mutex);
list_for_each(cur, head) {
device = list_entry(cur, struct btrfs_device, dev_list);
+ if (device->bdev)
+ continue;
+
bdev = open_bdev_excl(device->name, flags, holder);
if (IS_ERR(bdev)) {