/kernel/linux/linux-6.6/fs/f2fs/ |
H A D | gc.h | 79 static inline block_t free_segs_blk_count_zoned(struct f2fs_sb_info *sbi) in free_segs_blk_count_zoned() 81 block_t free_seg_blks = 0; in free_segs_blk_count_zoned() 94 static inline block_t free_segs_blk_count(struct f2fs_sb_info *sbi) in free_segs_blk_count() 102 static inline block_t free_user_blocks(struct f2fs_sb_info *sbi) in free_user_blocks() 104 block_t free_blks, ovp_blks; in free_user_blocks() 115 static inline block_t limit_invalid_user_blocks(block_t user_block_count) in limit_invalid_user_blocks() 120 static inline block_t limit_free_user_blocks(block_t reclaimable_user_blocks) in limit_free_user_blocks() 156 block_t user_block_coun in has_enough_invalid_blocks() [all...] |
H A D | f2fs.h | 126 typedef u32 block_t; /* typedef 151 block_t root_reserved_blocks; /* root reserved blocks */ 177 block_t unusable_cap_perc; /* percentage for cap */ 178 block_t unusable_cap; /* Amount of space allowed to be 331 block_t start_blkaddr; /* start blockaddr of current segment */ 355 block_t lstart; /* logical start address */ 356 block_t len; /* length */ 357 block_t start; /* actual start address in dev */ 428 block_t blkaddr; /* block address locating the last fsync */ 429 block_t last_dentr [all...] |
H A D | segment.c | 213 block_t new_addr, block_t *old_addr, bool recover) in __replace_atomic_write_block() 303 block_t blkaddr; in __f2fs_commit_atomic_write() 768 block_t valid_blocks = in __locate_dirty_segment() 784 block_t valid_blocks; in __remove_dirty_segment() 871 block_t f2fs_get_unusable_blocks(struct f2fs_sb_info *sbi) in f2fs_get_unusable_blocks() 875 block_t ovp_holes = ovp_hole_segs << sbi->log_blocks_per_seg; in f2fs_get_unusable_blocks() 877 block_t holes[2] = {0, 0}; /* DATA and NODE */ in f2fs_get_unusable_blocks() 878 block_t unusable; in f2fs_get_unusable_blocks() 900 int f2fs_disable_cp_again(struct f2fs_sb_info *sbi, block_t unusabl [all...] |
H A D | segment.h | 232 block_t old_addr; /* for revoking when fail to commit */ 237 block_t sit_base_addr; /* start block address of SIT area */ 238 block_t sit_blocks; /* # of blocks used by SIT area */ 239 block_t written_valid_blocks; /* # of valid blocks in main area */ 526 static inline block_t written_block_count(struct f2fs_sb_info *sbi) in written_block_count() 817 block_t blk_addr = sit_i->sit_base_addr + offset; in current_sit_addr() 884 static inline block_t start_sum_block(struct f2fs_sb_info *sbi) in start_sum_block() 890 static inline block_t sum_blk_addr(struct f2fs_sb_info *sbi, int base, int type) in sum_blk_addr()
|
H A D | data.c | 121 block_t fs_blkaddr; 245 block_t blkaddr = ctx->fs_blkaddr; in f2fs_handle_step_decompress() 396 block_t blk_addr, sector_t *sector) in f2fs_target_device() 417 int f2fs_target_device_index(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_target_device_index() 773 block_t last_blkaddr, block_t cur_blkaddr) in page_is_mergeable() 794 block_t last_blkaddr, in io_is_mergeable() 795 block_t cur_blkaddr) in io_is_mergeable() 983 static bool is_end_zone_blkaddr(struct f2fs_sb_info *sbi, block_t blkaddr) in is_end_zone_blkaddr() 1105 static struct bio *f2fs_grab_read_bio(struct inode *inode, block_t blkadd [all...] |
H A D | recovery.c | 364 static int sanity_check_node_chain(struct f2fs_sb_info *sbi, block_t blkaddr, in sanity_check_node_chain() 365 block_t *blkaddr_fast, bool *is_detecting) in sanity_check_node_chain() 412 block_t blkaddr, blkaddr_fast; in find_fsync_dnodes() 495 block_t blkaddr, struct dnode_of_data *dn) in check_index_in_prev_nodes() 507 block_t bidx; in check_index_in_prev_nodes() 688 block_t src, dest; in do_recover_data() 789 block_t blkaddr; in recover_data()
|
H A D | checkpoint.c | 137 static bool __is_bitmap_valid(struct f2fs_sb_info *sbi, block_t blkaddr, in __is_bitmap_valid() 174 block_t blkaddr, int type) in f2fs_is_valid_blkaddr() 236 int f2fs_ra_meta_pages(struct f2fs_sb_info *sbi, block_t start, int nrpages, in f2fs_ra_meta_pages() 240 block_t blkno = start; in f2fs_ra_meta_pages() 723 block_t start_blk, orphan_blocks, i, j; in f2fs_recover_orphan_inodes() 772 static void write_orphan_inodes(struct f2fs_sb_info *sbi, block_t start_blk) in write_orphan_inodes() 844 static int get_checkpoint_version(struct f2fs_sb_info *sbi, block_t cp_addr, in get_checkpoint_version() 877 block_t cp_addr, unsigned long long *version) in validate_checkpoint() 926 block_t cp_blk_no; in f2fs_get_valid_checkpoint() 1394 void *src, block_t blk_add in commit_checkpoint() [all...] |
/kernel/linux/linux-5.10/fs/f2fs/ |
H A D | gc.h | 87 static inline block_t free_segs_blk_count_zoned(struct f2fs_sb_info *sbi) in free_segs_blk_count_zoned() 89 block_t free_seg_blks = 0; in free_segs_blk_count_zoned() 102 static inline block_t free_segs_blk_count(struct f2fs_sb_info *sbi) in free_segs_blk_count() 110 static inline block_t free_user_blocks(struct f2fs_sb_info *sbi) in free_user_blocks() 112 block_t free_blks, ovp_blks; in free_user_blocks() 123 static inline block_t limit_invalid_user_blocks(struct f2fs_sb_info *sbi) in limit_invalid_user_blocks() 128 static inline block_t limit_free_user_blocks(struct f2fs_sb_info *sbi) in limit_free_user_blocks() 130 block_t reclaimable_user_blocks = sbi->user_block_count - in limit_free_user_blocks() 166 block_t invalid_user_blocks = sbi->user_block_count - in has_enough_invalid_blocks()
|
H A D | f2fs.h | 118 typedef u32 block_t; /* typedef 129 block_t root_reserved_blocks; /* root reserved blocks */ 149 block_t unusable_cap_perc; /* percentage for cap */ 150 block_t unusable_cap; /* Amount of space allowed to be 282 block_t start_blkaddr; /* start blockaddr of current segment */ 308 block_t lstart; /* logical start address */ 309 block_t len; /* length */ 310 block_t start; /* actual start address in dev */ 317 block_t lstart; /* logical start address */ 318 block_t le [all...] |
H A D | segment.c | 917 block_t valid_blocks = in __locate_dirty_segment() 933 block_t valid_blocks; in __remove_dirty_segment() 1020 block_t f2fs_get_unusable_blocks(struct f2fs_sb_info *sbi) in f2fs_get_unusable_blocks() 1024 block_t ovp_holes = ovp_hole_segs << sbi->log_blocks_per_seg; in f2fs_get_unusable_blocks() 1026 block_t holes[2] = {0, 0}; /* DATA and NODE */ in f2fs_get_unusable_blocks() 1027 block_t unusable; in f2fs_get_unusable_blocks() 1049 int f2fs_disable_cp_again(struct f2fs_sb_info *sbi, block_t unusable) in f2fs_disable_cp_again() 1081 struct block_device *bdev, block_t lstart, in __create_discard_cmd() 1082 block_t start, block_t le in __create_discard_cmd() [all...] |
H A D | segment.h | 257 block_t old_addr; /* for revoking when fail to commit */ 263 block_t sit_base_addr; /* start block address of SIT area */ 264 block_t sit_blocks; /* # of blocks used by SIT area */ 265 block_t written_valid_blocks; /* # of valid blocks in main area */ 555 static inline block_t written_block_count(struct f2fs_sb_info *sbi) in written_block_count() 796 block_t blk_addr = sit_i->sit_base_addr + offset; in current_sit_addr() 863 static inline block_t start_sum_block(struct f2fs_sb_info *sbi) in start_sum_block() 869 static inline block_t sum_blk_addr(struct f2fs_sb_info *sbi, int base, int type) in sum_blk_addr()
|
H A D | trace.h | 29 block_t len;
|
H A D | checkpoint.c | 132 static bool __is_bitmap_valid(struct f2fs_sb_info *sbi, block_t blkaddr, in __is_bitmap_valid() 164 block_t blkaddr, int type) in f2fs_is_valid_blkaddr() 218 int f2fs_ra_meta_pages(struct f2fs_sb_info *sbi, block_t start, int nrpages, in f2fs_ra_meta_pages() 222 block_t blkno = start; in f2fs_ra_meta_pages() 687 block_t start_blk, orphan_blocks, i, j; in f2fs_recover_orphan_inodes() 759 static void write_orphan_inodes(struct f2fs_sb_info *sbi, block_t start_blk) in write_orphan_inodes() 831 static int get_checkpoint_version(struct f2fs_sb_info *sbi, block_t cp_addr, in get_checkpoint_version() 864 block_t cp_addr, unsigned long long *version) in validate_checkpoint() 913 block_t cp_blk_no; in f2fs_get_valid_checkpoint() 1376 void *src, block_t blk_add in commit_checkpoint() [all...] |
H A D | recovery.c | 335 block_t blkaddr; in find_fsync_dnodes() 429 block_t blkaddr, struct dnode_of_data *dn) in check_index_in_prev_nodes() 441 block_t bidx; in check_index_in_prev_nodes() 619 block_t src, dest; in do_recover_data() 717 block_t blkaddr; in recover_data()
|
H A D | data.c | 395 block_t blk_addr, struct bio *bio) in f2fs_target_device() 417 int f2fs_target_device_index(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_target_device_index() 434 block_t blk_addr, struct bio *bio) in __same_bdev() 737 block_t last_blkaddr, block_t cur_blkaddr) in page_is_mergeable() 755 block_t last_blkaddr, in io_is_mergeable() 756 block_t cur_blkaddr) in io_is_mergeable() 1030 static struct bio *f2fs_grab_read_bio(struct inode *inode, block_t blkaddr, in f2fs_grab_read_bio() 1079 block_t blkaddr, int op_flags, bool for_write) in f2fs_submit_page_read() 1131 void f2fs_update_data_blkaddr(struct dnode_of_data *dn, block_t blkadd [all...] |
H A D | node.h | 56 block_t blk_addr; /* block address of the node */ 264 static inline block_t next_blkaddr_of_node(struct page *node_page) in next_blkaddr_of_node() 296 static inline void fill_node_footer_blkaddr(struct page *page, block_t blkaddr) in fill_node_footer_blkaddr()
|
/kernel/linux/linux-5.10/fs/minix/ |
H A D | itree_common.c | 5 block_t *p; 6 block_t key; 12 static inline void add_chain(Indirect *p, struct buffer_head *bh, block_t *v) in add_chain() 25 static inline block_t *block_end(struct buffer_head *bh) in block_end() 27 return (block_t *)((char*)bh->b_data + bh->b_size); in block_end() 52 add_chain(++p, bh, (block_t *)bh->b_data + *++offsets); in get_branch() 97 branch[n].p = (block_t*) bh->b_data + offsets[n]; in alloc_branch() 215 static inline int all_zeroes(block_t *p, block_t *q) in all_zeroes() 227 block_t *to in find_shared() [all...] |
H A D | itree_v1.c | 8 typedef u16 block_t; /* 16 bit, host order */ typedef 10 static inline unsigned long block_to_cpu(block_t n) in block_to_cpu() 15 static inline block_t cpu_to_block(unsigned long n) in cpu_to_block() 20 static inline block_t *i_data(struct inode *inode) in i_data() 22 return (block_t *)minix_i(inode)->u.i1_data; in i_data()
|
H A D | itree_v2.c | 7 typedef u32 block_t; /* 32 bit, host order */ typedef 9 static inline unsigned long block_to_cpu(block_t n) in block_to_cpu() 14 static inline block_t cpu_to_block(unsigned long n) in cpu_to_block() 19 static inline block_t *i_data(struct inode *inode) in i_data() 21 return (block_t *)minix_i(inode)->u.i2_data; in i_data()
|
/kernel/linux/linux-6.6/fs/minix/ |
H A D | itree_common.c | 5 block_t *p; 6 block_t key; 12 static inline void add_chain(Indirect *p, struct buffer_head *bh, block_t *v) in add_chain() 25 static inline block_t *block_end(struct buffer_head *bh) in block_end() 27 return (block_t *)((char*)bh->b_data + bh->b_size); in block_end() 52 add_chain(++p, bh, (block_t *)bh->b_data + *++offsets); in get_branch() 97 branch[n].p = (block_t*) bh->b_data + offsets[n]; in alloc_branch() 215 static inline int all_zeroes(block_t *p, block_t *q) in all_zeroes() 227 block_t *to in find_shared() [all...] |
H A D | itree_v1.c | 8 typedef u16 block_t; /* 16 bit, host order */ typedef 10 static inline unsigned long block_to_cpu(block_t n) in block_to_cpu() 15 static inline block_t cpu_to_block(unsigned long n) in cpu_to_block() 20 static inline block_t *i_data(struct inode *inode) in i_data() 22 return (block_t *)minix_i(inode)->u.i1_data; in i_data()
|
H A D | itree_v2.c | 7 typedef u32 block_t; /* 32 bit, host order */ typedef 9 static inline unsigned long block_to_cpu(block_t n) in block_to_cpu() 14 static inline block_t cpu_to_block(unsigned long n) in cpu_to_block() 19 static inline block_t *i_data(struct inode *inode) in i_data() 21 return (block_t *)minix_i(inode)->u.i2_data; in i_data()
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | f2fs.h | 462 TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr), 470 __field(block_t, blk_addr) 488 TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr), 502 TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr), 580 __field(block_t, m_lblk) 581 __field(block_t, m_pblk) 1027 __field(block_t, old_blkaddr) 1028 __field(block_t, new_blkaddr) 1435 TP_PROTO(struct block_device *dev, block_t blkstart, block_t blkle [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | f2fs.h | 461 TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr), 469 __field(block_t, blk_addr) 487 TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr), 501 TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr), 580 __field(block_t, m_lblk) 581 __field(block_t, m_pblk) 1045 __field(block_t, old_blkaddr) 1046 __field(block_t, new_blkaddr) 1296 block_t old_addr, block_t new_add [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | f2fs_fs.h | 24 #define NULL_ADDR ((block_t)0) /* used as block_t addresses */ 25 #define NEW_ADDR ((block_t)-1) /* used as block_t addresses */ 26 #define COMPRESS_ADDR ((block_t)-2) /* used as compressed data flag */ 387 * ex) data_blkaddr = (block_t)(nodepage_start_address + ofs_in_node)
|