aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/volumes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 3ab80e9cd767..f057730a72bb 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -2007,7 +2007,7 @@ int btrfs_shrink_device(struct btrfs_device *device, u64 new_size)
2007 goto done; 2007 goto done;
2008 if (ret) { 2008 if (ret) {
2009 ret = 0; 2009 ret = 0;
2010 goto done; 2010 break;
2011 } 2011 }
2012 2012
2013 l = path->nodes[0]; 2013 l = path->nodes[0];
@@ -2015,7 +2015,7 @@ int btrfs_shrink_device(struct btrfs_device *device, u64 new_size)
2015 btrfs_item_key_to_cpu(l, &key, path->slots[0]); 2015 btrfs_item_key_to_cpu(l, &key, path->slots[0]);
2016 2016
2017 if (key.objectid != device->devid) 2017 if (key.objectid != device->devid)
2018 goto done; 2018 break;
2019 2019
2020 dev_extent = btrfs_item_ptr(l, slot, struct btrfs_dev_extent); 2020 dev_extent = btrfs_item_ptr(l, slot, struct btrfs_dev_extent);
2021 length = btrfs_dev_extent_length(l, dev_extent); 2021 length = btrfs_dev_extent_length(l, dev_extent);