summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/file.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-11-30 19:28:23 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2018-01-02 19:27:30 -0800
commitf652e9d988d6b4d2a81c920374431a73b70090fd (patch)
tree61ca65aa93d99c03c5784b6329ed7f2e26b420db /fs/f2fs/file.c
parent4c2ac6a86073a4cbcea123f8be84bd4417eae001 (diff)
downloadlinux-f652e9d988d6b4d2a81c920374431a73b70090fd.tar.bz2
f2fs: don't return value in truncate_data_blocks_range
There is no caller cares about return value of truncate_data_blocks_range, remove it. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/file.c')
-rw-r--r--fs/f2fs/file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index a85c9aafd7a1..1db68f1bcd77 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -479,7 +479,7 @@ static int f2fs_file_open(struct inode *inode, struct file *filp)
return dquot_file_open(inode, filp);
}
-int truncate_data_blocks_range(struct dnode_of_data *dn, int count)
+void truncate_data_blocks_range(struct dnode_of_data *dn, int count)
{
struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode);
struct f2fs_node *raw_node;
@@ -522,7 +522,6 @@ int truncate_data_blocks_range(struct dnode_of_data *dn, int count)
f2fs_update_time(sbi, REQ_TIME);
trace_f2fs_truncate_data_blocks_range(dn->inode, dn->nid,
dn->ofs_in_node, nr_free);
- return nr_free;
}
void truncate_data_blocks(struct dnode_of_data *dn)