Skip to content

Commit d1e1ff9

Browse files
jc2870Jaegeuk Kim
authored andcommitted
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]>
1 parent 8444ce5 commit d1e1ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/node.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "iostat.h"
2121
#include <trace/events/f2fs.h>
2222

23-
#define on_f2fs_build_free_nids(nmi) mutex_is_locked(&(nm_i)->build_lock)
23+
#define on_f2fs_build_free_nids(nm_i) mutex_is_locked(&(nm_i)->build_lock)
2424

2525
static struct kmem_cache *nat_entry_slab;
2626
static struct kmem_cache *free_nid_slab;

0 commit comments

Comments
 (0)