Home
last modified time | relevance | path

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

/linux-6.3-rc2/fs/f2fs/
A 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(block_t user_block_count) in limit_invalid_user_blocks()
128 static inline block_t limit_free_user_blocks(block_t reclaimable_user_blocks) in limit_free_user_blocks()
164 block_t user_block_count = sbi->user_block_count; in has_enough_invalid_blocks()
165 block_t invalid_user_blocks = user_block_count - in has_enough_invalid_blocks()
A Df2fs.h121 typedef u32 block_t; /* typedef
649 block_t blk;
706 block_t m_pblk;
707 block_t m_lblk;
1252 block_t start_blk;
1253 block_t end_blk;
2391 block_t count) in dec_valid_block_count()
3669 block_t old_blkaddr, block_t new_blkaddr,
3673 block_t old_addr, block_t new_addr,
3677 block_t old_blkaddr, block_t *new_blkaddr,
[all …]
A Dsegment.c923 block_t start, block_t len) in __create_discard_cmd()
955 block_t start, block_t len, in __attach_discard_cmd()
1031 block_t start, block_t end) in __check_sit_bitmap()
1103 block_t start, block_t len);
1212 block_t start, block_t len, in __insert_discard_tree()
1279 block_t start, block_t len) in __update_discard_tree_range()
1569 block_t start, block_t end) in __wait_discard_cmd_range()
1809 block_t blkstart, block_t blklen) in f2fs_issue_discard()
3224 block_t old_blkaddr, block_t *new_blkaddr, in f2fs_allocate_data_block()
3510 block_t old_blkaddr, block_t new_blkaddr, in f2fs_do_replace_block()
[all …]
A Dsegment.h229 block_t old_addr; /* for revoking when fail to commit */
234 block_t sit_base_addr; /* start block address of SIT area */
235 block_t sit_blocks; /* # of blocks used by SIT area */
236 block_t written_valid_blocks; /* # of valid blocks in main area */
530 static inline block_t written_block_count(struct f2fs_sb_info *sbi) in written_block_count()
795 block_t blk_addr = sit_i->sit_base_addr + offset; in current_sit_addr()
862 static inline block_t start_sum_block(struct f2fs_sb_info *sbi) in start_sum_block()
868 static inline block_t sum_blk_addr(struct f2fs_sb_info *sbi, int base, int type) in sum_blk_addr()
A Ddata.c123 block_t fs_blkaddr;
759 block_t last_blkaddr, block_t cur_blkaddr) in page_is_mergeable()
780 block_t last_blkaddr, in io_is_mergeable()
781 block_t cur_blkaddr) in io_is_mergeable()
1414 block_t old_blkaddr; in __allocate_data_block()
1547 block_t blkaddr; in f2fs_map_blocks()
1789 block_t last_lblk; in f2fs_overwrite_io()
2242 block_t blkaddr; in f2fs_read_multi_pages()
2275 block_t blkaddr; in f2fs_read_multi_pages()
3431 block_t *blk_addr) in __find_data_block()
[all …]
A Dcheckpoint.c140 static bool __is_bitmap_valid(struct f2fs_sb_info *sbi, block_t blkaddr, in __is_bitmap_valid()
172 block_t blkaddr, int type) in f2fs_is_valid_blkaddr()
229 int f2fs_ra_meta_pages(struct f2fs_sb_info *sbi, block_t start, int nrpages, in f2fs_ra_meta_pages()
233 block_t blkno = start; in f2fs_ra_meta_pages()
708 block_t start_blk, orphan_blocks, i, j; in f2fs_recover_orphan_inodes()
778 static void write_orphan_inodes(struct f2fs_sb_info *sbi, block_t start_blk) in write_orphan_inodes()
883 block_t cp_addr, unsigned long long *version) in validate_checkpoint()
932 block_t cp_blk_no; in f2fs_get_valid_checkpoint()
1399 void *src, block_t blk_addr) in commit_checkpoint()
1460 block_t start_blk; in do_checkpoint()
[all …]
A Dnode.h62 block_t blk_addr; /* block address of the node */
267 static inline block_t next_blkaddr_of_node(struct page *node_page) in next_blkaddr_of_node()
299 static inline void fill_node_footer_blkaddr(struct page *page, block_t blkaddr) in fill_node_footer_blkaddr()
A Drecovery.c368 block_t blkaddr; in find_fsync_dnodes()
466 block_t blkaddr, struct dnode_of_data *dn) in check_index_in_prev_nodes()
478 block_t bidx; in check_index_in_prev_nodes()
646 block_t src, dest; in do_recover_data()
750 block_t blkaddr; in recover_data()
A Dcompress.c796 block_t blkaddr, bool in_task) in f2fs_end_read_compressed_page()
901 block_t blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_sanity_check_cluster()
956 block_t blkaddr; in __f2fs_cluster_blocks()
1304 block_t blkaddr; in f2fs_write_compressed_pages()
1794 block_t first_blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_cluster_blocks_are_contiguous()
1798 block_t blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_cluster_blocks_are_contiguous()
1821 void f2fs_invalidate_compress_page(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_invalidate_compress_page()
1829 nid_t ino, block_t blkaddr) in f2fs_cache_compressed_page()
1872 block_t blkaddr) in f2fs_load_compressed_page()
A Dgc.c974 block_t start_addr; in gc_node_segment()
1055 block_t f2fs_start_bidx_of_node(unsigned int node_ofs, struct inode *inode) in f2fs_start_bidx_of_node()
1078 struct node_info *dni, block_t blkaddr, unsigned int *nofs) in is_alive()
1083 block_t source_blkaddr; in is_alive()
1237 static int move_data_block(struct inode *inode, block_t bidx, in move_data_block()
1255 block_t newaddr; in move_data_block()
1399 static int move_data_page(struct inode *inode, block_t bidx, int gc_type, in move_data_page()
1481 block_t start_addr; in gc_data_segment()
1497 block_t start_bidx; in gc_data_segment()
A Dfile.c463 block_t blkaddr; in f2fs_seek_block()
574 block_t blkaddr = le32_to_cpu(*addr); in f2fs_truncate_data_blocks_range()
1252 block_t *blkaddr, int *do_replace, in __clone_blkaddrs()
1339 block_t *src_blkaddr; in __exchange_data_block()
1348 array_size(olen, sizeof(block_t)), in __exchange_data_block()
1699 block_t expanded = 0; in f2fs_expand_inode_data()
2581 block_t blk_end = 0; in f2fs_defragment_range()
3393 block_t blkaddr; in release_compress_blocks()
3557 block_t blkaddr; in reserve_compress_blocks()
3714 pgoff_t off, block_t block, block_t len, u32 flags) in f2fs_secure_erase()
[all …]
A Dextent_cache.c49 block_t blk, bool keep_clen, in __set_extent_info()
859 pgoff_t fofs, block_t blkaddr, unsigned int llen, in f2fs_update_read_extent_tree_range_compressed()
920 block_t blkaddr) in __get_new_block_age()
1085 block_t *blkaddr) in f2fs_lookup_read_extent_cache_block()
1101 pgoff_t fofs, block_t blkaddr, unsigned int len) in f2fs_update_read_extent_cache_range()
A Dsuper.c307 block_t limit = min((sbi->user_block_count >> 3), in limit_reserve_root()
334 block_t avail_user_block_count; in adjust_reserved_segment()
1739 block_t total_count, user_block_count, start_count; in f2fs_statfs()
2114 block_t unusable; in f2fs_disable_checkpoint()
2496 block_t blkidx = F2FS_BYTES_TO_BLK(off); in f2fs_quota_read()
3064 *lblk_bits_ret = 8 * sizeof(block_t); in f2fs_get_ino_and_lblk_bits()
3283 block_t total_sections, blocks_per_seg; in sanity_check_raw_super()
3385 block_t dev_seg_count = le32_to_cpu(RDEV(0).total_segments); in sanity_check_raw_super()
3461 block_t user_block_count, valid_user_blocks; in f2fs_sanity_check_ckpt()
3462 block_t avail_node_count, valid_node_count; in f2fs_sanity_check_ckpt()
[all …]
A 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()
2370 block_t blk_addr; in scan_nat_page()
2407 block_t addr; in scan_curseg_cache()
2823 block_t addr; in f2fs_restore_node_summary()
3130 block_t nat_bits_addr; in __get_nat_bitmaps()
A Dinode.c80 block_t addr = le32_to_cpu(ri->i_addr[offset_in_addr(ri)]); in __written_first_block()
A Dsysfs.c214 block_t unusable; in unusable_show()
/linux-6.3-rc2/fs/minix/
A Ditree_common.c5 block_t *p;
6 block_t key;
27 return (block_t *)((char*)bh->b_data + bh->b_size); in block_end()
215 static inline int all_zeroes(block_t *p, block_t *q) in all_zeroes()
227 block_t *top) in find_shared()
263 static inline void free_data(struct inode *inode, block_t *p, block_t *q) in free_data()
276 static void free_branches(struct inode *inode, block_t *p, block_t *q, int depth) in free_branches()
290 free_branches(inode, (block_t*)bh->b_data, in free_branches()
303 block_t *idata = i_data(inode); in truncate()
307 block_t nr = 0; in truncate()
[all …]
A 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()
A 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.3-rc2/include/trace/events/
A Df2fs.h469 __field(block_t, blk_addr)
580 __field(block_t, m_lblk)
581 __field(block_t, m_pblk)
1296 block_t old_addr, block_t new_addr, bool recovery),
1305 __field(block_t, old_addr)
1472 TP_PROTO(struct block_device *dev, block_t blkstart, block_t blklen),
1479 __field(block_t, blklen)
1496 TP_PROTO(struct block_device *dev, block_t blkstart, block_t blklen),
1503 TP_PROTO(struct block_device *dev, block_t blkstart, block_t blklen),
1510 TP_PROTO(struct block_device *dev, block_t blkstart, block_t blklen),
[all …]
/linux-6.3-rc2/include/linux/
A 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 */

Completed in 96 milliseconds