Home
last modified time | relevance | path

Searched refs:blkaddr (Results 1 – 17 of 17) sorted by relevance

/fs/f2fs/
Drecovery.c350 unsigned int ra_blocks, unsigned int blkaddr, in adjust_por_ra_blocks() argument
353 if (blkaddr + 1 == next_blkaddr) in adjust_por_ra_blocks()
367 block_t blkaddr; in find_fsync_dnodes() local
376 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in find_fsync_dnodes()
381 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) in find_fsync_dnodes()
384 page = f2fs_get_tmp_page(sbi, blkaddr); in find_fsync_dnodes()
428 entry->blkaddr = blkaddr; in find_fsync_dnodes()
431 entry->last_dentry = blkaddr; in find_fsync_dnodes()
435 blkaddr == next_blkaddr_of_node(page)) { in find_fsync_dnodes()
437 __func__, blkaddr, in find_fsync_dnodes()
[all …]
Dcompress.c801 block_t blkaddr, bool in_task) in f2fs_end_read_compressed_page() argument
811 else if (blkaddr && in_task) in f2fs_end_read_compressed_page()
813 dic->inode->i_ino, blkaddr); in f2fs_end_read_compressed_page()
899 block_t blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_sanity_check_cluster() local
903 if (blkaddr == COMPRESS_ADDR) { in f2fs_sanity_check_cluster()
908 if (!__is_valid_data_blkaddr(blkaddr)) { in f2fs_sanity_check_cluster()
955 block_t blkaddr; in __f2fs_cluster_blocks() local
957 blkaddr = data_blkaddr(dn.inode, in __f2fs_cluster_blocks()
960 if (__is_valid_data_blkaddr(blkaddr)) in __f2fs_cluster_blocks()
963 if (blkaddr != NULL_ADDR) in __f2fs_cluster_blocks()
[all …]
Dextent_cache.c532 pgoff_t fofs, block_t blkaddr, unsigned int len) in f2fs_update_extent_tree_range() argument
548 trace_f2fs_update_extent_tree_range(inode, fofs, blkaddr, len); in f2fs_update_extent_tree_range()
635 if (blkaddr) { in f2fs_update_extent_tree_range()
637 set_extent_info(&ei, fofs, blkaddr, len); in f2fs_update_extent_tree_range()
668 pgoff_t fofs, block_t blkaddr, unsigned int llen, in f2fs_update_extent_tree_range_compressed() argument
679 trace_f2fs_update_extent_tree_range(inode, fofs, blkaddr, llen); in f2fs_update_extent_tree_range_compressed()
696 set_extent_info(&ei, fofs, blkaddr, llen); in f2fs_update_extent_tree_range_compressed()
866 block_t blkaddr; in f2fs_update_extent_cache() local
872 blkaddr = NULL_ADDR; in f2fs_update_extent_cache()
874 blkaddr = dn->data_blkaddr; in f2fs_update_extent_cache()
[all …]
Ddata.c237 block_t blkaddr = ctx->fs_blkaddr; in f2fs_handle_step_decompress() local
245 blkaddr, in_task); in f2fs_handle_step_decompress()
249 blkaddr++; in f2fs_handle_step_decompress()
399 int f2fs_target_device_index(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_target_device_index() argument
407 if (FDEV(i).start_blk <= blkaddr && FDEV(i).end_blk >= blkaddr) in f2fs_target_device_index()
1015 static struct bio *f2fs_grab_read_bio(struct inode *inode, block_t blkaddr, in f2fs_grab_read_bio() argument
1031 f2fs_target_device(sbi, blkaddr, bio); in f2fs_grab_read_bio()
1054 ctx->fs_blkaddr = blkaddr; in f2fs_grab_read_bio()
1064 block_t blkaddr, int op_flags, bool for_write) in f2fs_submit_page_read() argument
1069 bio = f2fs_grab_read_bio(inode, blkaddr, 1, op_flags, in f2fs_submit_page_read()
[all …]
Dfile.c401 static bool __found_offset(struct address_space *mapping, block_t blkaddr, in __found_offset() argument
406 if (__is_valid_data_blkaddr(blkaddr)) in __found_offset()
408 if (blkaddr == NEW_ADDR && in __found_offset()
413 if (blkaddr == NULL_ADDR) in __found_offset()
470 block_t blkaddr; in f2fs_seek_block() local
472 blkaddr = f2fs_data_blkaddr(&dn); in f2fs_seek_block()
474 if (__is_valid_data_blkaddr(blkaddr) && in f2fs_seek_block()
476 blkaddr, DATA_GENERIC_ENHANCE)) { in f2fs_seek_block()
481 if (__found_offset(file->f_mapping, blkaddr, in f2fs_seek_block()
581 block_t blkaddr = le32_to_cpu(*addr); in f2fs_truncate_data_blocks_range() local
[all …]
Dcheckpoint.c140 static bool __is_bitmap_valid(struct f2fs_sb_info *sbi, block_t blkaddr, in __is_bitmap_valid() argument
150 segno = GET_SEGNO(sbi, blkaddr); in __is_bitmap_valid()
151 offset = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); in __is_bitmap_valid()
157 blkaddr, exist); in __is_bitmap_valid()
164 blkaddr, exist); in __is_bitmap_valid()
172 block_t blkaddr, int type) in f2fs_is_valid_blkaddr() argument
178 if (unlikely(blkaddr >= SIT_BLK_CNT(sbi))) in f2fs_is_valid_blkaddr()
182 if (unlikely(blkaddr >= MAIN_BLKADDR(sbi) || in f2fs_is_valid_blkaddr()
183 blkaddr < SM_I(sbi)->ssa_blkaddr)) in f2fs_is_valid_blkaddr()
187 if (unlikely(blkaddr >= SIT_I(sbi)->sit_base_addr || in f2fs_is_valid_blkaddr()
[all …]
Df2fs.h424 block_t blkaddr; /* block address locating the last fsync */ member
3403 block_t blkaddr, int type);
3405 block_t blkaddr, int type) in verify_blkaddr() argument
3407 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, type)) { in verify_blkaddr()
3409 blkaddr, type); in verify_blkaddr()
3414 static inline bool __is_valid_data_blkaddr(block_t blkaddr) in __is_valid_data_blkaddr() argument
3416 if (blkaddr == NEW_ADDR || blkaddr == NULL_ADDR || in __is_valid_data_blkaddr()
3417 blkaddr == COMPRESS_ADDR) in __is_valid_data_blkaddr()
3610 bool f2fs_is_checkpointed_data(struct f2fs_sb_info *sbi, block_t blkaddr);
3657 block_t blkaddr, unsigned int blkcnt);
[all …]
Dsegment.c1340 struct discard_cmd *dc, block_t blkaddr) in __punch_discard_cmd() argument
1353 if (blkaddr > di.lstart) { in __punch_discard_cmd()
1354 dc->len = blkaddr - dc->lstart; in __punch_discard_cmd()
1360 if (blkaddr < di.lstart + di.len - 1) { in __punch_discard_cmd()
1362 __insert_discard_tree(sbi, dc->bdev, blkaddr + 1, in __punch_discard_cmd()
1363 di.start + blkaddr + 1 - di.lstart, in __punch_discard_cmd()
1364 di.lstart + di.len - 1 - blkaddr, in __punch_discard_cmd()
1729 static void f2fs_wait_discard_bio(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_wait_discard_bio() argument
1737 NULL, blkaddr); in f2fs_wait_discard_bio()
1740 __punch_discard_cmd(sbi, dc, blkaddr); in f2fs_wait_discard_bio()
[all …]
Dnode.h299 static inline void fill_node_footer_blkaddr(struct page *page, block_t blkaddr) in fill_node_footer_blkaddr() argument
309 rn->footer.next_blkaddr = cpu_to_le32(blkaddr); in fill_node_footer_blkaddr()
Dnode.c557 block_t blkaddr; in f2fs_get_node_info() local
611 blkaddr = le32_to_cpu(ne.block_addr); in f2fs_get_node_info()
612 if (__is_valid_data_blkaddr(blkaddr) && in f2fs_get_node_info()
613 !f2fs_is_valid_blkaddr(sbi, blkaddr, DATA_GENERIC_ENHANCE)) in f2fs_get_node_info()
855 block_t blkaddr; in f2fs_get_dnode_of_data() local
860 blkaddr = f2fs_data_blkaddr(dn); in f2fs_get_dnode_of_data()
861 if (blkaddr == COMPRESS_ADDR) in f2fs_get_dnode_of_data()
862 blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_get_dnode_of_data()
866 index, blkaddr, in f2fs_get_dnode_of_data()
Dgc.c1067 struct node_info *dni, block_t blkaddr, unsigned int *nofs) in is_alive() argument
1116 if (source_blkaddr != blkaddr) { in is_alive()
1118 unsigned int segno = GET_SEGNO(sbi, blkaddr); in is_alive()
1119 unsigned long offset = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); in is_alive()
1124 blkaddr, source_blkaddr, segno); in is_alive()
/fs/erofs/
Dxattr.c14 erofs_blk_t blkaddr; member
94 it.blkaddr = erofs_blknr(iloc(sbi, vi->nid) + vi->inode_isize); in init_inode_xattrs()
97 it.page = erofs_get_meta_page(sb, it.blkaddr); in init_inode_xattrs()
127 it.page = erofs_get_meta_page(sb, ++it.blkaddr); in init_inode_xattrs()
177 it->blkaddr += erofs_blknr(it->ofs); in xattr_iter_fixup()
179 it->page = erofs_get_meta_page(it->sb, it->blkaddr); in xattr_iter_fixup()
207 it->blkaddr = erofs_blknr(iloc(sbi, vi->nid) + inline_xattr_ofs); in inline_xattr_iter_begin()
210 it->page = erofs_get_meta_page(inode->i_sb, it->blkaddr); in inline_xattr_iter_begin()
403 erofs_blk_t blkaddr = in shared_getxattr() local
408 if (!i || blkaddr != it->it.blkaddr) { in shared_getxattr()
[all …]
Ddata.c13 struct page *erofs_get_meta_page(struct super_block *sb, erofs_blk_t blkaddr) in erofs_get_meta_page() argument
18 page = read_cache_page_gfp(mapping, blkaddr, in erofs_get_meta_page()
123 __le32 *blkaddr = page_address(page) + erofs_blkoff(pos); in erofs_map_blocks() local
125 if (le32_to_cpu(*blkaddr) == EROFS_NULL_ADDR) { in erofs_map_blocks()
128 map->m_pa = blknr_to_addr(le32_to_cpu(*blkaddr)); in erofs_map_blocks()
135 switch (le32_to_cpu(idx->blkaddr)) { in erofs_map_blocks()
142 map->m_pa = blknr_to_addr(le32_to_cpu(idx->blkaddr)); in erofs_map_blocks()
Dinode.c24 erofs_blk_t blkaddr, nblks = 0; in erofs_read_inode() local
31 blkaddr = erofs_blknr(inode_loc); in erofs_read_inode()
35 __func__, vi->nid, *ofs, blkaddr); in erofs_read_inode()
37 page = erofs_get_meta_page(sb, blkaddr); in erofs_read_inode()
81 page = erofs_get_meta_page(sb, blkaddr + 1); in erofs_read_inode()
Derofs_fs.h259 __le32 blkaddr; /* start block address of this inode chunk */ member
366 __le32 blkaddr; member
Dinternal.h439 struct page *erofs_get_meta_page(struct super_block *sb, erofs_blk_t blkaddr);
Dzmap.c202 m->pblk = le32_to_cpu(di->di_u.blkaddr); in legacy_load_cluster_from_disk()