f2fs: Clean up errors in segment.h
authorKaiLong Wang <wangkailong@jari.cn>
Fri, 13 Oct 2023 06:45:42 +0000 (14:45 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 16 Oct 2023 19:51:37 +0000 (12:51 -0700)
Fix the following errors reported by checkpatch:

ERROR: spaces required around that ':' (ctx:VxW)

Signed-off-by: KaiLong Wang <wangkailong@jari.cn>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.h

index 2ca8fb5d0dc4db3f69d09ea6704b54cd5bd51da1..8129be788bd5615b99a666f6a240b16c315a0cc0 100644 (file)
@@ -108,11 +108,11 @@ static inline void sanity_check_seg_type(struct f2fs_sb_info *sbi,
        ((sbi)->segs_per_sec - ((sbi)->unusable_blocks_per_sec >>\
        (sbi)->log_blocks_per_seg))
 #define GET_SEC_FROM_SEG(sbi, segno)                           \
-       (((segno) == -1) ? -1: (segno) / (sbi)->segs_per_sec)
+       (((segno) == -1) ? -1 : (segno) / (sbi)->segs_per_sec)
 #define GET_SEG_FROM_SEC(sbi, secno)                           \
        ((secno) * (sbi)->segs_per_sec)
 #define GET_ZONE_FROM_SEC(sbi, secno)                          \
-       (((secno) == -1) ? -1: (secno) / (sbi)->secs_per_zone)
+       (((secno) == -1) ? -1 : (secno) / (sbi)->secs_per_zone)
 #define GET_ZONE_FROM_SEG(sbi, segno)                          \
        GET_ZONE_FROM_SEC(sbi, GET_SEC_FROM_SEG(sbi, segno))