diff options
author | Gu Zheng <guz.fnst@cn.fujitsu.com> | 2013-11-19 05:03:27 -0500 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2013-12-22 20:18:01 -0500 |
commit | da19b0dc5080db4e9138d4f5bc47d5fa9ce81c98 (patch) | |
tree | 6e218856d06ec1fbb7a7b0697a73605aa5b9faba /fs/f2fs | |
parent | 58e674d6ab8b23ff1e933a8b714b302786351bd7 (diff) |
f2fs: convert dev_valid_block_count to void
Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/f2fs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 707896456a42..154f07604c11 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h | |||
@@ -606,7 +606,7 @@ static inline bool inc_valid_block_count(struct f2fs_sb_info *sbi, | |||
606 | return true; | 606 | return true; |
607 | } | 607 | } |
608 | 608 | ||
609 | static inline int dec_valid_block_count(struct f2fs_sb_info *sbi, | 609 | static inline void dec_valid_block_count(struct f2fs_sb_info *sbi, |
610 | struct inode *inode, | 610 | struct inode *inode, |
611 | blkcnt_t count) | 611 | blkcnt_t count) |
612 | { | 612 | { |
@@ -616,7 +616,6 @@ static inline int dec_valid_block_count(struct f2fs_sb_info *sbi, | |||
616 | inode->i_blocks -= count; | 616 | inode->i_blocks -= count; |
617 | sbi->total_valid_block_count -= (block_t)count; | 617 | sbi->total_valid_block_count -= (block_t)count; |
618 | spin_unlock(&sbi->stat_lock); | 618 | spin_unlock(&sbi->stat_lock); |
619 | return 0; | ||
620 | } | 619 | } |
621 | 620 | ||
622 | static inline void inc_page_count(struct f2fs_sb_info *sbi, int count_type) | 621 | static inline void inc_page_count(struct f2fs_sb_info *sbi, int count_type) |