]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
f2fs: fix macro definition on_f2fs_build_free_nids
authorJulian Sun <sunjunchao2870@gmail.com>
Mon, 22 Jul 2024 02:39:12 +0000 (22:39 -0400)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 5 Aug 2024 20:18:35 +0000 (20:18 +0000)
The macro on_f2fs_build_free_nids accepts a parameter nmi,
but it was not used, rather the variable nm_i was directly used,
which may be a local variable inside a function that calls the macros.

Signed-off-by: Julian Sun <sunjunchao2870@gmail.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c

index b72ef96f7e33af7a1cc3fcbe3762cdd4babcd799..58721a55f1734c6cb41f774c73ad0ec11514a500 100644 (file)
@@ -20,7 +20,7 @@
 #include "iostat.h"
 #include <trace/events/f2fs.h>
 
-#define on_f2fs_build_free_nids(nmi) mutex_is_locked(&(nm_i)->build_lock)
+#define on_f2fs_build_free_nids(nm_i) mutex_is_locked(&(nm_i)->build_lock)
 
 static struct kmem_cache *nat_entry_slab;
 static struct kmem_cache *free_nid_slab;