diff options
author | Julian Sun <[email protected]> | 2024-07-21 22:39:12 -0400 |
---|---|---|
committer | Jaegeuk Kim <[email protected]> | 2024-08-05 20:18:35 +0000 |
commit | d1e1ff971d1aafeaedda69136e6974e3a8792cbd (patch) | |
tree | eb790c502a3a52131952f161a9d82299d19363f6 | |
parent | 8444ce524947daf441546b5b3a0c418706dade35 (diff) |
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 <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
-rw-r--r-- | fs/f2fs/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index b72ef96f7e33..58721a55f173 100644 --- a/fs/f2fs/node.c +++ b/fs/f2fs/node.c @@ -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; |