* [PATCH] properly update space information after shrinking device.
@ 2009-07-15 7:33 Yan Zheng
0 siblings, 0 replies; only message in thread
From: Yan Zheng @ 2009-07-15 7:33 UTC (permalink / raw)
To: chris Mason, linux-btrfs
change 'goto done' to 'break' for the case of all device extents have
been freed, so that the code updates space information will be execute.
Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
---
diff -urp 1/fs/btrfs/volumes.c 2/fs/btrfs/volumes.c
--- 1/fs/btrfs/volumes.c 2009-06-12 21:32:39.847088561 +0800
+++ 2/fs/btrfs/volumes.c 2009-07-15 14:49:41.064455477 +0800
@@ -2007,7 +2007,7 @@ int btrfs_shrink_device(struct btrfs_dev
goto done;
if (ret) {
ret = 0;
- goto done;
+ break;
}
l = path->nodes[0];
@@ -2015,7 +2015,7 @@ int btrfs_shrink_device(struct btrfs_dev
btrfs_item_key_to_cpu(l, &key, path->slots[0]);
if (key.objectid != device->devid)
- goto done;
+ break;
dev_extent = btrfs_item_ptr(l, slot, struct btrfs_dev_extent);
length = btrfs_dev_extent_length(l, dev_extent);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-15 7:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-15 7:33 [PATCH] properly update space information after shrinking device Yan Zheng
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.