summaryrefslogtreecommitdiff
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2014-09-30 10:24:05 +0200
committerTakashi Iwai <tiwai@suse.de>2014-09-30 10:24:05 +0200
commit5498380e4f403c0938801e2cd6683353d0029cac (patch)
treec65ab75034cac68e45da4d5bbb1513728bacec84 /fs/btrfs/volumes.c
parente76bf634870e3c5e3a767ad575f1d404c9f1cab8 (diff)
parent82b925c405444b760e743b55a9ad498cb3551afe (diff)
downloadlwn-5498380e4f403c0938801e2cd6683353d0029cac.tar.gz
lwn-5498380e4f403c0938801e2cd6683353d0029cac.zip
Merge tag 'asoc-v3.17-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v3.17 A few small driver specific fixes and a couple of error handling fixes in the core.
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 340a92d08e84..2c2d6d1d8eee 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -529,12 +529,12 @@ static noinline int device_list_add(const char *path,
*/
/*
- * As of now don't allow update to btrfs_fs_device through
- * the btrfs dev scan cli, after FS has been mounted.
+ * For now, we do allow update to btrfs_fs_device through the
+ * btrfs dev scan cli after FS has been mounted. We're still
+ * tracking a problem where systems fail mount by subvolume id
+ * when we reject replacement on a mounted FS.
*/
- if (fs_devices->opened) {
- return -EBUSY;
- } else {
+ if (!fs_devices->opened && found_transid < device->generation) {
/*
* That is if the FS is _not_ mounted and if you
* are here, that means there is more than one
@@ -542,8 +542,7 @@ static noinline int device_list_add(const char *path,
* with larger generation number or the last-in if
* generation are equal.
*/
- if (found_transid < device->generation)
- return -EEXIST;
+ return -EEXIST;
}
name = rcu_string_strdup(path, GFP_NOFS);