summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/recovery.c
diff options
context:
space:
mode:
authorChao Yu2014-02-27 12:52:21 +0100
committerJaegeuk Kim2014-02-27 13:09:28 +0100
commit695fd1ed3bcaae9fc032cbe47f0fe9a934bf1717 (patch)
tree1d4b5dea7e8d60b3141696ecfea06fd1f0158cf0 /fs/f2fs/recovery.c
parentf2fs: readahead contiguous SSA blocks for f2fs_gc (diff)
downloadkernel-qcow2-linux-695fd1ed3bcaae9fc032cbe47f0fe9a934bf1717.tar.gz
kernel-qcow2-linux-695fd1ed3bcaae9fc032cbe47f0fe9a934bf1717.tar.xz
kernel-qcow2-linux-695fd1ed3bcaae9fc032cbe47f0fe9a934bf1717.zip
f2fs: use existing macro to clean up some codes
This patch use existing macro F2FS_INODE/NEXT_FREE_BLKADDR to clean up some codes. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/recovery.c')
-rw-r--r--fs/f2fs/recovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c
index 72adbbfdb3e5..aef77681e10b 100644
--- a/fs/f2fs/recovery.c
+++ b/fs/f2fs/recovery.c
@@ -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);