Lines Matching defs:sbi
295 static inline struct f2fs_super_block *F2FS_RAW_SUPER(struct f2fs_sb_info *sbi) in F2FS_RAW_SUPER()
300 static inline struct f2fs_checkpoint *F2FS_CKPT(struct f2fs_sb_info *sbi) in F2FS_CKPT()
305 static inline struct f2fs_fsck *F2FS_FSCK(struct f2fs_sb_info *sbi) in F2FS_FSCK()
310 static inline struct f2fs_nm_info *NM_I(struct f2fs_sb_info *sbi) in NM_I()
315 static inline struct f2fs_sm_info *SM_I(struct f2fs_sb_info *sbi) in SM_I()
320 static inline struct sit_info *SIT_I(struct f2fs_sb_info *sbi) in SIT_I()
355 static inline unsigned long __bitmap_size(struct f2fs_sb_info *sbi, int flag) in __bitmap_size()
368 static inline block_t __cp_payload(struct f2fs_sb_info *sbi) in __cp_payload()
373 static inline void *__bitmap_ptr(struct f2fs_sb_info *sbi, int flag) in __bitmap_ptr()
403 static inline block_t __start_cp_addr(struct f2fs_sb_info *sbi) in __start_cp_addr()
412 static inline block_t __start_sum_addr(struct f2fs_sb_info *sbi) in __start_sum_addr()
417 static inline block_t __end_block_addr(struct f2fs_sb_info *sbi) in __end_block_addr()
423 #define GET_ZONENO_FROM_SEGNO(sbi, segno) \ argument
434 #define MAIN_BLKADDR(sbi) \ argument
437 #define SEG0_BLKADDR(sbi) \ argument
441 #define GET_SUM_BLKADDR(sbi, segno) \ argument
444 #define GET_SEGOFF_FROM_SEG0(sbi, blk_addr) \ argument
447 #define GET_SEGNO_FROM_SEG0(sbi, blk_addr) \ argument
450 #define GET_BLKOFF_FROM_SEG0(sbi, blk_addr) \ argument
453 #define GET_SEC_FROM_SEG(sbi, segno) \ argument
455 #define GET_SEG_FROM_SEC(sbi, secno) \ argument
458 #define FREE_I_START_SEGNO(sbi) \ argument
460 #define GET_R2L_SEGNO(sbi, segno) (segno + FREE_I_START_SEGNO(sbi)) argument
462 #define MAIN_SEGS(sbi) (SM_I(sbi)->main_segments) argument
463 #define TOTAL_BLKS(sbi) (TOTAL_SEGS(sbi) << (sbi)->log_blocks_per_seg) argument
464 #define MAX_BLKADDR(sbi) (SEG0_BLKADDR(sbi) + TOTAL_BLKS(sbi)) argument
466 #define START_BLOCK(sbi, segno) (SM_I(sbi)->main_blkaddr + \ argument
469 #define NEXT_FREE_BLKADDR(sbi, curseg) \ argument
472 #define SIT_BLK_CNT(sbi) \ argument
475 static inline struct curseg_info *CURSEG_I(struct f2fs_sb_info *sbi, int type) in CURSEG_I()
480 static inline block_t start_sum_block(struct f2fs_sb_info *sbi) in start_sum_block()
485 static inline block_t sum_blk_addr(struct f2fs_sb_info *sbi, int base, int type) in sum_blk_addr()
511 #define TOTAL_SEGS(sbi) (SM_I(sbi)->main_segments) argument
513 static inline bool IS_VALID_NID(struct f2fs_sb_info *sbi, u32 nid) in IS_VALID_NID()
520 static inline bool IS_VALID_BLK_ADDR(struct f2fs_sb_info *sbi, u32 addr) in IS_VALID_BLK_ADDR()
542 static inline int IS_CUR_SEGNO(struct f2fs_sb_info *sbi, u32 segno) in IS_CUR_SEGNO()
555 static inline u64 BLKOFF_FROM_MAIN(struct f2fs_sb_info *sbi, u64 blk_addr) in BLKOFF_FROM_MAIN()
561 static inline u32 GET_SEGNO(struct f2fs_sb_info *sbi, u64 blk_addr) in GET_SEGNO()
567 static inline u32 OFFSET_IN_SEG(struct f2fs_sb_info *sbi, u64 blk_addr) in OFFSET_IN_SEG()
661 static inline int get_encoding(struct f2fs_sb_info *sbi) in get_encoding()