/Linux-v5.10/fs/f2fs/ |
D | gc.h | 81 static inline block_t free_segs_blk_count_zoned(struct f2fs_sb_info *sbi) in free_segs_blk_count_zoned() 83 block_t free_seg_blks = 0; in free_segs_blk_count_zoned() 96 static inline block_t free_segs_blk_count(struct f2fs_sb_info *sbi) in free_segs_blk_count() 104 static inline block_t free_user_blocks(struct f2fs_sb_info *sbi) in free_user_blocks() 106 block_t free_blks, ovp_blks; in free_user_blocks() 117 static inline block_t limit_invalid_user_blocks(struct f2fs_sb_info *sbi) in limit_invalid_user_blocks() 122 static inline block_t limit_free_user_blocks(struct f2fs_sb_info *sbi) in limit_free_user_blocks() 124 block_t reclaimable_user_blocks = sbi->user_block_count - in limit_free_user_blocks() 160 block_t invalid_user_blocks = sbi->user_block_count - in has_enough_invalid_blocks()
|
D | f2fs.h | 112 typedef u32 block_t; /* typedef 123 block_t root_reserved_blocks; /* root reserved blocks */ 143 block_t unusable_cap_perc; /* percentage for cap */ 144 block_t unusable_cap; /* Amount of space allowed to be 272 block_t start_blkaddr; /* start blockaddr of current segment */ 292 block_t lstart; /* logical start address */ 293 block_t len; /* length */ 294 block_t start; /* actual start address in dev */ 301 block_t lstart; /* logical start address */ 302 block_t len; /* length */ [all …]
|
D | segment.c | 805 block_t valid_blocks = in __locate_dirty_segment() 821 block_t valid_blocks; in __remove_dirty_segment() 908 block_t f2fs_get_unusable_blocks(struct f2fs_sb_info *sbi) in f2fs_get_unusable_blocks() 912 block_t ovp_holes = ovp_hole_segs << sbi->log_blocks_per_seg; in f2fs_get_unusable_blocks() 914 block_t holes[2] = {0, 0}; /* DATA and NODE */ in f2fs_get_unusable_blocks() 915 block_t unusable; in f2fs_get_unusable_blocks() 937 int f2fs_disable_cp_again(struct f2fs_sb_info *sbi, block_t unusable) in f2fs_disable_cp_again() 969 struct block_device *bdev, block_t lstart, in __create_discard_cmd() 970 block_t start, block_t len) in __create_discard_cmd() 1001 struct block_device *bdev, block_t lstart, in __attach_discard_cmd() [all …]
|
D | segment.h | 232 block_t old_addr; /* for revoking when fail to commit */ 238 block_t sit_base_addr; /* start block address of SIT area */ 239 block_t sit_blocks; /* # of blocks used by SIT area */ 240 block_t written_valid_blocks; /* # of valid blocks in main area */ 518 static inline block_t written_block_count(struct f2fs_sb_info *sbi) in written_block_count() 750 block_t blk_addr = sit_i->sit_base_addr + offset; in current_sit_addr() 817 static inline block_t start_sum_block(struct f2fs_sb_info *sbi) in start_sum_block() 823 static inline block_t sum_blk_addr(struct f2fs_sb_info *sbi, int base, int type) in sum_blk_addr()
|
D | trace.h | 29 block_t len;
|
D | checkpoint.c | 132 static bool __is_bitmap_valid(struct f2fs_sb_info *sbi, block_t blkaddr, in __is_bitmap_valid() 157 block_t blkaddr, int type) in f2fs_is_valid_blkaddr() 210 int f2fs_ra_meta_pages(struct f2fs_sb_info *sbi, block_t start, int nrpages, in f2fs_ra_meta_pages() 214 block_t blkno = start; in f2fs_ra_meta_pages() 672 block_t start_blk, orphan_blocks, i, j; in f2fs_recover_orphan_inodes() 744 static void write_orphan_inodes(struct f2fs_sb_info *sbi, block_t start_blk) in write_orphan_inodes() 816 static int get_checkpoint_version(struct f2fs_sb_info *sbi, block_t cp_addr, in get_checkpoint_version() 849 block_t cp_addr, unsigned long long *version) in validate_checkpoint() 896 block_t cp_blk_no; in f2fs_get_valid_checkpoint() 1352 void *src, block_t blk_addr) in commit_checkpoint() [all …]
|
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() 597 block_t src, dest; in do_recover_data() 690 block_t blkaddr; in recover_data()
|
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()
|
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() 1028 static struct bio *f2fs_grab_read_bio(struct inode *inode, block_t blkaddr, in f2fs_grab_read_bio() 1076 block_t blkaddr, int op_flags, bool for_write) in f2fs_submit_page_read() 1128 void f2fs_update_data_blkaddr(struct dnode_of_data *dn, block_t blkaddr) in f2fs_update_data_blkaddr() 1155 block_t blkaddr = f2fs_data_blkaddr(dn); in f2fs_reserve_new_blocks() [all …]
|
D | gc.c | 862 block_t start_addr; in gc_node_segment() 943 block_t f2fs_start_bidx_of_node(unsigned int node_ofs, struct inode *inode) in f2fs_start_bidx_of_node() 964 struct node_info *dni, block_t blkaddr, unsigned int *nofs) in is_alive() 969 block_t source_blkaddr; in is_alive() 1102 static int move_data_block(struct inode *inode, block_t bidx, in move_data_block() 1120 block_t newaddr; in move_data_block() 1272 static int move_data_page(struct inode *inode, block_t bidx, int gc_type, in move_data_page() 1363 block_t start_addr; in gc_data_segment() 1379 block_t start_bidx; in gc_data_segment()
|
D | file.c | 379 static bool __found_offset(struct address_space *mapping, block_t blkaddr, in __found_offset() 443 block_t blkaddr; in f2fs_seek_block() 557 block_t blkaddr = le32_to_cpu(*addr); in f2fs_truncate_data_blocks_range() 1089 static int __read_out_blkaddrs(struct inode *inode, block_t *blkaddr, in __read_out_blkaddrs() 1144 static int __roll_back_blkaddrs(struct inode *inode, block_t *blkaddr, in __roll_back_blkaddrs() 1169 block_t *blkaddr, int *do_replace, in __clone_blkaddrs() 1256 block_t *src_blkaddr; in __exchange_data_block() 1265 array_size(olen, sizeof(block_t)), in __exchange_data_block() 1624 block_t len = (map.m_len >> sbi->log_blocks_per_seg) << in expand_inode_data() 1626 block_t done = 0; in expand_inode_data() [all …]
|
D | super.c | 270 block_t limit = min((sbi->user_block_count << 1) / 1000, in limit_reserve_root() 1407 block_t total_count, user_block_count, start_count; in f2fs_statfs() 1714 block_t unusable; in f2fs_disable_checkpoint() 1979 block_t blkidx = F2FS_BYTES_TO_BLK(off); in f2fs_quota_read() 2529 *lblk_bits_ret = 8 * sizeof(block_t); in f2fs_get_ino_and_lblk_bits() 2743 block_t segment_count, segs_per_sec, secs_per_zone, segment_count_main; in sanity_check_raw_super() 2744 block_t total_sections, blocks_per_seg; in sanity_check_raw_super() 2854 block_t dev_seg_count = le32_to_cpu(RDEV(0).total_segments); in sanity_check_raw_super() 2928 block_t user_block_count, valid_user_blocks; in f2fs_sanity_check_ckpt() 2929 block_t avail_node_count, valid_node_count; in f2fs_sanity_check_ckpt() [all …]
|
D | extent_cache.c | 530 pgoff_t fofs, block_t blkaddr, unsigned int len) in f2fs_update_extent_tree_range() 824 block_t blkaddr; in f2fs_update_extent_cache() 840 pgoff_t fofs, block_t blkaddr, unsigned int len) in f2fs_update_extent_cache_range()
|
D | node.c | 425 block_t new_blkaddr, bool fsync_done) in set_node_addr() 525 block_t blkaddr; in f2fs_get_node_info() 2284 block_t blk_addr; in scan_nat_page() 2321 block_t addr; in scan_curseg_cache() 2733 block_t addr; in f2fs_restore_node_summary() 2997 block_t nat_bits_addr; in __get_nat_bitmaps()
|
D | compress.c | 880 block_t blkaddr; in __f2fs_cluster_blocks() 1251 block_t blkaddr; in f2fs_write_compressed_pages()
|
D | inode.c | 76 block_t addr = le32_to_cpu(ri->i_addr[offset_in_addr(ri)]); in __written_first_block()
|
D | sysfs.c | 166 block_t unusable; in unusable_show()
|
/Linux-v5.10/fs/minix/ |
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 *top) in find_shared() 244 for (p=partial;p>chain && all_zeroes((block_t*)p->bh->b_data,p->p);p--) in find_shared() [all …]
|
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()
|
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()
|
/Linux-v5.10/include/trace/events/ |
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), 579 __field(block_t, m_lblk) 580 __field(block_t, m_pblk) 1026 __field(block_t, old_blkaddr) 1027 __field(block_t, new_blkaddr) 1434 TP_PROTO(struct block_device *dev, block_t blkstart, block_t blklen), 1440 __field(block_t, blkstart) [all …]
|
/Linux-v5.10/include/linux/ |
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 */
|