summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/gc.c
diff options
context:
space:
mode:
authorYangtao Li <frank.li@vivo.com>2022-11-25 19:47:36 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2022-12-08 09:32:20 -0800
commit870af777da22505851174a34c0228042d7ed5f5f (patch)
tree360a5b4486ed9eeb0b263b834b8df50a1a8a9437 /fs/f2fs/gc.c
parent398bb30d4f4e857ee1352130c6935f0fb16d7af2 (diff)
downloadlinux-870af777da22505851174a34c0228042d7ed5f5f.tar.gz
linux-870af777da22505851174a34c0228042d7ed5f5f.tar.bz2
linux-870af777da22505851174a34c0228042d7ed5f5f.zip
f2fs: do some cleanup for f2fs module init
Just for cleanup, no functional changes. Signed-off-by: Yangtao Li <frank.li@vivo.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/gc.c')
-rw-r--r--fs/f2fs/gc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index f1b68eda2235..d19e26b2e875 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -1904,9 +1904,7 @@ int __init f2fs_create_garbage_collection_cache(void)
{
victim_entry_slab = f2fs_kmem_cache_create("f2fs_victim_entry",
sizeof(struct victim_entry));
- if (!victim_entry_slab)
- return -ENOMEM;
- return 0;
+ return victim_entry_slab ? 0 : -ENOMEM;
}
void f2fs_destroy_garbage_collection_cache(void)