Home
last modified time | relevance | path

Searched refs:ofs_in_node (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/fs/f2fs/
Drecovery.c477 unsigned int offset, ofs_in_node, max_addrs; in check_index_in_prev_nodes() local
504 ofs_in_node = le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes()
507 if (ofs_in_node >= max_addrs) { in check_index_in_prev_nodes()
509 ofs_in_node, dn->inode->i_ino, nid, max_addrs); in check_index_in_prev_nodes()
519 tdn.ofs_in_node = ofs_in_node; in check_index_in_prev_nodes()
522 tdn.ofs_in_node = ofs_in_node; in check_index_in_prev_nodes()
553 le16_to_cpu(sum.ofs_in_node); in check_index_in_prev_nodes()
645 for (; start < end; start++, dn.ofs_in_node++) { in do_recover_data()
649 dest = data_blkaddr(dn.inode, page, dn.ofs_in_node); in do_recover_data()
717 dest, inode->i_ino, dn.ofs_in_node); in do_recover_data()
Dfile.c462 for (; dn.ofs_in_node < end_offset; in f2fs_seek_block()
463 dn.ofs_in_node++, pgofs++, in f2fs_seek_block()
560 int nr_free = 0, ofs = dn->ofs_in_node, len = count; in f2fs_truncate_data_blocks_range()
575 for (; count > 0; count--, addr++, dn->ofs_in_node++, cluster_index++) { in f2fs_truncate_data_blocks_range()
601 if (dn->ofs_in_node == 0 && IS_INODE(dn->node_page)) in f2fs_truncate_data_blocks_range()
624 dn->ofs_in_node = ofs; in f2fs_truncate_data_blocks_range()
628 dn->ofs_in_node, nr_free); in f2fs_truncate_data_blocks_range()
712 count -= dn.ofs_in_node; in f2fs_do_truncate_blocks()
715 if (dn.ofs_in_node || IS_INODE(dn.node_page)) { in f2fs_do_truncate_blocks()
1102 count = min(end_offset - dn.ofs_in_node, pg_end - pg_start); in f2fs_truncate_hole()
[all …]
Ddata.c1110 addr_array[base + dn->ofs_in_node] = cpu_to_le32(dn->data_blkaddr); in __set_data_blkaddr()
1149 dn->ofs_in_node, count); in f2fs_reserve_new_blocks()
1153 for (; count > 0; dn->ofs_in_node++) { in f2fs_reserve_new_blocks()
1171 unsigned int ofs_in_node = dn->ofs_in_node; in f2fs_reserve_new_block() local
1175 dn->ofs_in_node = ofs_in_node; in f2fs_reserve_new_block()
1420 set_summary(&sum, dn->nid, dn->ofs_in_node, ni.version); in __allocate_data_block()
1462 unsigned int ofs_in_node, last_ofs_in_node; in f2fs_map_blocks() local
1554 last_ofs_in_node = ofs_in_node = dn.ofs_in_node; in f2fs_map_blocks()
1586 last_ofs_in_node = dn.ofs_in_node; in f2fs_map_blocks()
1664 dn.ofs_in_node++; in f2fs_map_blocks()
[all …]
Dgc.c1081 unsigned int ofs_in_node, max_addrs; in is_alive() local
1085 ofs_in_node = le16_to_cpu(sum->ofs_in_node); in is_alive()
1109 if (ofs_in_node >= max_addrs) { in is_alive()
1111 ofs_in_node, dni->ino, dni->nid, max_addrs); in is_alive()
1117 source_blkaddr = data_blkaddr(NULL, node_page, ofs_in_node); in is_alive()
1331 set_summary(&sum, dn.nid, dn.ofs_in_node, ni.version); in move_data_block()
1491 unsigned int ofs_in_node, nofs; in gc_data_segment() local
1528 ofs_in_node = le16_to_cpu(entry->ofs_in_node); in gc_data_segment()
1552 ofs_in_node; in gc_data_segment()
1604 + ofs_in_node; in gc_data_segment()
Dcompress.c902 if (dn->ofs_in_node % cluster_size) { in f2fs_sanity_check_cluster()
909 dn->ofs_in_node + i); in f2fs_sanity_check_cluster()
930 dn->inode->i_ino, dn->nid, dn->ofs_in_node, reason); in f2fs_sanity_check_cluster()
966 dn.node_page, dn.ofs_in_node + i); in __f2fs_cluster_blocks()
1259 dn.ofs_in_node + i) == NULL_ADDR) in f2fs_write_compressed_pages()
1290 dn.ofs_in_node + i + 1); in f2fs_write_compressed_pages()
1309 for (i = 0; i < cc->cluster_size; i++, dn.ofs_in_node++) { in f2fs_write_compressed_pages()
1803 dn->ofs_in_node + i); in f2fs_cluster_blocks_are_contiguous()
1807 dn->ofs_in_node + i); in f2fs_cluster_blocks_are_contiguous()
Dsegment.h842 unsigned int ofs_in_node, unsigned char version) in set_summary() argument
845 sum->ofs_in_node = cpu_to_le16(ofs_in_node); in set_summary()
Dnode.c845 dn->ofs_in_node = offset[level]; in f2fs_get_dnode_of_data()
860 dn->ofs_in_node + 1); in f2fs_get_dnode_of_data()
880 dn->ofs_in_node = offset[level]; in f2fs_get_dnode_of_data()
939 dn->ofs_in_node = 0; in truncate_dnode()
2843 sum_entry->ofs_in_node = 0; in f2fs_restore_node_summary()
Dextent_cache.c877 dn->ofs_in_node; in f2fs_update_extent_cache()
Dsegment.c302 for (i = 0; i < blen; i++, dn.ofs_in_node++, index++) { in __f2fs_commit_atomic_write()
3412 set_summary(&sum, dn->nid, dn->ofs_in_node, fio->version); in f2fs_outplace_write_data()
3582 set_summary(&sum, dn->nid, dn->ofs_in_node, version); in f2fs_replace_block()
3751 ns->ofs_in_node = 0; in read_normal_summaries()
Df2fs.h976 unsigned int ofs_in_node; /* data offset in the node page */ member
2896 return data_blkaddr(dn->inode, dn->node_page, dn->ofs_in_node); in f2fs_data_blkaddr()
/linux-6.1.9/include/trace/events/
Df2fs.h1005 TP_PROTO(struct inode *inode, nid_t nid, unsigned int ofs_in_node,
1008 TP_ARGS(inode, nid, ofs_in_node, count),
1013 __field(unsigned int, ofs_in_node)
1020 __entry->ofs_in_node = ofs_in_node;
1027 __entry->ofs_in_node,
/linux-6.1.9/include/linux/
Df2fs_fs.h444 __le16 ofs_in_node; /* block index in parent node */ member