提交 65b85ccc 编写于 作者: J Jaegeuk Kim

f2fs: fix coding style

This patch fixes wrong coding style.
Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
上级 33be828a
...@@ -781,7 +781,7 @@ static inline void *__bitmap_ptr(struct f2fs_sb_info *sbi, int flag) ...@@ -781,7 +781,7 @@ static inline void *__bitmap_ptr(struct f2fs_sb_info *sbi, int flag)
if (flag == NAT_BITMAP) if (flag == NAT_BITMAP)
return &ckpt->sit_nat_version_bitmap; return &ckpt->sit_nat_version_bitmap;
else else
return ((unsigned char *)ckpt + F2FS_BLKSIZE); return (unsigned char *)ckpt + F2FS_BLKSIZE;
} else { } else {
offset = (flag == NAT_BITMAP) ? offset = (flag == NAT_BITMAP) ?
le32_to_cpu(ckpt->sit_ver_bitmap_bytesize) : 0; le32_to_cpu(ckpt->sit_ver_bitmap_bytesize) : 0;
......
...@@ -231,8 +231,9 @@ static pgoff_t __get_first_dirty_index(struct address_space *mapping, ...@@ -231,8 +231,9 @@ static pgoff_t __get_first_dirty_index(struct address_space *mapping,
/* find first dirty page index */ /* find first dirty page index */
pagevec_init(&pvec, 0); pagevec_init(&pvec, 0);
nr_pages = pagevec_lookup_tag(&pvec, mapping, &pgofs, PAGECACHE_TAG_DIRTY, 1); nr_pages = pagevec_lookup_tag(&pvec, mapping, &pgofs,
pgofs = nr_pages ? pvec.pages[0]->index: LONG_MAX; PAGECACHE_TAG_DIRTY, 1);
pgofs = nr_pages ? pvec.pages[0]->index : LONG_MAX;
pagevec_release(&pvec); pagevec_release(&pvec);
return pgofs; return pgofs;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册