/linux-6.12.1/fs/f2fs/ |
D | recovery.c | 499 unsigned int offset, ofs_in_node, max_addrs; in check_index_in_prev_nodes() local 526 ofs_in_node = le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes() 529 if (ofs_in_node >= max_addrs) { in check_index_in_prev_nodes() 531 ofs_in_node, dn->inode->i_ino, nid, max_addrs); in check_index_in_prev_nodes() 541 tdn.ofs_in_node = ofs_in_node; in check_index_in_prev_nodes() 544 tdn.ofs_in_node = ofs_in_node; in check_index_in_prev_nodes() 575 le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes() 680 for (; start < end; start++, dn.ofs_in_node++) { in do_recover_data() 684 dest = data_blkaddr(dn.inode, page, dn.ofs_in_node); in do_recover_data() 747 dest, inode->i_ino, dn.ofs_in_node); in do_recover_data()
|
D | file.c | 407 ALIGN_DOWN(dn->ofs_in_node, F2FS_I(inode)->i_cluster_size)); in __found_offset() 479 for (; dn.ofs_in_node < end_offset; in f2fs_seek_block() 480 dn.ofs_in_node++, pgofs++, in f2fs_seek_block() 618 int nr_free = 0, ofs = dn->ofs_in_node, len = count; in f2fs_truncate_data_blocks_range() 628 for (; count > 0; count--, addr++, dn->ofs_in_node++, cluster_index++) { in f2fs_truncate_data_blocks_range() 676 dn->ofs_in_node = ofs; in f2fs_truncate_data_blocks_range() 680 dn->ofs_in_node, nr_free); in f2fs_truncate_data_blocks_range() 759 count -= dn.ofs_in_node; in f2fs_do_truncate_blocks() 762 if (dn.ofs_in_node || IS_INODE(dn.node_page)) { in f2fs_do_truncate_blocks() 1159 count = min(end_offset - dn.ofs_in_node, pg_end - pg_start); in f2fs_truncate_hole() [all …]
|
D | data.c | 1122 addr[dn->ofs_in_node] = cpu_to_le32(dn->data_blkaddr); in __set_data_blkaddr() 1161 dn->ofs_in_node, count); in f2fs_reserve_new_blocks() 1165 for (; count > 0; dn->ofs_in_node++) { in f2fs_reserve_new_blocks() 1182 unsigned int ofs_in_node = dn->ofs_in_node; in f2fs_reserve_new_block() local 1186 dn->ofs_in_node = ofs_in_node; in f2fs_reserve_new_block() 1415 set_summary(&sum, dn->nid, dn->ofs_in_node, ni.version); in __allocate_data_block() 1548 unsigned int ofs_in_node, last_ofs_in_node; in f2fs_map_blocks() local 1589 last_ofs_in_node = ofs_in_node = dn.ofs_in_node; in f2fs_map_blocks() 1614 last_ofs_in_node = dn.ofs_in_node; in f2fs_map_blocks() 1695 dn.ofs_in_node++; in f2fs_map_blocks() [all …]
|
D | gc.c | 1143 unsigned int ofs_in_node, max_addrs, base; in is_alive() local 1147 ofs_in_node = le16_to_cpu(sum->ofs_in_node); in is_alive() 1177 if (base + ofs_in_node >= max_addrs) { in is_alive() 1179 base, ofs_in_node, max_addrs, dni->ino, dni->nid); in is_alive() 1185 source_blkaddr = data_blkaddr(NULL, node_page, ofs_in_node); in is_alive() 1397 set_summary(&sum, dn.nid, dn.ofs_in_node, ni.version); in move_data_block() 1552 unsigned int ofs_in_node, nofs; in gc_data_segment() local 1589 ofs_in_node = le16_to_cpu(entry->ofs_in_node); in gc_data_segment() 1610 inode->i_ino, dni.nid, ofs_in_node); in gc_data_segment() 1628 ofs_in_node; in gc_data_segment() [all …]
|
D | compress.c | 904 if (dn->ofs_in_node % cluster_size) { in f2fs_sanity_check_cluster() 911 dn->ofs_in_node + i); in f2fs_sanity_check_cluster() 936 dn->inode->i_ino, dn->nid, dn->ofs_in_node, reason); in f2fs_sanity_check_cluster() 952 dn->ofs_in_node + i); in __f2fs_get_cluster_blocks() 1315 dn.ofs_in_node + i) == NULL_ADDR) in f2fs_write_compressed_pages() 1346 dn.ofs_in_node + i + 1); in f2fs_write_compressed_pages() 1365 for (i = 0; i < cc->cluster_size; i++, dn.ofs_in_node++) { in f2fs_write_compressed_pages() 1874 unsigned int ofs_in_node) in f2fs_cluster_blocks_are_contiguous() argument 1877 ofs_in_node) == COMPRESS_ADDR; in f2fs_cluster_blocks_are_contiguous() 1880 ofs_in_node + i); in f2fs_cluster_blocks_are_contiguous() [all …]
|
D | node.c | 849 dn->ofs_in_node = offset[level]; in f2fs_get_dnode_of_data() 856 unsigned int ofs_in_node = dn->ofs_in_node; in f2fs_get_dnode_of_data() local 864 ofs_in_node = round_down(ofs_in_node, cluster_size); in f2fs_get_dnode_of_data() 867 c_len = f2fs_cluster_blocks_are_contiguous(dn, ofs_in_node); in f2fs_get_dnode_of_data() 871 blkaddr = data_blkaddr(dn->inode, dn->node_page, ofs_in_node); in f2fs_get_dnode_of_data() 874 ofs_in_node + 1); in f2fs_get_dnode_of_data() 892 dn->ofs_in_node = offset[level]; in f2fs_get_dnode_of_data() 961 dn->ofs_in_node = 0; in truncate_dnode() 2883 sum_entry->ofs_in_node = 0; in f2fs_restore_node_summary()
|
D | segment.h | 866 unsigned int ofs_in_node, unsigned char version) in set_summary() argument 869 sum->ofs_in_node = cpu_to_le16(ofs_in_node); in set_summary()
|
D | f2fs.h | 983 unsigned int ofs_in_node; /* data offset in the node page */ member 2972 return data_blkaddr(dn->inode, dn->node_page, dn->ofs_in_node); in f2fs_data_blkaddr() 4355 unsigned int ofs_in_node); 4413 struct dnode_of_data *dn, unsigned int ofs_in_node) { return 0; } in f2fs_cluster_blocks_are_contiguous() argument
|
D | extent_cache.c | 868 dn->ofs_in_node; in __update_extent_cache()
|
D | segment.c | 334 for (i = 0; i < blen; i++, dn.ofs_in_node++, index++) { in __f2fs_commit_atomic_write() 3870 set_summary(&sum, dn->nid, dn->ofs_in_node, fio->version); in f2fs_outplace_write_data() 4040 set_summary(&sum, dn->nid, dn->ofs_in_node, version); in f2fs_replace_block() 4210 ns->ofs_in_node = 0; in read_normal_summaries()
|
/linux-6.12.1/include/trace/events/ |
D | f2fs.h | 1096 TP_PROTO(struct inode *inode, nid_t nid, unsigned int ofs_in_node, 1099 TP_ARGS(inode, nid, ofs_in_node, count), 1104 __field(unsigned int, ofs_in_node) 1111 __entry->ofs_in_node = ofs_in_node; 1118 __entry->ofs_in_node,
|
/linux-6.12.1/include/linux/ |
D | f2fs_fs.h | 453 __le16 ofs_in_node; /* block index in parent node */ member
|