f2fs: remove unused cp_blkaddr in f2fs_sanity_check_ckpt
PATCH 1/1 f2fs: remove unused cp_blkaddr in f2fs_sanity_check_ckpt
Remove unused cp_blkaddr in f2fs_sanity_check_ckpt().
--- fs/f2fs/super.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/f2fs/super.c +1 -2
@@ -2297,7 +2297,7 @@ int f2fs_sanity_check_ckpt(struct f2fs_sb_info *sbi)unsigned int sit_bitmap_size, nat_bitmap_size;unsigned int log_blocks_per_seg;unsigned int segment_count_main; -unsigned int cp_pack_start_sum, cp_blkaddr, cp_payload; +unsigned int cp_pack_start_sum, cp_payload;block_t user_block_count;int i;
@@ -2359,7 +2359,6 @@ int f2fs_sanity_check_ckpt(struct f2fs_sb_info *sbi) } cp_pack_start_sum =__start_sum_addr (sbi); - cp_blkaddr =__start_cp_addr (sbi); cp_payload =__cp_payload (sbi);if (cp_pack_start_sum < cp_payload +1 || cp_pack_start_sum > blocks_per_seg - 1 -
Signature · 6 lines
2.18.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Hi Junling,
Quoted 1 line · Junling Zheng
Remove unused
cp_blkaddrinf2fs_sanity_check_ckpt().
Since this issue is introduced by recent change, and the related patch has not been upstreamed yet, can we merge this into that patch, if you don't mind?
Thanks,
Quoted 21 lines
Signed-off-by Junling Zheng <[email protected]>--- fs/f2fs/super.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)fs/f2fs/super.c +1
-1@@ -2297,7 +2297,7 @@ int f2fs_sanity_check_ckpt(struct f2fs_sb_info *sbi)unsigned int sit_bitmap_size, nat_bitmap_size;unsigned int log_blocks_per_seg;unsigned int segment_count_main; -unsigned int cp_pack_start_sum, cp_blkaddr, cp_payload; +unsigned int cp_pack_start_sum, cp_payload;block_t user_block_count;int i;
fs/f2fs/super.c int f2fs_sanity_check_ckpt(struct f2fs_sb_info *sbi) · line 2364
Quoted 7 lines
fs/f2fs/super.c +0
-1@@ -2359,7 +2359,6 @@ int f2fs_sanity_check_ckpt(struct f2fs_sb_info *sbi) } cp_pack_start_sum =__start_sum_addr (sbi); - cp_blkaddr =__start_cp_addr (sbi); cp_payload =__cp_payload (sbi);if (cp_pack_start_sum < cp_payload +1 || cp_pack_start_sum > blocks_per_seg - 1 -
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Quoted 8 lines · Chao Yu
Hi Junling,
Quoted 1 line · Junling Zheng
Remove unused
cp_blkaddrinf2fs_sanity_check_ckpt().Since this issue is introduced by recent change, and the related patch has not been upstreamed yet, can we merge this into that patch, if you don't mind?
OK, I don't mind :)
Quoted 24 lines
Thanks,
Quoted 22 lines
Signed-off-by Junling Zheng <[email protected]>--- fs/f2fs/super.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)fs/f2fs/super.c +1
-1@@ -2297,7 +2297,7 @@ int f2fs_sanity_check_ckpt(struct f2fs_sb_info *sbi)unsigned int sit_bitmap_size, nat_bitmap_size;unsigned int log_blocks_per_seg;unsigned int segment_count_main; -unsigned int cp_pack_start_sum, cp_blkaddr, cp_payload; +unsigned int cp_pack_start_sum, cp_payload;block_t user_block_count;int i;@@ -2359,7 +2359,6 @@ int f2fs_sanity_check_ckpt(struct f2fs_sb_info *sbi) }
Quoted 10 lines
fs/f2fs/super.c int f2fs_sanity_check_ckpt(struct f2fs_sb_info *sbi) · line 2364
Quoted 6 lines
fs/f2fs/super.c +0
-1cp_pack_start_sum =__start_sum_addr (sbi); - cp_blkaddr =__start_cp_addr (sbi); cp_payload =__cp_payload (sbi);if (cp_pack_start_sum < cp_payload +1 || cp_pack_start_sum > blocks_per_seg - 1 -.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot