Home
last modified time | relevance | path

Searched refs:fio (Results 1 – 11 of 11) sorted by relevance

/fs/f2fs/
Ddata.c439 static struct bio *__bio_alloc(struct f2fs_io_info *fio, int npages) in __bio_alloc() argument
441 struct f2fs_sb_info *sbi = fio->sbi; in __bio_alloc()
446 f2fs_target_device(sbi, fio->new_blkaddr, bio); in __bio_alloc()
447 if (is_read_io(fio->op)) { in __bio_alloc()
454 fio->type, fio->temp); in __bio_alloc()
456 if (fio->io_wbc) in __bio_alloc()
457 wbc_init_bio(fio->io_wbc, bio); in __bio_alloc()
464 const struct f2fs_io_info *fio, in f2fs_set_bio_crypt_ctx() argument
471 if (!fio || !fio->encrypted_page) in f2fs_set_bio_crypt_ctx()
479 const struct f2fs_io_info *fio) in f2fs_crypt_mergeable_bio() argument
[all …]
Dtrace.c29 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()
Dgc.c693 struct f2fs_io_info fio = { in ra_data_block() local
737 fio.page = page; in ra_data_block()
738 fio.new_blkaddr = fio.old_blkaddr = dn.data_blkaddr; in ra_data_block()
748 fio.encrypted_page = f2fs_pagecache_get_page(META_MAPPING(sbi), in ra_data_block()
751 if (!fio.encrypted_page) { in ra_data_block()
756 err = f2fs_submit_page_bio(&fio); in ra_data_block()
759 f2fs_put_page(fio.encrypted_page, 0); in ra_data_block()
767 f2fs_put_page(fio.encrypted_page, 1); in ra_data_block()
780 struct f2fs_io_info fio = { in move_data_block() local
797 bool lfs_mode = f2fs_lfs_mode(fio.sbi); in move_data_block()
[all …]
Dsegment.c386 struct f2fs_io_info fio = { in __f2fs_commit_inmem_pages() local
415 fio.page = page; in __f2fs_commit_inmem_pages()
416 fio.old_blkaddr = NULL_ADDR; in __f2fs_commit_inmem_pages()
417 fio.encrypted_page = NULL; in __f2fs_commit_inmem_pages()
418 fio.need_lock = LOCK_DONE; in __f2fs_commit_inmem_pages()
419 err = f2fs_do_write_data_page(&fio); in __f2fs_commit_inmem_pages()
431 cur->old_addr = fio.old_blkaddr; in __f2fs_commit_inmem_pages()
3024 static int __get_segment_type_2(struct f2fs_io_info *fio) in __get_segment_type_2() argument
3026 if (fio->type == DATA) in __get_segment_type_2()
3032 static int __get_segment_type_4(struct f2fs_io_info *fio) in __get_segment_type_4() argument
[all …]
Dcompress.c1057 struct f2fs_io_info fio = { in f2fs_write_compressed_pages() local
1097 err = f2fs_get_node_info(fio.sbi, dn.nid, &ni); in f2fs_write_compressed_pages()
1101 fio.version = ni.version; in f2fs_write_compressed_pages()
1120 fio.compressed_page = cc->cpages[i]; in f2fs_write_compressed_pages()
1121 if (fio.encrypted) { in f2fs_write_compressed_pages()
1122 fio.page = cc->rpages[i + 1]; in f2fs_write_compressed_pages()
1123 err = f2fs_encrypt_one_page(&fio); in f2fs_write_compressed_pages()
1127 cc->cpages[i] = fio.encrypted_page; in f2fs_write_compressed_pages()
1140 fio.page = cc->rpages[i]; in f2fs_write_compressed_pages()
1141 fio.old_blkaddr = blkaddr; in f2fs_write_compressed_pages()
[all …]
Dinline.c126 struct f2fs_io_info fio = { in f2fs_convert_inline_page() local
146 err = f2fs_get_node_info(fio.sbi, dn->nid, &ni); in f2fs_convert_inline_page()
153 fio.version = ni.version; in f2fs_convert_inline_page()
157 set_sbi_flag(fio.sbi, SBI_NEED_FSCK); in f2fs_convert_inline_page()
158 f2fs_warn(fio.sbi, "%s: corrupted inline inode ino=%lx, i_addr[0]:0x%x, run fsck to fix.", in f2fs_convert_inline_page()
174 fio.old_blkaddr = dn->data_blkaddr; in f2fs_convert_inline_page()
176 f2fs_outplace_write_data(dn, &fio); in f2fs_convert_inline_page()
Dsegment.h666 static inline void verify_fio_blkaddr(struct f2fs_io_info *fio) in verify_fio_blkaddr() argument
668 struct f2fs_sb_info *sbi = fio->sbi; in verify_fio_blkaddr()
670 if (__is_valid_data_blkaddr(fio->old_blkaddr)) in verify_fio_blkaddr()
671 verify_blkaddr(sbi, fio->old_blkaddr, __is_meta_io(fio) ? in verify_fio_blkaddr()
673 verify_blkaddr(sbi, fio->new_blkaddr, __is_meta_io(fio) ? in verify_fio_blkaddr()
Dcheckpoint.c58 struct f2fs_io_info fio = { in __get_meta_page() local
71 fio.op_flags &= ~REQ_META; in __get_meta_page()
81 fio.page = page; in __get_meta_page()
83 err = f2fs_submit_page_bio(&fio); in __get_meta_page()
223 struct f2fs_io_info fio = { in f2fs_ra_meta_pages() local
236 fio.op_flags &= ~REQ_META; in f2fs_ra_meta_pages()
250 fio.new_blkaddr = current_nat_addr(sbi, in f2fs_ra_meta_pages()
257 fio.new_blkaddr = current_sit_addr(sbi, in f2fs_ra_meta_pages()
263 fio.new_blkaddr = blkno; in f2fs_ra_meta_pages()
270 fio.new_blkaddr, false); in f2fs_ra_meta_pages()
[all …]
Dtrace.h28 struct f2fs_io_info fio; member
Df2fs.h1219 struct f2fs_io_info fio; /* store buffered io info. */ member
3135 #define __is_meta_io(fio) (PAGE_TYPE_OF_BIO((fio)->type) == META) argument
3384 void f2fs_do_write_node_page(unsigned int nid, struct f2fs_io_info *fio);
3386 struct f2fs_io_info *fio);
3387 int f2fs_inplace_write_data(struct f2fs_io_info *fio);
3398 struct f2fs_io_info *fio, bool add_list);
3475 int f2fs_submit_page_bio(struct f2fs_io_info *fio);
3476 int f2fs_merge_page_bio(struct f2fs_io_info *fio);
3477 void f2fs_submit_page_write(struct f2fs_io_info *fio);
3498 int f2fs_do_write_data_page(struct f2fs_io_info *fio);
[all …]
Dnode.c1284 struct f2fs_io_info fio = { in read_node_page() local
1312 fio.new_blkaddr = fio.old_blkaddr = ni.blk_addr; in read_node_page()
1314 err = f2fs_submit_page_bio(&fio); in read_node_page()
1518 struct f2fs_io_info fio = { in __write_node_page() local
1583 fio.op_flags |= REQ_PREFLUSH | REQ_FUA; in __write_node_page()
1595 fio.old_blkaddr = ni.blk_addr; in __write_node_page()
1596 f2fs_do_write_node_page(nid, &fio); in __write_node_page()
1597 set_node_addr(sbi, &ni, fio.new_blkaddr, is_fsync_dnode(page)); in __write_node_page()
1613 *submitted = fio.submitted; in __write_node_page()