Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

f2fs: add brackets for macros

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>

authored by

Sheng Yong and committed by
Jaegeuk Kim
2f84babf 720db068

+5 -5
+5 -5
fs/f2fs/f2fs.h
··· 254 254 /* max discard pend list number */ 255 255 #define MAX_PLIST_NUM 512 256 256 #define plist_idx(blk_num) ((blk_num) >= MAX_PLIST_NUM ? \ 257 - (MAX_PLIST_NUM - 1) : (blk_num - 1)) 257 + (MAX_PLIST_NUM - 1) : ((blk_num) - 1)) 258 258 259 259 enum { 260 260 D_PREP, /* initial */ ··· 2763 2763 2764 2764 #define F2FS_OLD_ATTRIBUTE_SIZE (offsetof(struct f2fs_inode, i_addr)) 2765 2765 #define F2FS_FITS_IN_INODE(f2fs_inode, extra_isize, field) \ 2766 - ((offsetof(typeof(*f2fs_inode), field) + \ 2766 + ((offsetof(typeof(*(f2fs_inode)), field) + \ 2767 2767 sizeof((f2fs_inode)->field)) \ 2768 - <= (F2FS_OLD_ATTRIBUTE_SIZE + extra_isize)) \ 2768 + <= (F2FS_OLD_ATTRIBUTE_SIZE + (extra_isize))) \ 2769 2769 2770 2770 static inline void f2fs_reset_iostat(struct f2fs_sb_info *sbi) 2771 2771 { ··· 2794 2794 2795 2795 #define __is_large_section(sbi) ((sbi)->segs_per_sec > 1) 2796 2796 2797 - #define __is_meta_io(fio) (PAGE_TYPE_OF_BIO(fio->type) == META && \ 2798 - (!is_read_io(fio->op) || fio->is_meta)) 2797 + #define __is_meta_io(fio) (PAGE_TYPE_OF_BIO((fio)->type) == META && \ 2798 + (!is_read_io((fio)->op) || (fio)->is_meta)) 2799 2799 2800 2800 bool f2fs_is_valid_blkaddr(struct f2fs_sb_info *sbi, 2801 2801 block_t blkaddr, int type);