/linux-4.19.296/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-4.19.296/fs/f2fs/ |
D | gc.h | 50 static inline block_t free_user_blocks(struct f2fs_sb_info *sbi) in free_user_blocks() 59 static inline block_t limit_invalid_user_blocks(struct f2fs_sb_info *sbi) in limit_invalid_user_blocks() 64 static inline block_t limit_free_user_blocks(struct f2fs_sb_info *sbi) in limit_free_user_blocks() 66 block_t reclaimable_user_blocks = sbi->user_block_count - in limit_free_user_blocks() 102 block_t invalid_user_blocks = sbi->user_block_count - in has_enough_invalid_blocks()
|
D | f2fs.h | 113 typedef u32 block_t; /* typedef 122 block_t root_reserved_blocks; /* root reserved blocks */ 242 block_t start_blkaddr; /* start blockaddr of current segment */ 262 block_t lstart; /* logical start address */ 263 block_t len; /* length */ 264 block_t start; /* actual start address in dev */ 271 block_t lstart; /* logical start address */ 272 block_t len; /* length */ 273 block_t start; /* actual start address in dev */ 335 block_t blkaddr; /* block address locating the last fsync */ [all …]
|
D | segment.c | 852 struct block_device *bdev, block_t lstart, in __create_discard_cmd() 853 block_t start, block_t len) in __create_discard_cmd() 884 struct block_device *bdev, block_t lstart, in __attach_discard_cmd() 885 block_t start, block_t len, in __attach_discard_cmd() 959 block_t start, block_t end) in __check_sit_bitmap() 964 block_t blk = start; in __check_sit_bitmap() 1023 struct block_device *bdev, block_t lstart, 1024 block_t start, block_t len); 1039 block_t lstart, start, len, total_len; in __submit_discard_cmd() 1134 struct block_device *bdev, block_t lstart, in __insert_discard_tree() [all …]
|
D | segment.h | 223 block_t old_addr; /* for revoking when fail to commit */ 229 block_t sit_base_addr; /* start block address of SIT area */ 230 block_t sit_blocks; /* # of blocks used by SIT area */ 231 block_t written_valid_blocks; /* # of valid blocks in main area */ 492 static inline block_t written_block_count(struct f2fs_sb_info *sbi) in written_block_count() 655 static inline void verify_block_addr(struct f2fs_io_info *fio, block_t blk_addr) in verify_block_addr() 715 block_t blk_addr = sit_i->sit_base_addr + offset; in current_sit_addr() 782 static inline block_t start_sum_block(struct f2fs_sb_info *sbi) in start_sum_block() 788 static inline block_t sum_blk_addr(struct f2fs_sb_info *sbi, int base, int type) in sum_blk_addr()
|
D | trace.h | 32 block_t len;
|
D | gc.c | 470 block_t start_addr; in gc_node_segment() 545 block_t f2fs_start_bidx_of_node(unsigned int node_ofs, struct inode *inode) in f2fs_start_bidx_of_node() 566 struct node_info *dni, block_t blkaddr, unsigned int *nofs) in is_alive() 571 block_t source_blkaddr; in is_alive() 676 static void move_data_block(struct inode *inode, block_t bidx, in move_data_block() 694 block_t newaddr; in move_data_block() 831 static void move_data_page(struct inode *inode, block_t bidx, int gc_type, in move_data_page() 913 block_t start_addr; in gc_data_segment() 927 block_t start_bidx; in gc_data_segment()
|
D | checkpoint.c | 140 block_t blkaddr, int type) in f2fs_is_valid_blkaddr() 186 int f2fs_ra_meta_pages(struct f2fs_sb_info *sbi, block_t start, int nrpages, in f2fs_ra_meta_pages() 190 block_t blkno = start; in f2fs_ra_meta_pages() 653 block_t start_blk, orphan_blocks, i, j; in f2fs_recover_orphan_inodes() 720 static void write_orphan_inodes(struct f2fs_sb_info *sbi, block_t start_blk) in write_orphan_inodes() 777 static int get_checkpoint_version(struct f2fs_sb_info *sbi, block_t cp_addr, in get_checkpoint_version() 811 block_t cp_addr, unsigned long long *version) in validate_checkpoint() 859 block_t cp_blk_no; in f2fs_get_valid_checkpoint() 1248 void *src, block_t blk_addr) in commit_checkpoint() 1289 block_t start_blk; in do_checkpoint() [all …]
|
D | recovery.c | 267 block_t blkaddr; in find_fsync_dnodes() 357 block_t blkaddr, struct dnode_of_data *dn) in check_index_in_prev_nodes() 369 block_t bidx; in check_index_in_prev_nodes() 525 block_t src, dest; in do_recover_data() 607 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 | 195 block_t blk_addr, struct bio *bio) in f2fs_target_device() 217 int f2fs_target_device_index(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_target_device_index() 231 block_t blk_addr, struct bio *bio) in __same_bdev() 240 static struct bio *__bio_alloc(struct f2fs_sb_info *sbi, block_t blk_addr, in __bio_alloc() 551 static struct bio *f2fs_grab_read_bio(struct inode *inode, block_t blkaddr, in f2fs_grab_read_bio() 587 block_t blkaddr) in f2fs_submit_page_read() 634 void f2fs_update_data_blkaddr(struct dnode_of_data *dn, block_t blkaddr) in f2fs_update_data_blkaddr() 661 block_t blkaddr = datablock_addr(dn->inode, in f2fs_reserve_new_blocks() 891 block_t old_blkaddr; in __allocate_data_block() 1019 block_t blkaddr; in f2fs_map_blocks() [all …]
|
D | extent_cache.c | 488 pgoff_t fofs, block_t blkaddr, unsigned int len) in f2fs_update_extent_tree_range() 779 block_t blkaddr; in f2fs_update_extent_cache() 795 pgoff_t fofs, block_t blkaddr, unsigned int len) in f2fs_update_extent_cache_range()
|
D | file.c | 356 static bool __found_offset(struct f2fs_sb_info *sbi, block_t blkaddr, in __found_offset() 421 block_t blkaddr; in f2fs_seek_block() 520 block_t blkaddr = le32_to_cpu(*addr); in f2fs_truncate_data_blocks_range() 985 static int __read_out_blkaddrs(struct inode *inode, block_t *blkaddr, in __read_out_blkaddrs() 1032 static int __roll_back_blkaddrs(struct inode *inode, block_t *blkaddr, in __roll_back_blkaddrs() 1057 block_t *blkaddr, int *do_replace, in __clone_blkaddrs() 1145 block_t *src_blkaddr; in __exchange_data_block() 1154 array_size(olen, sizeof(block_t)), in __exchange_data_block() 2190 block_t blk_end = 0; in f2fs_defragment_range()
|
D | super.c | 216 block_t limit = (sbi->user_block_count << 1) / 1000; in limit_reserve_root() 1187 block_t total_count, user_block_count, start_count; in f2fs_statfs() 1593 block_t blkidx = F2FS_BYTES_TO_BLK(off); in f2fs_quota_read() 2204 block_t segment_count, segs_per_sec, secs_per_zone; in sanity_check_raw_super() 2205 block_t total_sections, blocks_per_seg; in sanity_check_raw_super() 2359 block_t user_block_count; in f2fs_sanity_check_ckpt()
|
D | node.c | 427 block_t new_blkaddr, bool fsync_done) in set_node_addr() 2174 block_t blk_addr; in scan_nat_page() 2211 block_t addr; in scan_curseg_cache() 2616 block_t addr; in f2fs_restore_node_summary() 2873 block_t nat_bits_addr; in __get_nat_bitmaps()
|
D | inode.c | 74 block_t addr = le32_to_cpu(ri->i_addr[offset_in_addr(ri)]); in __written_first_block()
|
/linux-4.19.296/include/trace/events/ |
D | f2fs.h | 447 TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr), 455 __field(block_t, blk_addr) 473 TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr), 487 TP_PROTO(struct inode *inode, nid_t nid, block_t blk_addr), 534 __field(block_t, m_lblk) 535 __field(block_t, m_pblk) 971 __field(block_t, old_blkaddr) 972 __field(block_t, new_blkaddr) 1352 TP_PROTO(struct block_device *dev, block_t blkstart, block_t blklen), 1358 __field(block_t, blkstart) [all …]
|
/linux-4.19.296/include/linux/ |
D | f2fs_fs.h | 27 #define NULL_ADDR ((block_t)0) /* used as block_t addresses */ 28 #define NEW_ADDR ((block_t)-1) /* used as block_t addresses */
|