mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-02 11:13:02 +09:00
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>
This commit is contained in:
@@ -2594,7 +2594,7 @@ int f2fs_getattr(struct vfsmount *mnt, struct dentry *dentry,
|
||||
struct kstat *stat);
|
||||
int f2fs_setattr(struct dentry *dentry, struct iattr *attr);
|
||||
int truncate_hole(struct inode *inode, pgoff_t pg_start, pgoff_t pg_end);
|
||||
int truncate_data_blocks_range(struct dnode_of_data *dn, int count);
|
||||
void truncate_data_blocks_range(struct dnode_of_data *dn, int count);
|
||||
long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg);
|
||||
long f2fs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
|
||||
|
||||
|
||||
@@ -481,7 +481,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;
|
||||
@@ -524,7 +524,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)
|
||||
|
||||
Reference in New Issue
Block a user