diff options
author | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-02-04 13:01:10 +0900 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk.kim@samsung.com> | 2014-02-17 14:58:52 +0900 |
commit | 491c0854b41380f48e422c00ae7e25ae4d02cecc (patch) | |
tree | c38f223a14407ecda736da3b9683f7251b4d08bc /fs/f2fs/recovery.c | |
parent | 924a2ddbd0c2829ebca9ac899522cbb16a9b6d8c (diff) | |
download | op-kernel-dev-491c0854b41380f48e422c00ae7e25ae4d02cecc.zip op-kernel-dev-491c0854b41380f48e422c00ae7e25ae4d02cecc.tar.gz |
f2fs: clean up with a macro
This patch adds GET_BLKOFF_FROM_SEG0 to clean up some codes.
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/recovery.c')
-rw-r--r-- | fs/f2fs/recovery.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index f1b0b89..bda04a0 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c @@ -218,8 +218,7 @@ static int check_index_in_prev_nodes(struct f2fs_sb_info *sbi, { struct seg_entry *sentry; unsigned int segno = GET_SEGNO(sbi, blkaddr); - unsigned short blkoff = GET_SEGOFF_FROM_SEG0(sbi, blkaddr) & - (sbi->blocks_per_seg - 1); + unsigned short blkoff = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); struct f2fs_summary sum; nid_t ino, nid; void *kaddr; |