Skip to contentSkip to conversation

Btrfs: don't try to touch sb->s_bdev

PATCH New Ilya Dryomov 1 participant 1 message Oct 28, 2011 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Btrfs: don't try to touch sb->s_bdev

Btrfs uses anon bdevs, this is not needed.

---
 fs/btrfs/volumes.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/btrfs/volumes.c +0 -2
index f2a4cc7..afd6a1e 100644
@@ -1376,8 +1376,6 @@ int btrfs_rm_device(struct btrfs_root *root, char *device_path)
 
 	next_device = list_entry(root->fs_info->fs_devices->devices.next,
 				 struct btrfs_device, dev_list);
-	if (device->bdev == root->fs_info->sb->s_bdev)
-		root->fs_info->sb->s_bdev = next_device->bdev;
 	if (device->bdev == root->fs_info->fs_devices->latest_bdev)
 		root->fs_info->fs_devices->latest_bdev = next_device->bdev;
 
Signature · 1 line
1.7.6.3