diff options
author | Chao Yu <chao2.yu@samsung.com> | 2015-10-22 18:24:12 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-10-22 09:39:35 -0700 |
commit | beaa57dd986d4f398728c060692fc2452895cfd8 (patch) | |
tree | 386f230b7e606241546feef6700faa74aef438a6 /fs/f2fs/extent_cache.c | |
parent | a6be014e1d28339ba7c745fc4ac1efdbf6e2c1a2 (diff) | |
download | linux-stable-beaa57dd986d4f398728c060692fc2452895cfd8.tar.gz linux-stable-beaa57dd986d4f398728c060692fc2452895cfd8.tar.bz2 linux-stable-beaa57dd986d4f398728c060692fc2452895cfd8.zip |
f2fs: fix to skip shrinking extent nodes
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>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/extent_cache.c')
-rw-r--r-- | fs/f2fs/extent_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/extent_cache.c b/fs/f2fs/extent_cache.c index a38ee9bec4ba..7ddba812e11b 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: |