projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6be014
)
f2fs: fix to skip shrinking extent nodes
author
Chao Yu
<chao2.yu@samsung.com>
Thu, 22 Oct 2015 10:24:12 +0000
(18:24 +0800)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Thu, 22 Oct 2015 16:39:35 +0000
(09:39 -0700)
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>
fs/f2fs/extent_cache.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/extent_cache.c
b/fs/f2fs/extent_cache.c
index a38ee9bec4ba0c37f632eae08378649bb33c50a8..7ddba812e11b7508aa6d3511cae05093624d6562 100644
(file)
--- 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: