From: Julian Sun Date: Mon, 22 Jul 2024 02:39:12 +0000 (-0400) Subject: f2fs: fix macro definition on_f2fs_build_free_nids X-Git-Tag: v6.12-rc1~59^2~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1e1ff971d1aafeaedda69136e6974e3a8792cbd;p=thirdparty%2Fkernel%2Flinux.git f2fs: fix macro definition on_f2fs_build_free_nids 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 Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index b72ef96f7e33a..58721a55f1734 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -20,7 +20,7 @@ #include "iostat.h" #include -#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;