diff options
author | Chao Yu <chao2.yu@samsung.com> | 2014-09-04 18:11:47 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-09-09 13:15:05 -0700 |
commit | d3a14afd5ed1970519a2d6ed59f4062ec3ba821f (patch) | |
tree | b768516a46c5a88090c34eed158ace6083ec7a25 /fs/f2fs/segment.c | |
parent | b0c44f05a2b719f3ecfa4673c04d80a17bb23e92 (diff) |
f2fs: remove unneeded sit_i in macro SIT_BLOCK_OFFSET/START_SEGNO
sit_i in macro SIT_BLOCK_OFFSET/START_SEGNO is not used, remove it.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.c')
-rw-r--r-- | fs/f2fs/segment.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 853c8f5445fd..a6b90a520894 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -1403,7 +1403,7 @@ static struct page *get_current_sit_page(struct f2fs_sb_info *sbi, unsigned int segno) { struct sit_info *sit_i = SIT_I(sbi); - unsigned int offset = SIT_BLOCK_OFFSET(sit_i, segno); + unsigned int offset = SIT_BLOCK_OFFSET(segno); block_t blk_addr = sit_i->sit_base_addr + offset; check_seg_range(sbi, segno); @@ -1518,7 +1518,7 @@ to_sit_page: page = NULL; } - start = START_SEGNO(sit_i, segno); + start = START_SEGNO(segno); end = start + SIT_ENTRY_PER_BLOCK - 1; /* read sit block that will be updated */ |