projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
btrfs: get the device in write mode when deleting it
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
fs
/
btrfs
/
volumes.c
diff --git
a/fs/btrfs/volumes.c
b/fs/btrfs/volumes.c
index
5cce6aa
..
86279c3
100644
(file)
--- a/
fs/btrfs/volumes.c
+++ b/
fs/btrfs/volumes.c
@@
-1431,7
+1431,7
@@
int btrfs_rm_device(struct btrfs_root *root, char *device_path)
}
} else {
ret = btrfs_get_bdev_and_sb(device_path,
- FMODE_
READ
| FMODE_EXCL,
+ FMODE_
WRITE
| FMODE_EXCL,
root->fs_info->bdev_holder, 0,
&bdev, &bh);
if (ret)