Lines Matching refs:blkaddr
135 static bool __is_bitmap_valid(struct f2fs_sb_info *sbi, block_t blkaddr, in __is_bitmap_valid() argument
145 segno = GET_SEGNO(sbi, blkaddr); in __is_bitmap_valid()
146 offset = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); in __is_bitmap_valid()
152 blkaddr, exist); in __is_bitmap_valid()
160 block_t blkaddr, int type) in f2fs_is_valid_blkaddr() argument
166 if (unlikely(blkaddr >= SIT_BLK_CNT(sbi))) in f2fs_is_valid_blkaddr()
170 if (unlikely(blkaddr >= MAIN_BLKADDR(sbi) || in f2fs_is_valid_blkaddr()
171 blkaddr < SM_I(sbi)->ssa_blkaddr)) in f2fs_is_valid_blkaddr()
175 if (unlikely(blkaddr >= SIT_I(sbi)->sit_base_addr || in f2fs_is_valid_blkaddr()
176 blkaddr < __start_cp_addr(sbi))) in f2fs_is_valid_blkaddr()
180 if (unlikely(blkaddr >= MAX_BLKADDR(sbi) || in f2fs_is_valid_blkaddr()
181 blkaddr < MAIN_BLKADDR(sbi))) in f2fs_is_valid_blkaddr()
187 if (unlikely(blkaddr >= MAX_BLKADDR(sbi) || in f2fs_is_valid_blkaddr()
188 blkaddr < MAIN_BLKADDR(sbi))) { in f2fs_is_valid_blkaddr()
190 blkaddr); in f2fs_is_valid_blkaddr()
195 return __is_bitmap_valid(sbi, blkaddr, type); in f2fs_is_valid_blkaddr()
199 if (unlikely(blkaddr < SEG0_BLKADDR(sbi) || in f2fs_is_valid_blkaddr()
200 blkaddr >= MAIN_BLKADDR(sbi))) in f2fs_is_valid_blkaddr()