Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1253702 > unrolled thread

[PATCH 3/3] f2fs: fix to skip shrinking extent nodes

Started byChao Yu <chao2.yu@samsung.com>
First post2015-10-22 12:30 +0200
Last post2015-10-22 12:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 3/3] f2fs: fix to skip shrinking extent nodes Chao Yu <chao2.yu@samsung.com> - 2015-10-22 12:30 +0200

#1253702 — [PATCH 3/3] f2fs: fix to skip shrinking extent nodes

FromChao Yu <chao2.yu@samsung.com>
Date2015-10-22 12:30 +0200
Subject[PATCH 3/3] f2fs: fix to skip shrinking extent nodes
Message-ID<qmlib-7Vb-31@gated-at.bofh.it>
In f2fs_shrink_extent_tree we should stop shrink flow if we have already
shrunk enough nodes in extent cache.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
---
 fs/f2fs/extent_cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/f2fs/extent_cache.c b/fs/f2fs/extent_cache.c
index a38ee9b..7ddba81 100644
--- a/fs/f2fs/extent_cache.c
+++ b/fs/f2fs/extent_cache.c
@@ -620,7 +620,7 @@ unsigned int f2fs_shrink_extent_tree(struct f2fs_sb_info *sbi, int nr_shrink)
 			write_unlock(&et->lock);
 
 			if (node_cnt + tree_cnt >= nr_shrink)
-				break;
+				goto unlock_out;
 		}
 	}
 unlock_out:
-- 
2.6.1


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web