summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGu Zheng <guz.fnst@cn.fujitsu.com>2013-11-19 18:03:27 +0800
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-12-23 10:18:01 +0900
commitda19b0dc5080db4e9138d4f5bc47d5fa9ce81c98 (patch)
tree6e218856d06ec1fbb7a7b0697a73605aa5b9faba
parent58e674d6ab8b23ff1e933a8b714b302786351bd7 (diff)
downloadop-kernel-dev-da19b0dc5080db4e9138d4f5bc47d5fa9ce81c98.zip
op-kernel-dev-da19b0dc5080db4e9138d4f5bc47d5fa9ce81c98.tar.gz
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>
-rw-r--r--fs/f2fs/f2fs.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 7078964..154f076 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,
return true;
}
-static inline int dec_valid_block_count(struct f2fs_sb_info *sbi,
+static inline void dec_valid_block_count(struct f2fs_sb_info *sbi,
struct inode *inode,
blkcnt_t count)
{
@@ -616,7 +616,6 @@ static inline int dec_valid_block_count(struct f2fs_sb_info *sbi,
inode->i_blocks -= count;
sbi->total_valid_block_count -= (block_t)count;
spin_unlock(&sbi->stat_lock);
- return 0;
}
static inline void inc_page_count(struct f2fs_sb_info *sbi, int count_type)
OpenPOWER on IntegriCloud