aboutsummaryrefslogtreecommitdiff
path: root/fsck/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-12-17 15:37:24 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2015-12-19 03:27:11 -0800
commitf66104cf3a29b9e5645ba77090fac0521cf73318 (patch)
tree239ed0745c8c50d1d450af9121078ca2b4638b35 /fsck/f2fs.h
parentdbe78ae5297f5507472eedc3bfc59d658632c3e4 (diff)
downloadf2fs-tools-f66104cf3a29b9e5645ba77090fac0521cf73318.tar.gz
defrag.f2fs: enhance allocation speed
This patch improves the allocation speed. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fsck/f2fs.h')
-rw-r--r--fsck/f2fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fsck/f2fs.h b/fsck/f2fs.h
index af5cc40..f990527 100644
--- a/fsck/f2fs.h
+++ b/fsck/f2fs.h
@@ -295,7 +295,7 @@ static inline block_t __end_block_addr(struct f2fs_sb_info *sbi)
#define GET_R2L_SEGNO(sbi, segno) (segno + FREE_I_START_SEGNO(sbi))
#define START_BLOCK(sbi, segno) (SM_I(sbi)->main_blkaddr + \
- (segno << sbi->log_blocks_per_seg))
+ ((segno) << sbi->log_blocks_per_seg))
static inline struct curseg_info *CURSEG_I(struct f2fs_sb_info *sbi, int type)
{