aboutsummaryrefslogtreecommitdiff
path: root/fsck/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-12-08 16:05:09 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2016-04-18 21:11:26 -0400
commitd3be08825e9f5ebe8e9bf9da9a9b77cefd9b525d (patch)
tree55410eaa2e668dbce8696ce45b1f5ce31e2f4936 /fsck/f2fs.h
parent0e14e39d389bd01ff5419e8a1c1f0cc36cd170bd (diff)
downloadf2fs-tools-d3be08825e9f5ebe8e9bf9da9a9b77cefd9b525d.tar.gz
resize.f2fs: support to expand partition size
Now user can expand existing partition with resize.f2fs. Currently, it doesn't support shrink an image. For example, # resize.f2fs -t [# of sectors] [image] Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fsck/f2fs.h')
-rw-r--r--fsck/f2fs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fsck/f2fs.h b/fsck/f2fs.h
index a618b47..4b3c666 100644
--- a/fsck/f2fs.h
+++ b/fsck/f2fs.h
@@ -323,9 +323,9 @@ static inline block_t sum_blk_addr(struct f2fs_sb_info *sbi, int base, int type)
#define segno_in_journal(jnl, i) (jnl->sit_j.entries[i].segno)
#define SIT_ENTRY_OFFSET(sit_i, segno) \
- (segno % sit_i->sents_per_block)
+ ((segno) % sit_i->sents_per_block)
#define SIT_BLOCK_OFFSET(sit_i, segno) \
- (segno / SIT_ENTRY_PER_BLOCK)
+ ((segno) / SIT_ENTRY_PER_BLOCK)
#define TOTAL_SEGS(sbi) (SM_I(sbi)->main_segments)
static inline bool IS_VALID_NID(struct f2fs_sb_info *sbi, u32 nid)