Skip to content

Commit d72750e

Browse files
jc2870Jaegeuk Kim
authored andcommitted
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. Signed-off-by: Julian Sun <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent d1e1ff9 commit d72750e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/f2fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3983,7 +3983,7 @@ static inline struct f2fs_stat_info *F2FS_STAT(struct f2fs_sb_info *sbi)
39833983

39843984
#define stat_inc_cp_call_count(sbi, foreground) \
39853985
atomic_inc(&sbi->cp_call_count[(foreground)])
3986-
#define stat_inc_cp_count(si) (F2FS_STAT(sbi)->cp_count++)
3986+
#define stat_inc_cp_count(sbi) (F2FS_STAT(sbi)->cp_count++)
39873987
#define stat_io_skip_bggc_count(sbi) ((sbi)->io_skip_bggc++)
39883988
#define stat_other_skip_bggc_count(sbi) ((sbi)->other_skip_bggc++)
39893989
#define stat_inc_dirty_inode(sbi, type) ((sbi)->ndirty_inode[type]++)

0 commit comments

Comments
 (0)