/fs/f2fs/ |
D | data.c | 289 static struct bio *__bio_alloc(struct f2fs_io_info *fio, int npages) in __bio_alloc() argument 291 struct f2fs_sb_info *sbi = fio->sbi; in __bio_alloc() 296 f2fs_target_device(sbi, fio->new_blkaddr, bio); in __bio_alloc() 297 if (is_read_io(fio->op)) { in __bio_alloc() 304 fio->type, fio->temp); in __bio_alloc() 306 if (fio->io_wbc) in __bio_alloc() 307 wbc_init_bio(fio->io_wbc, bio); in __bio_alloc() 314 const struct f2fs_io_info *fio, in f2fs_set_bio_crypt_ctx() argument 321 if (!fio || !fio->encrypted_page) in f2fs_set_bio_crypt_ctx() 329 const struct f2fs_io_info *fio) in f2fs_crypt_mergeable_bio() argument [all …]
|
D | trace.c | 29 last_io.fio.op, last_io.fio.op_flags, in __print_last_io() 30 last_io.fio.new_blkaddr, in __print_last_io() 87 void f2fs_trace_ios(struct f2fs_io_info *fio, int flush) in f2fs_trace_ios() argument 98 inode = fio->page->mapping->host; in f2fs_trace_ios() 99 pid = page_private(fio->page); in f2fs_trace_ios() 107 last_io.fio.op == fio->op && in f2fs_trace_ios() 108 last_io.fio.op_flags == fio->op_flags && in f2fs_trace_ios() 109 last_io.fio.new_blkaddr + last_io.len == in f2fs_trace_ios() 110 fio->new_blkaddr) { in f2fs_trace_ios() 121 last_io.fio = *fio; in f2fs_trace_ios()
|
D | gc.c | 665 struct f2fs_io_info fio = { in ra_data_block() local 709 fio.page = page; in ra_data_block() 710 fio.new_blkaddr = fio.old_blkaddr = dn.data_blkaddr; in ra_data_block() 720 fio.encrypted_page = f2fs_pagecache_get_page(META_MAPPING(sbi), in ra_data_block() 723 if (!fio.encrypted_page) { in ra_data_block() 728 err = f2fs_submit_page_bio(&fio); in ra_data_block() 731 f2fs_put_page(fio.encrypted_page, 0); in ra_data_block() 735 f2fs_put_page(fio.encrypted_page, 1); in ra_data_block() 748 struct f2fs_io_info fio = { in move_data_block() local 765 bool lfs_mode = test_opt(fio.sbi, LFS); in move_data_block() [all …]
|
D | segment.c | 383 struct f2fs_io_info fio = { in __f2fs_commit_inmem_pages() local 412 fio.page = page; in __f2fs_commit_inmem_pages() 413 fio.old_blkaddr = NULL_ADDR; in __f2fs_commit_inmem_pages() 414 fio.encrypted_page = NULL; in __f2fs_commit_inmem_pages() 415 fio.need_lock = LOCK_DONE; in __f2fs_commit_inmem_pages() 416 err = f2fs_do_write_data_page(&fio); in __f2fs_commit_inmem_pages() 427 cur->old_addr = fio.old_blkaddr; in __f2fs_commit_inmem_pages() 3009 static int __get_segment_type_2(struct f2fs_io_info *fio) in __get_segment_type_2() argument 3011 if (fio->type == DATA) in __get_segment_type_2() 3017 static int __get_segment_type_4(struct f2fs_io_info *fio) in __get_segment_type_4() argument [all …]
|
D | inline.c | 130 struct f2fs_io_info fio = { in f2fs_convert_inline_page() local 150 err = f2fs_get_node_info(fio.sbi, dn->nid, &ni); in f2fs_convert_inline_page() 157 fio.version = ni.version; in f2fs_convert_inline_page() 161 set_sbi_flag(fio.sbi, SBI_NEED_FSCK); in f2fs_convert_inline_page() 162 f2fs_warn(fio.sbi, "%s: corrupted inline inode ino=%lx, i_addr[0]:0x%x, run fsck to fix.", in f2fs_convert_inline_page() 178 fio.old_blkaddr = dn->data_blkaddr; in f2fs_convert_inline_page() 180 f2fs_outplace_write_data(dn, &fio); in f2fs_convert_inline_page()
|
D | segment.h | 665 static inline void verify_fio_blkaddr(struct f2fs_io_info *fio) in verify_fio_blkaddr() argument 667 struct f2fs_sb_info *sbi = fio->sbi; in verify_fio_blkaddr() 669 if (__is_valid_data_blkaddr(fio->old_blkaddr)) in verify_fio_blkaddr() 670 verify_blkaddr(sbi, fio->old_blkaddr, __is_meta_io(fio) ? in verify_fio_blkaddr() 672 verify_blkaddr(sbi, fio->new_blkaddr, __is_meta_io(fio) ? in verify_fio_blkaddr()
|
D | checkpoint.c | 61 struct f2fs_io_info fio = { in __get_meta_page() local 74 fio.op_flags &= ~REQ_META; in __get_meta_page() 84 fio.page = page; in __get_meta_page() 86 err = f2fs_submit_page_bio(&fio); in __get_meta_page() 216 struct f2fs_io_info fio = { in f2fs_ra_meta_pages() local 228 fio.op_flags &= ~REQ_META; in f2fs_ra_meta_pages() 242 fio.new_blkaddr = current_nat_addr(sbi, in f2fs_ra_meta_pages() 247 fio.new_blkaddr = current_sit_addr(sbi, in f2fs_ra_meta_pages() 253 fio.new_blkaddr = blkno; in f2fs_ra_meta_pages() 260 fio.new_blkaddr, false); in f2fs_ra_meta_pages() [all …]
|
D | trace.h | 28 struct f2fs_io_info fio; member
|
D | f2fs.h | 1085 struct f2fs_io_info fio; /* store buffered io info. */ member 2893 #define __is_meta_io(fio) (PAGE_TYPE_OF_BIO((fio)->type) == META) argument 3136 void f2fs_do_write_node_page(unsigned int nid, struct f2fs_io_info *fio); 3138 struct f2fs_io_info *fio); 3139 int f2fs_inplace_write_data(struct f2fs_io_info *fio); 3150 struct f2fs_io_info *fio, bool add_list); 3222 int f2fs_submit_page_bio(struct f2fs_io_info *fio); 3223 int f2fs_merge_page_bio(struct f2fs_io_info *fio); 3224 void f2fs_submit_page_write(struct f2fs_io_info *fio); 3242 int f2fs_do_write_data_page(struct f2fs_io_info *fio); [all …]
|
D | node.c | 1278 struct f2fs_io_info fio = { in read_node_page() local 1306 fio.new_blkaddr = fio.old_blkaddr = ni.blk_addr; in read_node_page() 1307 return f2fs_submit_page_bio(&fio); in read_node_page() 1505 struct f2fs_io_info fio = { in __write_node_page() local 1563 fio.op_flags |= REQ_PREFLUSH | REQ_FUA; in __write_node_page() 1574 fio.old_blkaddr = ni.blk_addr; in __write_node_page() 1575 f2fs_do_write_node_page(nid, &fio); in __write_node_page() 1576 set_node_addr(sbi, &ni, fio.new_blkaddr, is_fsync_dnode(page)); in __write_node_page() 1592 *submitted = fio.submitted; in __write_node_page()
|