Home
last modified time | relevance | path

Searched refs:block_t (Results 1 – 21 of 21) sorted by relevance

/Linux-v5.15/fs/f2fs/
Dgc.h87 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()
Df2fs.h114 typedef u32 block_t; /* typedef
125 block_t root_reserved_blocks; /* root reserved blocks */
150 block_t unusable_cap_perc; /* percentage for cap */
151 block_t unusable_cap; /* Amount of space allowed to be
305 block_t start_blkaddr; /* start blockaddr of current segment */
325 block_t lstart; /* logical start address */
326 block_t len; /* length */
327 block_t start; /* actual start address in dev */
334 block_t lstart; /* logical start address */
335 block_t len; /* length */
[all …]
Dsegment.c831 block_t valid_blocks = in __locate_dirty_segment()
847 block_t valid_blocks; in __remove_dirty_segment()
934 block_t f2fs_get_unusable_blocks(struct f2fs_sb_info *sbi) in f2fs_get_unusable_blocks()
938 block_t ovp_holes = ovp_hole_segs << sbi->log_blocks_per_seg; in f2fs_get_unusable_blocks()
940 block_t holes[2] = {0, 0}; /* DATA and NODE */ in f2fs_get_unusable_blocks()
941 block_t unusable; in f2fs_get_unusable_blocks()
963 int f2fs_disable_cp_again(struct f2fs_sb_info *sbi, block_t unusable) in f2fs_disable_cp_again()
995 struct block_device *bdev, block_t lstart, in __create_discard_cmd()
996 block_t start, block_t len) in __create_discard_cmd()
1027 struct block_device *bdev, block_t lstart, in __attach_discard_cmd()
[all …]
Dsegment.h230 block_t old_addr; /* for revoking when fail to commit */
236 block_t sit_base_addr; /* start block address of SIT area */
237 block_t sit_blocks; /* # of blocks used by SIT area */
238 block_t written_valid_blocks; /* # of valid blocks in main area */
528 static inline block_t written_block_count(struct f2fs_sb_info *sbi) in written_block_count()
760 block_t blk_addr = sit_i->sit_base_addr + offset; in current_sit_addr()
827 static inline block_t start_sum_block(struct f2fs_sb_info *sbi) in start_sum_block()
833 static inline block_t sum_blk_addr(struct f2fs_sb_info *sbi, int base, int type) in sum_blk_addr()
Dcheckpoint.c135 static bool __is_bitmap_valid(struct f2fs_sb_info *sbi, block_t blkaddr, in __is_bitmap_valid()
160 block_t blkaddr, int type) in f2fs_is_valid_blkaddr()
213 int f2fs_ra_meta_pages(struct f2fs_sb_info *sbi, block_t start, int nrpages, in f2fs_ra_meta_pages()
217 block_t blkno = start; in f2fs_ra_meta_pages()
687 block_t start_blk, orphan_blocks, i, j; in f2fs_recover_orphan_inodes()
760 static void write_orphan_inodes(struct f2fs_sb_info *sbi, block_t start_blk) in write_orphan_inodes()
832 static int get_checkpoint_version(struct f2fs_sb_info *sbi, block_t cp_addr, in get_checkpoint_version()
865 block_t cp_addr, unsigned long long *version) in validate_checkpoint()
912 block_t cp_blk_no; in f2fs_get_valid_checkpoint()
1375 void *src, block_t blk_addr) in commit_checkpoint()
[all …]
Dnode.h59 block_t blk_addr; /* block address of the node */
269 static inline block_t next_blkaddr_of_node(struct page *node_page) in next_blkaddr_of_node()
301 static inline void fill_node_footer_blkaddr(struct page *page, block_t blkaddr) in fill_node_footer_blkaddr()
Drecovery.c350 block_t blkaddr; in find_fsync_dnodes()
444 block_t blkaddr, struct dnode_of_data *dn) in check_index_in_prev_nodes()
456 block_t bidx; in check_index_in_prev_nodes()
613 block_t src, dest; in do_recover_data()
706 block_t blkaddr; in recover_data()
Ddata.c120 block_t fs_blkaddr;
233 block_t blkaddr = ctx->fs_blkaddr; in f2fs_handle_step_decompress()
357 block_t blk_addr, struct bio *bio) in f2fs_target_device()
379 int f2fs_target_device_index(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_target_device_index()
693 block_t last_blkaddr, block_t cur_blkaddr) in page_is_mergeable()
714 block_t last_blkaddr, in io_is_mergeable()
715 block_t cur_blkaddr) in io_is_mergeable()
979 static struct bio *f2fs_grab_read_bio(struct inode *inode, block_t blkaddr, in f2fs_grab_read_bio()
1028 block_t blkaddr, int op_flags, bool for_write) in f2fs_submit_page_read()
1080 void f2fs_update_data_blkaddr(struct dnode_of_data *dn, block_t blkaddr) in f2fs_update_data_blkaddr()
[all …]
Dcompress.c842 block_t blkaddr) in f2fs_end_read_compressed_page()
921 block_t blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_sanity_check_cluster()
977 block_t blkaddr; in __f2fs_cluster_blocks()
1324 block_t blkaddr; in f2fs_write_compressed_pages()
1732 block_t first_blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_cluster_blocks_are_contiguous()
1736 block_t blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_cluster_blocks_are_contiguous()
1758 void f2fs_invalidate_compress_page(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_invalidate_compress_page()
1766 nid_t ino, block_t blkaddr) in f2fs_cache_compressed_page()
1809 block_t blkaddr) in f2fs_load_compressed_page()
Dfile.c394 static bool __found_offset(struct address_space *mapping, block_t blkaddr, in __found_offset()
463 block_t blkaddr; in f2fs_seek_block()
574 block_t blkaddr = le32_to_cpu(*addr); in f2fs_truncate_data_blocks_range()
1131 static int __read_out_blkaddrs(struct inode *inode, block_t *blkaddr, in __read_out_blkaddrs()
1186 static int __roll_back_blkaddrs(struct inode *inode, block_t *blkaddr, in __roll_back_blkaddrs()
1211 block_t *blkaddr, int *do_replace, in __clone_blkaddrs()
1298 block_t *src_blkaddr; in __exchange_data_block()
1307 array_size(olen, sizeof(block_t)), in __exchange_data_block()
1643 block_t expanded = 0; in expand_inode_data()
1669 block_t sec_blks = BLKS_PER_SEC(sbi); in expand_inode_data()
[all …]
Dgc.c897 block_t start_addr; in gc_node_segment()
978 block_t f2fs_start_bidx_of_node(unsigned int node_ofs, struct inode *inode) in f2fs_start_bidx_of_node()
1001 struct node_info *dni, block_t blkaddr, unsigned int *nofs) in is_alive()
1006 block_t source_blkaddr; in is_alive()
1139 static int move_data_block(struct inode *inode, block_t bidx, in move_data_block()
1157 block_t newaddr; in move_data_block()
1309 static int move_data_page(struct inode *inode, block_t bidx, int gc_type, in move_data_page()
1401 block_t start_addr; in gc_data_segment()
1417 block_t start_bidx; in gc_data_segment()
Dextent_cache.c531 pgoff_t fofs, block_t blkaddr, unsigned int len) in f2fs_update_extent_tree_range()
667 pgoff_t fofs, block_t blkaddr, unsigned int llen, in f2fs_update_extent_tree_range_compressed()
866 block_t blkaddr; in f2fs_update_extent_cache()
882 pgoff_t fofs, block_t blkaddr, unsigned int len) in f2fs_update_extent_cache_range()
Dsuper.c308 block_t limit = min((sbi->user_block_count << 1) / 1000, in limit_reserve_root()
1684 block_t total_count, user_block_count, start_count; in f2fs_statfs()
2037 block_t unusable; in f2fs_disable_checkpoint()
2389 block_t blkidx = F2FS_BYTES_TO_BLK(off); in f2fs_quota_read()
2951 *lblk_bits_ret = 8 * sizeof(block_t); in f2fs_get_ino_and_lblk_bits()
3170 block_t segment_count, segs_per_sec, secs_per_zone, segment_count_main; in sanity_check_raw_super()
3171 block_t total_sections, blocks_per_seg; in sanity_check_raw_super()
3273 block_t dev_seg_count = le32_to_cpu(RDEV(0).total_segments); in sanity_check_raw_super()
3349 block_t user_block_count, valid_user_blocks; in f2fs_sanity_check_ckpt()
3350 block_t avail_node_count, valid_node_count; in f2fs_sanity_check_ckpt()
[all …]
Dnode.c452 block_t new_blkaddr, bool fsync_done) in set_node_addr()
553 block_t blkaddr; in f2fs_get_node_info()
850 block_t blkaddr; in f2fs_get_dnode_of_data()
2356 block_t blk_addr; in scan_nat_page()
2393 block_t addr; in scan_curseg_cache()
2811 block_t addr; in f2fs_restore_node_summary()
3118 block_t nat_bits_addr; in __get_nat_bitmaps()
Dinode.c80 block_t addr = le32_to_cpu(ri->i_addr[offset_in_addr(ri)]); in __written_first_block()
Dsysfs.c183 block_t unusable; in unusable_show()
/Linux-v5.15/fs/minix/
Ditree_common.c5 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 …]
Ditree_v1.c8 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()
Ditree_v2.c7 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.15/include/trace/events/
Df2fs.h462 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 blklen),
1441 __field(block_t, blkstart)
[all …]
/Linux-v5.15/include/linux/
Df2fs_fs.h24 #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 */