Home
last modified time | relevance | path

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

/linux-6.6.21/fs/f2fs/ !
Dgc.h79 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_count = sbi->user_block_count; in has_enough_invalid_blocks()
157 block_t invalid_user_blocks = user_block_count - in has_enough_invalid_blocks()
Df2fs.h121 typedef u32 block_t; /* typedef
146 block_t root_reserved_blocks; /* root reserved blocks */
172 block_t unusable_cap_perc; /* percentage for cap */
173 block_t unusable_cap; /* Amount of space allowed to be
326 block_t start_blkaddr; /* start blockaddr of current segment */
350 block_t lstart; /* logical start address */
351 block_t len; /* length */
352 block_t start; /* actual start address in dev */
423 block_t blkaddr; /* block address locating the last fsync */
424 block_t last_dentry; /* block address locating the last dentry */
[all …]
Dsegment.c213 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 unusable) in f2fs_disable_cp_again()
932 struct block_device *bdev, block_t lstart, in __create_discard_cmd()
[all …]
Dsegment.h232 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()
818 block_t blk_addr = sit_i->sit_base_addr + offset; in current_sit_addr()
885 static inline block_t start_sum_block(struct f2fs_sb_info *sbi) in start_sum_block()
891 static inline block_t sum_blk_addr(struct f2fs_sb_info *sbi, int base, int type) in sum_blk_addr()
Drecovery.c364 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()
675 block_t src, dest; in do_recover_data()
790 block_t blkaddr; in recover_data()
Ddata.c123 block_t fs_blkaddr;
247 block_t blkaddr = ctx->fs_blkaddr; in f2fs_handle_step_decompress()
398 block_t blk_addr, sector_t *sector) in f2fs_target_device()
419 int f2fs_target_device_index(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_target_device_index()
775 block_t last_blkaddr, block_t cur_blkaddr) in page_is_mergeable()
796 block_t last_blkaddr, in io_is_mergeable()
797 block_t cur_blkaddr) in io_is_mergeable()
985 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 blkaddr, in f2fs_grab_read_bio()
1155 block_t blkaddr, blk_opf_t op_flags, in f2fs_submit_page_read()
[all …]
Dcheckpoint.c137 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_addr) in commit_checkpoint()
[all …]
Dnode.h61 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()
Dcompress.c808 block_t blkaddr, bool in_task) in f2fs_end_read_compressed_page()
913 block_t blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_sanity_check_cluster()
968 block_t blkaddr; in __f2fs_cluster_blocks()
1319 block_t blkaddr; in f2fs_write_compressed_pages()
1808 block_t first_blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_cluster_blocks_are_contiguous()
1812 block_t blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_cluster_blocks_are_contiguous()
1835 void f2fs_invalidate_compress_page(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_invalidate_compress_page()
1843 nid_t ino, block_t blkaddr) in f2fs_cache_compressed_page()
1886 block_t blkaddr) in f2fs_load_compressed_page()
Dgc.c1001 block_t start_addr; in gc_node_segment()
1082 block_t f2fs_start_bidx_of_node(unsigned int node_ofs, struct inode *inode) in f2fs_start_bidx_of_node()
1105 struct node_info *dni, block_t blkaddr, unsigned int *nofs) in is_alive()
1110 block_t source_blkaddr; in is_alive()
1264 static int move_data_block(struct inode *inode, block_t bidx, in move_data_block()
1282 block_t newaddr; in move_data_block()
1426 static int move_data_page(struct inode *inode, block_t bidx, int gc_type, in move_data_page()
1508 block_t start_addr; in gc_data_segment()
1524 block_t start_bidx; in gc_data_segment()
Dextent_cache.c57 block_t blk, bool keep_clen, in __set_extent_info()
757 pgoff_t fofs, block_t blkaddr, unsigned int llen, in f2fs_update_read_extent_tree_range_compressed()
817 block_t blkaddr) in __get_new_block_age()
982 block_t *blkaddr) in f2fs_lookup_read_extent_cache_block()
998 pgoff_t fofs, block_t blkaddr, unsigned int len) in f2fs_update_read_extent_cache_range()
Dfile.c392 static bool __found_offset(struct address_space *mapping, block_t blkaddr, in __found_offset()
461 block_t blkaddr; in f2fs_seek_block()
577 block_t blkaddr = le32_to_cpu(*addr); in f2fs_truncate_data_blocks_range()
1169 static int __read_out_blkaddrs(struct inode *inode, block_t *blkaddr, in __read_out_blkaddrs()
1225 static int __roll_back_blkaddrs(struct inode *inode, block_t *blkaddr, in __roll_back_blkaddrs()
1250 block_t *blkaddr, int *do_replace, in __clone_blkaddrs()
1338 block_t *src_blkaddr; in __exchange_data_block()
1347 array_size(olen, sizeof(block_t)), in __exchange_data_block()
1698 block_t expanded = 0; in f2fs_expand_inode_data()
1724 block_t sec_blks = CAP_BLKS_PER_SEC(sbi); in f2fs_expand_inode_data()
[all …]
Dsuper.c309 block_t limit = min((sbi->user_block_count >> 3), in limit_reserve_root()
336 block_t avail_user_block_count; in adjust_reserved_segment()
1829 block_t total_count, user_block_count, start_count; in f2fs_statfs()
2220 block_t unusable; in f2fs_disable_checkpoint()
2655 block_t blkidx = F2FS_BYTES_TO_BLK(off); in f2fs_quota_read()
3243 *lblk_bits_ret = 8 * sizeof(block_t); in f2fs_get_ino_and_lblk_bits()
3461 block_t segment_count, segs_per_sec, secs_per_zone, segment_count_main; in sanity_check_raw_super()
3462 block_t total_sections, blocks_per_seg; in sanity_check_raw_super()
3564 block_t dev_seg_count = le32_to_cpu(RDEV(0).total_segments); in sanity_check_raw_super()
3640 block_t user_block_count, valid_user_blocks; in f2fs_sanity_check_ckpt()
[all …]
Dnode.c457 block_t new_blkaddr, bool fsync_done) in set_node_addr()
558 block_t blkaddr; in f2fs_get_node_info()
856 block_t blkaddr; in f2fs_get_dnode_of_data()
2378 block_t blk_addr; in scan_nat_page()
2415 block_t addr; in scan_curseg_cache()
2840 block_t addr; in f2fs_restore_node_summary()
3147 block_t nat_bits_addr; in __get_nat_bitmaps()
Dinode.c82 block_t addr = le32_to_cpu(ri->i_addr[offset_in_addr(ri)]); in __written_first_block()
Dsysfs.c214 block_t unusable; in unusable_show()
/linux-6.6.21/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-6.6.21/include/trace/events/ !
Df2fs.h461 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_addr, bool recovery),
1305 __field(block_t, old_addr)
[all …]
/linux-6.6.21/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 */