linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Btrfs: don't ignore return value from cache_save_setup()
@ 2013-09-09 18:54 Filipe David Borba Manana
  0 siblings, 0 replies; only message in thread
From: Filipe David Borba Manana @ 2013-09-09 18:54 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Filipe David Borba Manana


Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
---
 fs/btrfs/extent-tree.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 249cdb1..64efa83 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -3284,6 +3284,8 @@ again:
 		err = cache_save_setup(cache, trans, path);
 		last = cache->key.objectid + cache->key.offset;
 		btrfs_put_block_group(cache);
+		if (err)
+			goto out;
 	}
 
 	while (1) {
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-09 18:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-09 18:54 [PATCH] Btrfs: don't ignore return value from cache_save_setup() Filipe David Borba Manana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).