Skip to content

Commit 544b53d

Browse files
Zhang QilongJaegeuk Kim
authored andcommitted
f2fs: code clean and fix a type error
ERROR: code indent should use tabs where possible ERROR: spaces required around that ':' ERROR: incorrect tab Found serveral code type errors when review the code and fix it. There is no function change. Signed-off-by: Zhang Qilong <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent a834aa3 commit 544b53d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

fs/f2fs/data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ int f2fs_submit_page_bio(struct f2fs_io_info *fio)
723723
wbc_account_cgroup_owner(fio->io_wbc, page, PAGE_SIZE);
724724

725725
inc_page_count(fio->sbi, is_read_io(fio->op) ?
726-
__read_io_type(page): WB_DATA_TYPE(fio->page));
726+
__read_io_type(page) : WB_DATA_TYPE(fio->page));
727727

728728
__submit_bio(fio->sbi, bio, fio->type);
729729
return 0;

fs/f2fs/debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static int stat_show(struct seq_file *s, void *v)
347347

348348
seq_printf(s, "\n=====[ partition info(%pg). #%d, %s, CP: %s]=====\n",
349349
si->sbi->sb->s_bdev, i++,
350-
f2fs_readonly(si->sbi->sb) ? "RO": "RW",
350+
f2fs_readonly(si->sbi->sb) ? "RO" : "RW",
351351
is_set_ckpt_flags(si->sbi, CP_DISABLED_FLAG) ?
352352
"Disabled" : (f2fs_cp_error(si->sbi) ? "Error" : "Good"));
353353
if (si->sbi->s_flag) {

fs/f2fs/extent_cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ static void f2fs_update_extent_tree_range(struct inode *inode,
583583
org_end = dei.fofs + dei.len;
584584
f2fs_bug_on(sbi, pos >= org_end);
585585

586-
if (pos > dei.fofs && pos - dei.fofs >= F2FS_MIN_EXTENT_LEN) {
586+
if (pos > dei.fofs && pos - dei.fofs >= F2FS_MIN_EXTENT_LEN) {
587587
en->ei.len = pos - en->ei.fofs;
588588
prev_en = en;
589589
parts = 1;

fs/f2fs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4622,7 +4622,7 @@ static ssize_t f2fs_file_write_iter(struct kiocb *iocb, struct iov_iter *from)
46224622
skip_write_trace:
46234623
/* Do the actual write. */
46244624
ret = dio ?
4625-
f2fs_dio_write_iter(iocb, from, &may_need_sync):
4625+
f2fs_dio_write_iter(iocb, from, &may_need_sync) :
46264626
f2fs_buffered_write_iter(iocb, from);
46274627

46284628
if (trace_f2fs_datawrite_end_enabled())

fs/f2fs/node.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ int f2fs_get_node_info(struct f2fs_sb_info *sbi, nid_t nid,
585585
ne = nat_in_journal(journal, i);
586586
node_info_from_raw_nat(ni, &ne);
587587
}
588-
up_read(&curseg->journal_rwsem);
588+
up_read(&curseg->journal_rwsem);
589589
if (i >= 0) {
590590
f2fs_up_read(&nm_i->nat_tree_lock);
591591
goto cache;

0 commit comments

Comments
 (0)