projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
731edac
)
btrfs: close_bdev_exclusive() should use the same @flags as the matching open_bdev_ex...
author
Tejun Heo
<tj@kernel.org>
Sat, 13 Nov 2010 10:55:17 +0000
(11:55 +0100)
committer
Tejun Heo
<tj@kernel.org>
Sat, 13 Nov 2010 10:55:17 +0000
(11:55 +0100)
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
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/volumes.c
b/fs/btrfs/volumes.c
index cc04dc1445d64da8694401c2cbc2fde27105b8f9..d39596224d2104ae33a05819d3b56608be1a8f48 100644
(file)
--- a/
fs/btrfs/volumes.c
+++ b/
fs/btrfs/volumes.c
@@
-638,7
+638,7
@@
static int __btrfs_open_devices(struct btrfs_fs_devices *fs_devices,
error_brelse:
brelse(bh);
error_close:
- close_bdev_exclusive(bdev,
FMODE_READ
);
+ close_bdev_exclusive(bdev,
flags
);
error:
continue;
}