diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-07-30 20:25:54 -0400 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-07-30 20:25:54 -0400 |
commit | 65b85ccce03f17b3098273192b20885f3fead820 (patch) | |
tree | f495a642a0ebd91f218c2c4ac3a48f5b298f4b70 /fs/f2fs | |
parent | 33be828ada7274ebcade2001f16e5b4e33a4636e (diff) |
f2fs: fix coding style
This patch fixes wrong coding style.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/f2fs.h | 2 | ||||
-rw-r--r-- | fs/f2fs/file.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 14b9f746d5b3..80c78695546d 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -781,7 +781,7 @@ static inline void *__bitmap_ptr(struct f2fs_sb_info *sbi, int flag) | |||
781 | if (flag == NAT_BITMAP) | 781 | if (flag == NAT_BITMAP) |
782 | return &ckpt->sit_nat_version_bitmap; | 782 | return &ckpt->sit_nat_version_bitmap; |
783 | else | 783 | else |
784 | return ((unsigned char *)ckpt + F2FS_BLKSIZE); | 784 | return (unsigned char *)ckpt + F2FS_BLKSIZE; |
785 | } else { | 785 | } else { |
786 | offset = (flag == NAT_BITMAP) ? | 786 | offset = (flag == NAT_BITMAP) ? |
787 | le32_to_cpu(ckpt->sit_ver_bitmap_bytesize) : 0; | 787 | le32_to_cpu(ckpt->sit_ver_bitmap_bytesize) : 0; |
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 95501358932c..2a91a7d1760c 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c | |||
@@ -231,8 +231,9 @@ static pgoff_t __get_first_dirty_index(struct address_space *mapping, | |||
231 | 231 | ||
232 | /* find first dirty page index */ | 232 | /* find first dirty page index */ |
233 | pagevec_init(&pvec, 0); | 233 | pagevec_init(&pvec, 0); |
234 | nr_pages = pagevec_lookup_tag(&pvec, mapping, &pgofs, PAGECACHE_TAG_DIRTY, 1); | 234 | nr_pages = pagevec_lookup_tag(&pvec, mapping, &pgofs, |
235 | pgofs = nr_pages ? pvec.pages[0]->index: LONG_MAX; | 235 | PAGECACHE_TAG_DIRTY, 1); |
236 | pgofs = nr_pages ? pvec.pages[0]->index : LONG_MAX; | ||
236 | pagevec_release(&pvec); | 237 | pagevec_release(&pvec); |
237 | return pgofs; | 238 | return pgofs; |
238 | } | 239 | } |