mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
f2fs: clean up argument of recover_data
In recover_data, value of argument 'type' will be CURSEG_WARM_NODE all the time, remove it for cleanup. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
46baa0b8ab
commit
341459e176
1 changed files with 3 additions and 4 deletions
|
@ -488,8 +488,7 @@ out:
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int recover_data(struct f2fs_sb_info *sbi,
|
static int recover_data(struct f2fs_sb_info *sbi, struct list_head *head)
|
||||||
struct list_head *head, int type)
|
|
||||||
{
|
{
|
||||||
unsigned long long cp_ver = cur_cp_version(F2FS_CKPT(sbi));
|
unsigned long long cp_ver = cur_cp_version(F2FS_CKPT(sbi));
|
||||||
struct curseg_info *curseg;
|
struct curseg_info *curseg;
|
||||||
|
@ -498,7 +497,7 @@ static int recover_data(struct f2fs_sb_info *sbi,
|
||||||
block_t blkaddr;
|
block_t blkaddr;
|
||||||
|
|
||||||
/* get node pages in the current segment */
|
/* get node pages in the current segment */
|
||||||
curseg = CURSEG_I(sbi, type);
|
curseg = CURSEG_I(sbi, CURSEG_WARM_NODE);
|
||||||
blkaddr = NEXT_FREE_BLKADDR(sbi, curseg);
|
blkaddr = NEXT_FREE_BLKADDR(sbi, curseg);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
@ -585,7 +584,7 @@ int recover_fsync_data(struct f2fs_sb_info *sbi)
|
||||||
need_writecp = true;
|
need_writecp = true;
|
||||||
|
|
||||||
/* step #2: recover data */
|
/* step #2: recover data */
|
||||||
err = recover_data(sbi, &inode_list, CURSEG_WARM_NODE);
|
err = recover_data(sbi, &inode_list);
|
||||||
if (!err)
|
if (!err)
|
||||||
f2fs_bug_on(sbi, !list_empty(&inode_list));
|
f2fs_bug_on(sbi, !list_empty(&inode_list));
|
||||||
out:
|
out:
|
||||||
|
|
Loading…
Reference in a new issue