Home
last modified time | relevance | path

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

/fs/f2fs/
Dsegment.h92 #define GET_SEGOFF_FROM_SEG0(sbi, blk_addr) ((blk_addr) - SEG0_BLKADDR(sbi)) argument
93 #define GET_SEGNO_FROM_SEG0(sbi, blk_addr) \ argument
94 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) >> (sbi)->log_blocks_per_seg)
95 #define GET_BLKOFF_FROM_SEG0(sbi, blk_addr) \ argument
96 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) & ((sbi)->blocks_per_seg - 1))
98 #define GET_SEGNO(sbi, blk_addr) \ argument
99 ((!__is_valid_data_blkaddr(blk_addr)) ? \
101 GET_SEGNO_FROM_SEG0(sbi, blk_addr)))
136 #define SECTOR_FROM_BLOCK(blk_addr) \ argument
137 (((sector_t)blk_addr) << F2FS_LOG_SECTORS_PER_BLOCK)
[all …]
Dnode.h62 block_t blk_addr; /* block address of the node */ member
74 #define nat_get_blkaddr(nat) ((nat)->ni.blk_addr)
75 #define nat_set_blkaddr(nat, b) ((nat)->ni.blk_addr = (b))
88 dst->blk_addr = src->blk_addr; in copy_node_info()
121 ni->blk_addr = le32_to_cpu(raw_ne->block_addr); in node_info_from_raw_nat()
129 raw_ne->block_addr = cpu_to_le32(ni->blk_addr); in raw_nat_from_node_info()
Dnode.c463 f2fs_bug_on(sbi, ni->blk_addr == NEW_ADDR); in set_node_addr()
471 f2fs_bug_on(sbi, ni->blk_addr != NULL_ADDR); in set_node_addr()
478 f2fs_bug_on(sbi, nat_get_blkaddr(e) != ni->blk_addr); in set_node_addr()
563 ni->blk_addr = nat_get_blkaddr(e); in f2fs_get_node_info()
896 f2fs_invalidate_blocks(sbi, ni.blk_addr); in truncate_node()
916 trace_f2fs_truncate_node(dn->inode, dn->nid, ni.blk_addr); in truncate_node()
1297 if (unlikely(new_ni.blk_addr != NULL_ADDR)) { in f2fs_new_node_page()
1305 new_ni.blk_addr = NULL_ADDR; in f2fs_new_node_page()
1363 if (unlikely(ni.blk_addr == NULL_ADDR || ni.blk_addr == NEW_ADDR)) { in read_node_page()
1368 fio.new_blkaddr = fio.old_blkaddr = ni.blk_addr; in read_node_page()
[all …]
Ddata.c376 block_t blk_addr, struct bio *bio) in f2fs_target_device() argument
383 if (FDEV(i).start_blk <= blk_addr && in f2fs_target_device()
384 FDEV(i).end_blk >= blk_addr) { in f2fs_target_device()
385 blk_addr -= FDEV(i).start_blk; in f2fs_target_device()
393 bio->bi_iter.bi_sector = SECTOR_FROM_BLOCK(blk_addr); in f2fs_target_device()
1474 block_t blk_addr = map->m_pblk; in f2fs_map_blocks() local
1485 blk_addr, map->m_len); in f2fs_map_blocks()
1689 block_t blk_addr = map->m_pblk; in f2fs_map_blocks() local
1698 blk_addr, map->m_len); in f2fs_map_blocks()
1700 f2fs_bug_on(sbi, blk_addr + map->m_len > in f2fs_map_blocks()
[all …]
Dcheckpoint.c696 if (ni.blk_addr != NULL_ADDR) { in recover_orphan_inode()
818 orphan_blk->blk_addr = cpu_to_le16(index); in write_orphan_inodes()
830 orphan_blk->blk_addr = cpu_to_le16(index); in write_orphan_inodes()
1403 void *src, block_t blk_addr) in commit_checkpoint() argument
1414 struct page *page = f2fs_grab_meta_page(sbi, blk_addr); in commit_checkpoint()
Dsegment.c2384 void *src, block_t blk_addr) in f2fs_update_meta_page() argument
2386 struct page *page = f2fs_grab_meta_page(sbi, blk_addr); in f2fs_update_meta_page()
2394 struct f2fs_summary_block *sum_blk, block_t blk_addr) in write_sum_page() argument
2396 f2fs_update_meta_page(sbi, (void *)sum_blk, blk_addr); in write_sum_page()
2400 int type, block_t blk_addr) in write_current_sum_page() argument
2403 struct page *page = f2fs_grab_meta_page(sbi, blk_addr); in write_current_sum_page()
3827 block_t blk_addr = 0; in read_normal_summaries() local
3836 blk_addr = sum_blk_addr(sbi, NR_CURSEG_PERSIST_TYPE, type); in read_normal_summaries()
3838 blk_addr = sum_blk_addr(sbi, NR_CURSEG_DATA_TYPE, type); in read_normal_summaries()
3845 blk_addr = sum_blk_addr(sbi, NR_CURSEG_NODE_TYPE, in read_normal_summaries()
[all …]
Dinline.c822 byteaddr = (__u64)ni.blk_addr << inode->i_sb->s_blocksize_bits; in f2fs_inline_data_fiemap()
Dinode.c918 if (ni.blk_addr != NULL_ADDR) { in f2fs_handle_failed_inode()
Df2fs.h3660 block_t blk_addr);
3783 block_t blk_addr, struct bio *bio);
Dgc.c1017 if (ni.blk_addr != start_addr + off) { in gc_node_segment()