Lines Matching refs:blk_addr
119 u32 blk_addr; member
430 #define GET_SEGOFF_FROM_SEG0(sbi, blk_addr) \ argument
431 ((blk_addr) - SM_I(sbi)->seg0_blkaddr)
433 #define GET_SEGNO_FROM_SEG0(sbi, blk_addr) \ argument
434 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) >> sbi->log_blocks_per_seg)
436 #define GET_BLKOFF_FROM_SEG0(sbi, blk_addr) \ argument
437 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) & (sbi->blocks_per_seg - 1))
533 static inline u64 BLKOFF_FROM_MAIN(struct f2fs_sb_info *sbi, u64 blk_addr) in BLKOFF_FROM_MAIN() argument
535 ASSERT(blk_addr >= SM_I(sbi)->main_blkaddr); in BLKOFF_FROM_MAIN()
536 return blk_addr - SM_I(sbi)->main_blkaddr; in BLKOFF_FROM_MAIN()
539 static inline u32 GET_SEGNO(struct f2fs_sb_info *sbi, u64 blk_addr) in GET_SEGNO() argument
541 return (u32)(BLKOFF_FROM_MAIN(sbi, blk_addr) in GET_SEGNO()
545 static inline u32 OFFSET_IN_SEG(struct f2fs_sb_info *sbi, u64 blk_addr) in OFFSET_IN_SEG() argument
547 return (u32)(BLKOFF_FROM_MAIN(sbi, blk_addr) in OFFSET_IN_SEG()
555 ni->blk_addr = le32_to_cpu(raw_nat->block_addr); in node_info_from_raw_nat()