Home
last modified time | relevance | path

Searched refs:data_blkaddr (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/fs/f2fs/
H A Ddata.c1121 dn->data_blkaddr = blkaddr; in __set_data_blkaddr()
1122 addr[dn->ofs_in_node] = cpu_to_le32(dn->data_blkaddr); in __set_data_blkaddr()
1199 if (dn->data_blkaddr == NULL_ADDR) in f2fs_reserve_block()
1220 &dn.data_blkaddr)) { in f2fs_get_read_data_page()
1221 if (!f2fs_is_valid_blkaddr(F2FS_I_SB(inode), dn.data_blkaddr, in f2fs_get_read_data_page()
1240 if (unlikely(dn.data_blkaddr == NULL_ADDR)) { in f2fs_get_read_data_page()
1246 if (dn.data_blkaddr != NEW_ADDR && in f2fs_get_read_data_page()
1248 dn.data_blkaddr, in f2fs_get_read_data_page()
1268 if (dn.data_blkaddr == NEW_ADDR) { in f2fs_get_read_data_page()
1276 err = f2fs_submit_page_read(inode, page, dn.data_blkaddr, in f2fs_get_read_data_page()
[all …]
H A Dinline.c176 if (unlikely(dn->data_blkaddr != NEW_ADDR)) { in f2fs_convert_inline_page()
180 __func__, dn->inode->i_ino, dn->data_blkaddr); in f2fs_convert_inline_page()
195 fio.old_blkaddr = dn->data_blkaddr; in f2fs_convert_inline_page()
430 if (unlikely(dn.data_blkaddr != NEW_ADDR)) { in f2fs_move_inline_dirents()
434 __func__, dir->i_ino, dn.data_blkaddr); in f2fs_move_inline_dirents()
H A Dgc.c1152 source_blkaddr = data_blkaddr(NULL, node_page, ofs_in_node); in is_alive()
1197 &dn.data_blkaddr)) { in ra_data_block()
1198 if (unlikely(!f2fs_is_valid_blkaddr(sbi, dn.data_blkaddr, in ra_data_block()
1213 if (!__is_valid_data_blkaddr(dn.data_blkaddr)) { in ra_data_block()
1217 if (unlikely(!f2fs_is_valid_blkaddr(sbi, dn.data_blkaddr, in ra_data_block()
1226 fio.new_blkaddr = fio.old_blkaddr = dn.data_blkaddr; in ra_data_block()
1234 f2fs_wait_on_block_writeback(inode, dn.data_blkaddr); in ra_data_block()
1237 dn.data_blkaddr, in ra_data_block()
1310 if (unlikely(dn.data_blkaddr == NULL_ADDR)) { in move_data_block()
1322 f2fs_wait_on_block_writeback(inode, dn.data_blkaddr); in move_data_block()
[all …]
H A Dcompress.c898 if (dn->data_blkaddr != COMPRESS_ADDR) in f2fs_sanity_check_cluster()
908 block_t blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_sanity_check_cluster()
949 block_t blkaddr = data_blkaddr(dn->inode, dn->node_page, in __f2fs_get_cluster_blocks()
980 if (dn.data_blkaddr == COMPRESS_ADDR) { in __f2fs_cluster_blocks()
1288 if (data_blkaddr(dn.inode, dn.node_page, in f2fs_write_compressed_pages()
1319 fio.old_blkaddr = data_blkaddr(dn.inode, dn.node_page, in f2fs_write_compressed_pages()
1837 bool compressed = data_blkaddr(dn->inode, dn->node_page, in f2fs_cluster_blocks_are_contiguous()
1840 block_t first_blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_cluster_blocks_are_contiguous()
1844 block_t blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_cluster_blocks_are_contiguous()
H A Dfile.c135 f2fs_wait_on_block_writeback(inode, dn.data_blkaddr); in f2fs_vm_page_mkwrite()
1326 dn.data_blkaddr = f2fs_data_blkaddr(&dn); in __clone_blkaddrs()
1334 f2fs_replace_block(sbi, &dn, dn.data_blkaddr, in __clone_blkaddrs()
1515 dn->data_blkaddr = f2fs_data_blkaddr(dn); in f2fs_do_zero_range()
1520 if (dn->data_blkaddr == NULL_ADDR) { in f2fs_do_zero_range()
1525 if (dn->data_blkaddr == NEW_ADDR) in f2fs_do_zero_range()
1528 if (!f2fs_is_valid_blkaddr(sbi, dn->data_blkaddr, in f2fs_do_zero_range()
1535 f2fs_invalidate_blocks(sbi, dn->data_blkaddr); in f2fs_do_zero_range()
3549 blkaddr = data_blkaddr(dn->inode, dn->node_page, in release_compress_blocks()
3717 blkaddr = data_blkaddr(dn->inode, dn->node_page, in reserve_compress_blocks()
[all …]
H A Dextent_cache.c900 if (dn->data_blkaddr == NEW_ADDR) in __update_extent_cache()
903 ei.blk = dn->data_blkaddr; in __update_extent_cache()
905 if (__get_new_block_age(dn->inode, &ei, dn->data_blkaddr)) in __update_extent_cache()
H A Drecovery.c595 if (tdn.data_blkaddr == blkaddr) in check_index_in_prev_nodes()
691 dest = data_blkaddr(dn.inode, page, dn.ofs_in_node); in do_recover_data()
H A Dnode.c851 dn->data_blkaddr = f2fs_data_blkaddr(dn); in f2fs_get_dnode_of_data()
871 blkaddr = data_blkaddr(dn->inode, dn->node_page, ofs_in_node); in f2fs_get_dnode_of_data()
873 blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_get_dnode_of_data()
996 trace_f2fs_truncate_nodes_enter(dn->inode, dn->nid, dn->data_blkaddr); in truncate_nodes()
H A Dsegment.c248 f2fs_invalidate_blocks(sbi, dn.data_blkaddr); in __replace_atomic_write_block()
251 f2fs_replace_block(sbi, &dn, dn.data_blkaddr, in __replace_atomic_write_block()
263 *old_addr = dn.data_blkaddr; in __replace_atomic_write_block()
267 f2fs_replace_block(sbi, &dn, dn.data_blkaddr, new_addr, in __replace_atomic_write_block()
3657 f2fs_bug_on(sbi, dn->data_blkaddr == NULL_ADDR); in f2fs_outplace_write_data()
H A Df2fs.h977 block_t data_blkaddr; /* block address of the node block */ member
2901 static inline block_t data_blkaddr(struct inode *inode, in data_blkaddr() function
2925 return data_blkaddr(dn->inode, dn->node_page, dn->ofs_in_node); in f2fs_data_blkaddr()