Skip to content

Commit cb1f89c

Browse files
Yunlei Hepundiramit
authored andcommitted
f2fs: remove unused values in recover_fsync_data
commit fed24668482e07421b8e746a4886e7725434050a upstream. This patch remove unused values in function recover_fsync_data Signed-off-by: Yunlei He <heyunlei@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 64d8b29 commit cb1f89c

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

fs/f2fs/recovery.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,8 @@ static int recover_data(struct f2fs_sb_info *sbi, struct list_head *inode_list,
552552

553553
int recover_fsync_data(struct f2fs_sb_info *sbi, bool check_only)
554554
{
555-
struct curseg_info *curseg = CURSEG_I(sbi, CURSEG_WARM_NODE);
556555
struct list_head inode_list;
557556
struct list_head dir_list;
558-
block_t blkaddr;
559557
int err;
560558
int ret = 0;
561559
bool need_writecp = false;
@@ -571,8 +569,6 @@ int recover_fsync_data(struct f2fs_sb_info *sbi, bool check_only)
571569
/* prevent checkpoint */
572570
mutex_lock(&sbi->cp_mutex);
573571

574-
blkaddr = NEXT_FREE_BLKADDR(sbi, curseg);
575-
576572
/* step #1: find fsynced inode numbers */
577573
err = find_fsync_dnodes(sbi, &inode_list);
578574
if (err || list_empty(&inode_list))

0 commit comments

Comments
 (0)