segment.c (833dcd35453713ced96e086daecf7f023709e6a4) | segment.c (a7d9fe3c33887085a2e10c085d378126314dc222) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * fs/f2fs/segment.c 4 * 5 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 6 * http://www.samsung.com/ 7 */ 8#include <linux/fs.h> --- 4669 unchanged lines hidden (view full) --- 4678 * In LFS/SSR curseg, .next_blkoff should point to an unused blkaddr; 4679 * In LFS curseg, all blkaddr after .next_blkoff should be unused. 4680 */ 4681 for (i = 0; i < NR_PERSISTENT_LOG; i++) { 4682 struct curseg_info *curseg = CURSEG_I(sbi, i); 4683 struct seg_entry *se = get_seg_entry(sbi, curseg->segno); 4684 unsigned int blkofs = curseg->next_blkoff; 4685 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * fs/f2fs/segment.c 4 * 5 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 6 * http://www.samsung.com/ 7 */ 8#include <linux/fs.h> --- 4669 unchanged lines hidden (view full) --- 4678 * In LFS/SSR curseg, .next_blkoff should point to an unused blkaddr; 4679 * In LFS curseg, all blkaddr after .next_blkoff should be unused. 4680 */ 4681 for (i = 0; i < NR_PERSISTENT_LOG; i++) { 4682 struct curseg_info *curseg = CURSEG_I(sbi, i); 4683 struct seg_entry *se = get_seg_entry(sbi, curseg->segno); 4684 unsigned int blkofs = curseg->next_blkoff; 4685 |
4686 if (f2fs_sb_has_readonly(sbi) && 4687 i != CURSEG_HOT_DATA && i != CURSEG_HOT_NODE) 4688 continue; 4689 |
|
4686 sanity_check_seg_type(sbi, curseg->seg_type); 4687 4688 if (f2fs_test_bit(blkofs, se->cur_valid_map)) 4689 goto out; 4690 4691 if (curseg->alloc_type == SSR) 4692 continue; 4693 --- 651 unchanged lines hidden --- | 4690 sanity_check_seg_type(sbi, curseg->seg_type); 4691 4692 if (f2fs_test_bit(blkofs, se->cur_valid_map)) 4693 goto out; 4694 4695 if (curseg->alloc_type == SSR) 4696 continue; 4697 --- 651 unchanged lines hidden --- |