Lines Matching refs:blk_addr
48 u32 blk_addr; member
284 #define GET_SEGOFF_FROM_SEG0(sbi, blk_addr) \ argument
285 ((blk_addr) - SM_I(sbi)->seg0_blkaddr)
287 #define GET_SEGNO_FROM_SEG0(sbi, blk_addr) \ argument
288 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) >> sbi->log_blocks_per_seg)
290 #define GET_BLKOFF_FROM_SEG0(sbi, blk_addr) \ argument
291 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) & (sbi->blocks_per_seg - 1))
358 static inline u64 BLKOFF_FROM_MAIN(struct f2fs_sb_info *sbi, u64 blk_addr) in BLKOFF_FROM_MAIN() argument
360 ASSERT(blk_addr >= SM_I(sbi)->main_blkaddr); in BLKOFF_FROM_MAIN()
361 return blk_addr - SM_I(sbi)->main_blkaddr; in BLKOFF_FROM_MAIN()
364 static inline u32 GET_SEGNO(struct f2fs_sb_info *sbi, u64 blk_addr) in GET_SEGNO() argument
366 return (u32)(BLKOFF_FROM_MAIN(sbi, blk_addr) in GET_SEGNO()
370 static inline u32 OFFSET_IN_SEG(struct f2fs_sb_info *sbi, u64 blk_addr) in OFFSET_IN_SEG() argument
372 return (u32)(BLKOFF_FROM_MAIN(sbi, blk_addr) in OFFSET_IN_SEG()
380 ni->blk_addr = le32_to_cpu(raw_nat->block_addr); in node_info_from_raw_nat()