f2fs: use existing macro to clean up some codes
[sfrench/cifs-2.6.git] / fs / f2fs / recovery.c
index 72adbbfdb3e59a005f5fc56d1fc8fbec5b33a529..aef77681e10bf526e3f649bf46cba9ec07d9fd2d 100644 (file)
@@ -136,7 +136,7 @@ static int find_fsync_dnodes(struct f2fs_sb_info *sbi, struct list_head *head)
 
        /* get node pages in the current segment */
        curseg = CURSEG_I(sbi, CURSEG_WARM_NODE);
-       blkaddr = START_BLOCK(sbi, curseg->segno) + curseg->next_blkoff;
+       blkaddr = NEXT_FREE_BLKADDR(sbi, curseg);
 
        /* read node page */
        page = alloc_page(GFP_F2FS_ZERO);