]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/f2fs/extent_cache.c
f2fs: fix to skip shrinking extent nodes
[karo-tx-linux.git] / fs / f2fs / extent_cache.c
index a38ee9bec4ba0c37f632eae08378649bb33c50a8..7ddba812e11b7508aa6d3511cae05093624d6562 100644 (file)
@@ -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: