Home
last modified time | relevance | path

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

/fs/f2fs/
Dsegment.h81 #define GET_SEGOFF_FROM_SEG0(sbi, blk_addr) ((blk_addr) - SEG0_BLKADDR(sbi)) argument
82 #define GET_SEGNO_FROM_SEG0(sbi, blk_addr) \ argument
83 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) >> (sbi)->log_blocks_per_seg)
84 #define GET_BLKOFF_FROM_SEG0(sbi, blk_addr) \ argument
85 (GET_SEGOFF_FROM_SEG0(sbi, blk_addr) & ((sbi)->blocks_per_seg - 1))
87 #define GET_SEGNO(sbi, blk_addr) \ argument
88 ((((blk_addr) == NULL_ADDR) || ((blk_addr) == NEW_ADDR)) ? \
90 GET_SEGNO_FROM_SEG0(sbi, blk_addr)))
119 #define SECTOR_FROM_BLOCK(blk_addr) \ argument
120 (((sector_t)blk_addr) << F2FS_LOG_SECTORS_PER_BLOCK)
[all …]
Dnode.h56 block_t blk_addr; /* block address of the node */ member
68 #define nat_get_blkaddr(nat) ((nat)->ni.blk_addr)
69 #define nat_set_blkaddr(nat, b) ((nat)->ni.blk_addr = (b))
82 dst->blk_addr = src->blk_addr; in copy_node_info()
115 ni->blk_addr = le32_to_cpu(raw_ne->block_addr); in node_info_from_raw_nat()
123 raw_ne->block_addr = cpu_to_le32(ni->blk_addr); in raw_nat_from_node_info()
Dnode.c347 f2fs_bug_on(sbi, ni->blk_addr == NEW_ADDR); in set_node_addr()
355 f2fs_bug_on(sbi, ni->blk_addr != NULL_ADDR); in set_node_addr()
362 f2fs_bug_on(sbi, nat_get_blkaddr(e) != ni->blk_addr); in set_node_addr()
436 ni->blk_addr = nat_get_blkaddr(e); in get_node_info()
726 invalidate_blocks(sbi, ni.blk_addr); in truncate_node()
745 trace_f2fs_truncate_node(dn->inode, dn->nid, ni.blk_addr); in truncate_node()
1089 f2fs_bug_on(sbi, new_ni.blk_addr != NULL_ADDR); in new_node_page()
1093 new_ni.blk_addr = NULL_ADDR; in new_node_page()
1142 if (unlikely(ni.blk_addr == NULL_ADDR)) { in read_node_page()
1147 fio.new_blkaddr = fio.old_blkaddr = ni.blk_addr; in read_node_page()
[all …]
Ddata.c192 block_t blk_addr, struct bio *bio) in f2fs_target_device() argument
198 if (FDEV(i).start_blk <= blk_addr && in f2fs_target_device()
199 FDEV(i).end_blk >= blk_addr) { in f2fs_target_device()
200 blk_addr -= FDEV(i).start_blk; in f2fs_target_device()
207 bio->bi_iter.bi_sector = SECTOR_FROM_BLOCK(blk_addr); in f2fs_target_device()
223 block_t blk_addr, struct bio *bio) in __same_bdev() argument
225 return f2fs_target_device(sbi, blk_addr, NULL) == bio->bi_bdev; in __same_bdev()
231 static struct bio *__bio_alloc(struct f2fs_sb_info *sbi, block_t blk_addr, in __bio_alloc() argument
240 f2fs_target_device(sbi, blk_addr, bio); in __bio_alloc()
1285 phys = (__u64)blk_to_logical(inode, ni.blk_addr); in f2fs_xattr_fiemap()
[all …]
Dcheckpoint.c605 if (ni.blk_addr != NULL_ADDR) { in recover_orphan_inode()
715 orphan_blk->blk_addr = cpu_to_le16(index); in write_orphan_inodes()
727 orphan_blk->blk_addr = cpu_to_le16(index); in write_orphan_inodes()
1177 void *src, block_t blk_addr) in commit_checkpoint() argument
1188 struct page *page = grab_meta_page(sbi, blk_addr); in commit_checkpoint()
Dsegment.c1999 void update_meta_page(struct f2fs_sb_info *sbi, void *src, block_t blk_addr) in update_meta_page() argument
2001 struct page *page = grab_meta_page(sbi, blk_addr); in update_meta_page()
2009 struct f2fs_summary_block *sum_blk, block_t blk_addr) in write_sum_page() argument
2011 update_meta_page(sbi, (void *)sum_blk, blk_addr); in write_sum_page()
2015 int type, block_t blk_addr) in write_current_sum_page() argument
2018 struct page *page = grab_meta_page(sbi, blk_addr); in write_current_sum_page()
3013 block_t blk_addr = 0; in read_normal_summaries() local
3021 blk_addr = sum_blk_addr(sbi, NR_CURSEG_TYPE, type); in read_normal_summaries()
3023 blk_addr = sum_blk_addr(sbi, NR_CURSEG_DATA_TYPE, type); in read_normal_summaries()
3030 blk_addr = sum_blk_addr(sbi, NR_CURSEG_NODE_TYPE, in read_normal_summaries()
[all …]
Dinline.c694 byteaddr = (__u64)ni.blk_addr << inode->i_sb->s_blocksize_bits; in f2fs_inline_data_fiemap()
Dinode.c628 if (ni.blk_addr != NULL_ADDR) { in handle_failed_inode()
Dgc.c528 if (ni.blk_addr != start_addr + off) { in gc_node_segment()
Df2fs.h2817 void update_meta_page(struct f2fs_sb_info *sbi, void *src, block_t blk_addr);
2899 block_t blk_addr, struct bio *bio);