Home
last modified time | relevance | path

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

/fs/f2fs/
Df2fs.h40 typedef u64 block_t; typedef
81 block_t blkaddr; /* block address locating the last inode */
191 block_t nat_blkaddr; /* base disk address of NAT */
225 block_t data_blkaddr; /* block address of the node block */
274 block_t seg0_blkaddr; /* block address of 0'th segment */
275 block_t main_blkaddr; /* start block address of main area */
276 block_t ssa_blkaddr; /* start block address of SSA area */
391 block_t user_block_count; /* # of user blocks */
392 block_t total_valid_block_count; /* # of valid blocks */
393 block_t alloc_valid_block_count; /* # of allocated blocks */
[all …]
Dgc.h38 static inline block_t free_user_blocks(struct f2fs_sb_info *sbi) in free_user_blocks()
47 static inline block_t limit_invalid_user_blocks(struct f2fs_sb_info *sbi) in limit_invalid_user_blocks()
52 static inline block_t limit_free_user_blocks(struct f2fs_sb_info *sbi) in limit_free_user_blocks()
54 block_t reclaimable_user_blocks = sbi->user_block_count - in limit_free_user_blocks()
83 block_t invalid_user_blocks = sbi->user_block_count - in has_enough_invalid_blocks()
Dsegment.h175 block_t sit_base_addr; /* start block address of SIT area */
176 block_t sit_blocks; /* # of blocks used by SIT area */
177 block_t written_valid_blocks; /* # of valid blocks in main area */
383 static inline block_t written_block_count(struct f2fs_sb_info *sbi) in written_block_count()
386 block_t vblocks; in written_block_count()
524 static inline void verify_block_addr(struct f2fs_sb_info *sbi, block_t blk_addr) in verify_block_addr()
527 block_t total_blks = sm_info->segment_count << sbi->log_blocks_per_seg; in verify_block_addr()
528 block_t start_addr = sm_info->seg0_blkaddr; in verify_block_addr()
529 block_t end_addr = start_addr + total_blks - 1; in verify_block_addr()
563 block_t blk_addr = sit_i->sit_base_addr + offset; in current_sit_addr()
[all …]
Dsegment.c189 static void update_sit_entry(struct f2fs_sb_info *sbi, block_t blkaddr, int del) in update_sit_entry()
229 block_t old_blkaddr, block_t new_blkaddr) in refresh_sit_entry()
236 void invalidate_blocks(struct f2fs_sb_info *sbi, block_t addr) in invalidate_blocks()
305 struct f2fs_summary_block *sum_blk, block_t blk_addr) in write_sum_page()
512 struct curseg_info *seg, block_t start) in __next_free_blkoff()
515 block_t ofs; in __next_free_blkoff()
723 block_t blk_addr, enum page_type type) in submit_write_page()
826 block_t old_blkaddr, block_t *new_blkaddr, in do_write_page()
882 unsigned int nid, block_t old_blkaddr, block_t *new_blkaddr) in write_node_page()
890 struct dnode_of_data *dn, block_t old_blkaddr, in write_data_page()
[all …]
Drecovery.c99 block_t blkaddr; in find_fsync_dnodes()
190 block_t blkaddr) in check_index_in_prev_nodes()
201 block_t bidx; in check_index_in_prev_nodes()
242 struct page *page, block_t blkaddr) in do_recover_data()
273 block_t src, dest; in do_recover_data()
320 block_t blkaddr; in recover_data()
Ddata.c33 static void __set_data_blkaddr(struct dnode_of_data *dn, block_t new_addr) in __set_data_blkaddr()
73 block_t start_blkaddr; in check_extent_cache()
107 void update_extent_cache(block_t blk_addr, struct dnode_of_data *dn) in update_extent_cache()
111 block_t start_blkaddr, end_blkaddr; in update_extent_cache()
361 block_t blk_addr, int type) in f2fs_readpage()
472 block_t old_blk_addr, new_blk_addr; in do_write_data_page()
Dgc.c450 block_t start_bidx_of_node(unsigned int node_ofs) in start_bidx_of_node()
471 struct node_info *dni, block_t blkaddr, unsigned int *nofs) in check_dnode()
476 block_t source_blkaddr; in check_dnode()
541 block_t start_addr; in gc_data_segment()
555 block_t start_bidx; in gc_data_segment()
Dnode.h41 block_t blk_addr; /* block address of the node */
176 static inline void fill_node_footer_blkaddr(struct page *page, block_t blkaddr) in fill_node_footer_blkaddr()
215 static inline block_t next_blkaddr_of_node(struct page *node_page) in next_blkaddr_of_node()
Dcheckpoint.c269 block_t start_blk, orphan_blkaddr, i, j; in recover_orphan_inodes()
295 static void write_orphan_inodes(struct f2fs_sb_info *sbi, block_t start_blk) in write_orphan_inodes()
354 block_t cp_addr, unsigned long long *version) in validate_checkpoint()
595 block_t start_blk; in do_checkpoint()
Dnode.c192 block_t new_blkaddr) in set_node_addr()
1129 block_t new_addr; in f2fs_write_node_page()
1314 block_t blk_addr; in scan_nat_page()
1368 block_t addr = le32_to_cpu(nat_in_journal(sum, i).block_addr); in build_free_nids()
1458 block_t new_blkaddr) in recover_node_page()
1509 block_t addr; in restore_node_summary()
1615 block_t new_blkaddr; in flush_nat_entries()
Dfile.c36 block_t old_blk_addr; in f2fs_vm_page_mkwrite()
182 block_t blkaddr = le32_to_cpu(*addr); in truncate_data_blocks_range()
Dsuper.c190 block_t total_count, user_block_count, start_count, ovp_count; in f2fs_statfs()
/fs/minix/
Ditree_common.c4 block_t *p;
5 block_t key;
11 static inline void add_chain(Indirect *p, struct buffer_head *bh, block_t *v) in add_chain()
24 static inline block_t *block_end(struct buffer_head *bh) in block_end()
26 return (block_t *)((char*)bh->b_data + bh->b_size); in block_end()
51 add_chain(++p, bh, (block_t *)bh->b_data + *++offsets); in get_branch()
90 branch[n].p = (block_t*) bh->b_data + offsets[n]; in alloc_branch()
208 static inline int all_zeroes(block_t *p, block_t *q) in all_zeroes()
220 block_t *top) in find_shared()
237 for (p=partial;p>chain && all_zeroes((block_t*)p->bh->b_data,p->p);p--) in find_shared()
[all …]
Ditree_v1.c7 typedef u16 block_t; /* 16 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.i1_data; in i_data()
Ditree_v2.c6 typedef u32 block_t; /* 32 bit, host order */ typedef
8 static inline unsigned long block_to_cpu(block_t n) in block_to_cpu()
13 static inline block_t cpu_to_block(unsigned long n) in cpu_to_block()
18 static inline block_t *i_data(struct inode *inode) in i_data()
20 return (block_t *)minix_i(inode)->u.i2_data; in i_data()