f2fs: Fix inappropriate spaces
PATCH 1/1 f2fs: Fix inappropriate spaces
Fix checkpatch.pl check:
ERROR: spaces required around that ':'
ERROR: spaces required before the open parenthesis '('
ERROR: spaces prohibited before that ','
Signed-off-by Jia Yang <[email protected]>
--- fs/f2fs/file.c | 2 +- fs/f2fs/gc.c | 2 +- fs/f2fs/node.c | 4 ++-- fs/f2fs/recovery.c | 2 +- fs/f2fs/segment.c | 2 +- fs/f2fs/super.c | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-)
fs/f2fs/file.c +1 -1
@@ -2582,7 +2582,7 @@ static int f2fs_defragment_range(struct f2fs_sb_info *sbi, {struct inode *inode =file_inode (filp);struct f2fs_map_blocks map = { .m_next_extent =NULL , - .m_seg_type =NO_CHECK_TYPE , + .m_seg_type =NO_CHECK_TYPE , .m_may_create = false };struct extent_info ei = {0 ,0 ,0 };pgoff_t pg_start, pg_end, next_pgofs;
fs/f2fs/gc.c +1 -1
@@ -160,7 +160,7 @@ int f2fs_start_gc_thread(struct f2fs_sb_info *sbi) gc_th->max_sleep_time =DEF_GC_THREAD_MAX_SLEEP_TIME ; gc_th->no_gc_sleep_time =DEF_GC_THREAD_NOGC_SLEEP_TIME ; - gc_th->gc_wake=0 ; + gc_th->gc_wake =0 ; sbi->gc_thread = gc_th;init_waitqueue_head (&sbi->gc_thread->gc_wait_queue_head);
fs/f2fs/node.c +2 -2
@@ -1391,7 +1391,7 @@ static struct page *__get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid, goto out_err; } page_hit: -if (unlikely (nid !=nid_of_node (page))) { +if (unlikely (nid !=nid_of_node (page))) { f2fs_warn(sbi, "inconsistent node block, nid:%lu, node_footer[nid:%u,ino:%u,ofs:%u,cpver:%llu,blkaddr:%u]", nid, nid_of_node(page), ino_of_node(page), ofs_of_node(page), cpver_of_node(page),
@@ -1783,7 +1783,7 @@ int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode, out:if (nwritten)f2fs_submit_merged_write_cond (sbi,NULL ,NULL , ino,NODE ); -return ret ? -EIO :0 ; +return ret ? -EIO :0 ; }static int f2fs_match_ino (struct inode *inode,unsigned long ino,void *data)
fs/f2fs/recovery.c +1 -1
@@ -875,5 +875,5 @@ int f2fs_recover_fsync_data(struct f2fs_sb_info *sbi, bool check_only)#endif sbi->sb->s_flags = s_flags;/* Restore SB_RDONLY status */ -return ret ? ret: err; +return ret ? ret : err; }
fs/f2fs/segment.c +1 -1
@@ -1787,7 +1787,7 @@ static int issue_discard_thread(void *data)if (issued >0 ) {__wait_all_discard_cmd (sbi, &dpolicy); wait_ms = dpolicy.min_interval; - }else if (issued ==-1 ){ + }else if (issued ==-1 ) { wait_ms =f2fs_time_to_wait (sbi,DISCARD_TIME );if (!wait_ms) wait_ms = dpolicy.mid_interval;
fs/f2fs/super.c +2 -2
@@ -1892,7 +1892,7 @@ static int f2fs_disable_checkpoint(struct f2fs_sb_info *sbi) ret =sync_filesystem (sbi->sb);if (ret || err) { - err = ret ? ret: err; + err = ret ? ret : err; goto restore_flag; }
@@ -3757,7 +3757,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) sbi->iostat_period_ms =DEFAULT_IOSTAT_PERIOD_MS ;for (i =0 ; i <NR_PAGE_TYPE ; i++) { -int n = (i ==META ) ?1 :NR_TEMP_TYPE ; +int n = (i ==META ) ?1 :NR_TEMP_TYPE ;int j; sbi->write_io[i] =
Signature · 8 lines
2.25.1 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 7 lines · Jia Yang
Fix checkpatch.pl check:
ERROR: spaces required around that ':'
ERROR: spaces required before the open parenthesis '('
ERROR: spaces prohibited before that ','Signed-off-by Jia Yang <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel