f2fs: fix macro definition on_f2fs_build_free_nids
PATCH v2 1/2 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.
--- fs/f2fs/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/node.c +1 -1
@@ -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;
Signature · 8 lines
2.39.2 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
PATCH v2 2/2 f2fs: fix macro definition stat_inc_cp_count
The macro stat_inc_cp_count accepts a parameter si,
but it was not used, rather the variable sbi was directly used, which may be a local variable inside a function that calls the macros.
--- fs/f2fs/f2fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/f2fs.h +1 -1
@@ -3987,7 +3987,7 @@ static inline struct f2fs_stat_info *F2FS_STAT(struct f2fs_sb_info *sbi)#define stat_inc_cp_call_count (sbi, foreground) \ atomic_inc(&sbi->cp_call_count[(foreground)]) -#define stat_inc_cp_count (si) (F2FS_STAT(sbi)->cp_count++) +#define stat_inc_cp_count (sbi) (F2FS_STAT(sbi)->cp_count++)#define stat_io_skip_bggc_count (sbi) ((sbi)->io_skip_bggc++)#define stat_other_skip_bggc_count (sbi) ((sbi)->other_skip_bggc++)#define stat_inc_dirty_inode (sbi, type) ((sbi)->ndirty_inode[type]++)
Signature · 8 lines
2.39.2 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Re: [f2fs-dev] [PATCH v2 2/2] f2fs: fix macro definition stat_inc_cp_count
Quoted 5 lines · Julian Sun
The macro
stat_inc_cp_countaccepts a parameter si,
but it was not used, rather the variable sbi was directly used, which may be a local variable inside a function that calls the macros.Signed-off-by Julian Sun <[email protected]>
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 5 lines · Julian Sun
The macro
on_f2fs_build_free_nidsaccepts a parameter nmi, but it was not used, rather the variablenm_iwas directly used, which may be a local variable inside a function that calls the macros.Signed-off-by Julian Sun <[email protected]>
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
This series was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:
Hello:
This series was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:
Quoted 8 lines · On Sun, 21 Jul 2024 22:39:12 -0400 you wrote:
The macro
on_f2fs_build_free_nidsaccepts a parameter nmi, but it was not used, rather the variablenm_iwas directly used, which may be a local variable inside a function that calls the macros.Signed-off-by Julian Sun <[email protected]>--- fs/f2fs/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [f2fs-dev,v2,1/2] f2fs: fix macro definition on_f2fs_build_free_nids
https://git.kernel.org/jaegeuk/f2fs/c/d1e1ff971d1a - [f2fs-dev,v2,2/2] f2fs: fix macro definition stat_inc_cp_count https://git.kernel.org/jaegeuk/f2fs/c/d72750e4a752
You are awesome, thank you!
Signature · 10 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel