Home
last modified time | relevance | path

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

/fs/f2fs/
Drecovery.c349 block_t blkaddr; in find_fsync_dnodes() local
357 blkaddr = NEXT_FREE_BLKADDR(sbi, curseg); in find_fsync_dnodes()
362 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, META_POR)) in find_fsync_dnodes()
365 page = f2fs_get_tmp_page(sbi, blkaddr); in find_fsync_dnodes()
409 entry->blkaddr = blkaddr; in find_fsync_dnodes()
412 entry->last_dentry = blkaddr; in find_fsync_dnodes()
416 blkaddr == next_blkaddr_of_node(page)) { in find_fsync_dnodes()
418 __func__, blkaddr, in find_fsync_dnodes()
426 blkaddr = next_blkaddr_of_node(page); in find_fsync_dnodes()
429 f2fs_ra_meta_pages_cond(sbi, blkaddr); in find_fsync_dnodes()
[all …]
Dcompress.c810 block_t blkaddr, bool in_task) in f2fs_end_read_compressed_page() argument
820 else if (blkaddr && in_task) in f2fs_end_read_compressed_page()
822 dic->inode->i_ino, blkaddr); in f2fs_end_read_compressed_page()
892 block_t blkaddr; in __f2fs_cluster_blocks() local
894 blkaddr = data_blkaddr(dn.inode, in __f2fs_cluster_blocks()
897 if (__is_valid_data_blkaddr(blkaddr)) in __f2fs_cluster_blocks()
900 if (blkaddr != NULL_ADDR) in __f2fs_cluster_blocks()
1239 block_t blkaddr; in f2fs_write_compressed_pages() local
1241 blkaddr = f2fs_data_blkaddr(&dn); in f2fs_write_compressed_pages()
1243 fio.old_blkaddr = blkaddr; in f2fs_write_compressed_pages()
[all …]
Dfile.c385 static bool __found_offset(struct address_space *mapping, block_t blkaddr, in __found_offset() argument
390 if (__is_valid_data_blkaddr(blkaddr)) in __found_offset()
392 if (blkaddr == NEW_ADDR && in __found_offset()
397 if (blkaddr == NULL_ADDR) in __found_offset()
454 block_t blkaddr; in f2fs_seek_block() local
456 blkaddr = f2fs_data_blkaddr(&dn); in f2fs_seek_block()
458 if (__is_valid_data_blkaddr(blkaddr) && in f2fs_seek_block()
460 blkaddr, DATA_GENERIC_ENHANCE)) { in f2fs_seek_block()
465 if (__found_offset(file->f_mapping, blkaddr, in f2fs_seek_block()
565 block_t blkaddr = le32_to_cpu(*addr); in f2fs_truncate_data_blocks_range() local
[all …]
Ddata.c234 block_t blkaddr = SECTOR_TO_BLOCK(ctx->bio->bi_iter.bi_sector); in f2fs_handle_step_decompress() local
242 blkaddr, in_task); in f2fs_handle_step_decompress()
246 blkaddr++; in f2fs_handle_step_decompress()
390 int f2fs_target_device_index(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_target_device_index() argument
398 if (FDEV(i).start_blk <= blkaddr && FDEV(i).end_blk >= blkaddr) in f2fs_target_device_index()
1002 static struct bio *f2fs_grab_read_bio(struct inode *inode, block_t blkaddr, in f2fs_grab_read_bio() argument
1019 f2fs_target_device(sbi, blkaddr, bio); in f2fs_grab_read_bio()
1050 block_t blkaddr, int op_flags, bool for_write) in f2fs_submit_page_read() argument
1055 bio = f2fs_grab_read_bio(inode, blkaddr, 1, op_flags, in f2fs_submit_page_read()
1061 f2fs_wait_on_block_writeback(inode, blkaddr); in f2fs_submit_page_read()
[all …]
Dcheckpoint.c138 static bool __is_bitmap_valid(struct f2fs_sb_info *sbi, block_t blkaddr, in __is_bitmap_valid() argument
148 segno = GET_SEGNO(sbi, blkaddr); in __is_bitmap_valid()
149 offset = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); in __is_bitmap_valid()
155 blkaddr, exist); in __is_bitmap_valid()
162 blkaddr, exist); in __is_bitmap_valid()
170 block_t blkaddr, int type) in f2fs_is_valid_blkaddr() argument
176 if (unlikely(blkaddr >= SIT_BLK_CNT(sbi))) in f2fs_is_valid_blkaddr()
180 if (unlikely(blkaddr >= MAIN_BLKADDR(sbi) || in f2fs_is_valid_blkaddr()
181 blkaddr < SM_I(sbi)->ssa_blkaddr)) in f2fs_is_valid_blkaddr()
185 if (unlikely(blkaddr >= SIT_I(sbi)->sit_base_addr || in f2fs_is_valid_blkaddr()
[all …]
Dextent_cache.c821 pgoff_t fofs, block_t blkaddr, unsigned int llen, in f2fs_update_read_extent_tree_range_compressed() argument
833 blkaddr, c_len); in f2fs_update_read_extent_tree_range_compressed()
850 __set_extent_info(&ei, fofs, llen, blkaddr, true, 0, 0, EX_READ); in f2fs_update_read_extent_tree_range_compressed()
882 block_t blkaddr) in __get_new_block_age() argument
896 blkaddr == NEW_ADDR) in __get_new_block_age()
917 f2fs_bug_on(sbi, blkaddr == NULL_ADDR); in __get_new_block_age()
920 if (blkaddr == NEW_ADDR) in __get_new_block_age()
923 if (__is_valid_data_blkaddr(blkaddr) && in __get_new_block_age()
924 !f2fs_is_valid_blkaddr(sbi, blkaddr, DATA_GENERIC_ENHANCE)) { in __get_new_block_age()
1052 pgoff_t fofs, block_t blkaddr, unsigned int len) in f2fs_update_read_extent_cache_range() argument
[all …]
Df2fs.h408 block_t blkaddr; /* block address locating the last fsync */ member
3392 block_t blkaddr, int type);
3394 block_t blkaddr, int type) in verify_blkaddr() argument
3396 if (!f2fs_is_valid_blkaddr(sbi, blkaddr, type)) { in verify_blkaddr()
3398 blkaddr, type); in verify_blkaddr()
3403 static inline bool __is_valid_data_blkaddr(block_t blkaddr) in __is_valid_data_blkaddr() argument
3405 if (blkaddr == NEW_ADDR || blkaddr == NULL_ADDR || in __is_valid_data_blkaddr()
3406 blkaddr == COMPRESS_ADDR) in __is_valid_data_blkaddr()
3596 bool f2fs_is_checkpointed_data(struct f2fs_sb_info *sbi, block_t blkaddr);
3643 void f2fs_wait_on_block_writeback(struct inode *inode, block_t blkaddr);
[all …]
Dsegment.c1317 struct discard_cmd *dc, block_t blkaddr) in __punch_discard_cmd() argument
1330 if (blkaddr > di.lstart) { in __punch_discard_cmd()
1331 dc->len = blkaddr - dc->lstart; in __punch_discard_cmd()
1337 if (blkaddr < di.lstart + di.len - 1) { in __punch_discard_cmd()
1339 __insert_discard_tree(sbi, dc->bdev, blkaddr + 1, in __punch_discard_cmd()
1340 di.start + blkaddr + 1 - di.lstart, in __punch_discard_cmd()
1341 di.lstart + di.len - 1 - blkaddr, in __punch_discard_cmd()
1706 static void f2fs_wait_discard_bio(struct f2fs_sb_info *sbi, block_t blkaddr) in f2fs_wait_discard_bio() argument
1714 NULL, blkaddr); in f2fs_wait_discard_bio()
1717 __punch_discard_cmd(sbi, dc, blkaddr); in f2fs_wait_discard_bio()
[all …]
Dnode.h302 static inline void fill_node_footer_blkaddr(struct page *page, block_t blkaddr) in fill_node_footer_blkaddr() argument
312 rn->footer.next_blkaddr = cpu_to_le32(blkaddr); in fill_node_footer_blkaddr()
Dnode.c559 block_t blkaddr; in f2fs_get_node_info() local
613 blkaddr = le32_to_cpu(ne.block_addr); in f2fs_get_node_info()
614 if (__is_valid_data_blkaddr(blkaddr) && in f2fs_get_node_info()
615 !f2fs_is_valid_blkaddr(sbi, blkaddr, DATA_GENERIC_ENHANCE)) in f2fs_get_node_info()
857 block_t blkaddr; in f2fs_get_dnode_of_data() local
862 blkaddr = f2fs_data_blkaddr(dn); in f2fs_get_dnode_of_data()
863 if (blkaddr == COMPRESS_ADDR) in f2fs_get_dnode_of_data()
864 blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_get_dnode_of_data()
868 index, blkaddr, in f2fs_get_dnode_of_data()
Dgc.c1052 struct node_info *dni, block_t blkaddr, unsigned int *nofs) in is_alive() argument
1101 if (source_blkaddr != blkaddr) { in is_alive()
1103 unsigned int segno = GET_SEGNO(sbi, blkaddr); in is_alive()
1104 unsigned long offset = GET_BLKOFF_FROM_SEG0(sbi, blkaddr); in is_alive()
1109 blkaddr, source_blkaddr, segno); in is_alive()
/fs/erofs/
Dxattr.c15 erofs_blk_t blkaddr; member
95 it.blkaddr = erofs_blknr(iloc(sbi, vi->nid) + vi->inode_isize); in init_inode_xattrs()
98 it.page = erofs_get_meta_page(sb, it.blkaddr); in init_inode_xattrs()
128 it.page = erofs_get_meta_page(sb, ++it.blkaddr); in init_inode_xattrs()
178 it->blkaddr += erofs_blknr(it->ofs); in xattr_iter_fixup()
180 it->page = erofs_get_meta_page(it->sb, it->blkaddr); in xattr_iter_fixup()
208 it->blkaddr = erofs_blknr(iloc(sbi, vi->nid) + inline_xattr_ofs); in inline_xattr_iter_begin()
211 it->page = erofs_get_meta_page(inode->i_sb, it->blkaddr); in inline_xattr_iter_begin()
404 erofs_blk_t blkaddr = in shared_getxattr() local
409 if (!i || blkaddr != it->it.blkaddr) { in shared_getxattr()
[all …]
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()
Ddata.c35 struct page *erofs_get_meta_page(struct super_block *sb, erofs_blk_t blkaddr) in erofs_get_meta_page() argument
40 page = read_cache_page_gfp(mapping, blkaddr, in erofs_get_meta_page()
Derofs_fs.h303 __le32 blkaddr; member
Dinternal.h375 struct page *erofs_get_meta_page(struct super_block *sb, erofs_blk_t blkaddr);
Dzmap.c199 m->pblk = le32_to_cpu(di->di_u.blkaddr); in legacy_load_cluster_from_disk()