/linux-6.6.21/drivers/md/ |
D | dm-verity-fec.c | 45 static int fec_decode_rs8(struct dm_verity *v, struct dm_verity_fec_io *fio, in fec_decode_rs8() argument 54 return decode_rs8(fio->rs, data, par, v->fec->rsn, NULL, neras, in fec_decode_rs8() 55 fio->erasures, 0, NULL); in fec_decode_rs8() 105 struct dm_verity_fec_io *fio, in fec_buffer_rs_block() argument 108 return &fio->bufs[i][j * v->fec->rsn]; in fec_buffer_rs_block() 124 static int fec_decode_bufs(struct dm_verity *v, struct dm_verity_fec_io *fio, in fec_decode_bufs() argument 141 fec_for_each_buffer_rs_block(fio, n, i) { in fec_decode_bufs() 142 block = fec_buffer_rs_block(v, fio, n, i); in fec_decode_bufs() 143 res = fec_decode_rs8(v, fio, block, &par[offset], neras); in fec_decode_bufs() 150 fio->output[block_offset] = block[byte_index]; in fec_decode_bufs() [all …]
|
/linux-6.6.21/fs/f2fs/ |
D | data.c | 432 static blk_opf_t f2fs_io_flags(struct f2fs_io_info *fio) in f2fs_io_flags() argument 438 if (fio->op != REQ_OP_WRITE) in f2fs_io_flags() 440 if (fio->type == DATA) in f2fs_io_flags() 441 io_flag = fio->sbi->data_io_flag; in f2fs_io_flags() 442 else if (fio->type == NODE) in f2fs_io_flags() 443 io_flag = fio->sbi->node_io_flag; in f2fs_io_flags() 456 if (BIT(fio->temp) & meta_flag) in f2fs_io_flags() 458 if (BIT(fio->temp) & fua_flag) in f2fs_io_flags() 463 static struct bio *__bio_alloc(struct f2fs_io_info *fio, int npages) in __bio_alloc() argument 465 struct f2fs_sb_info *sbi = fio->sbi; in __bio_alloc() [all …]
|
D | gc.c | 1178 struct f2fs_io_info fio = { in ra_data_block() local 1224 fio.page = page; in ra_data_block() 1225 fio.new_blkaddr = fio.old_blkaddr = dn.data_blkaddr; in ra_data_block() 1235 fio.encrypted_page = f2fs_pagecache_get_page(META_MAPPING(sbi), in ra_data_block() 1238 if (!fio.encrypted_page) { in ra_data_block() 1243 err = f2fs_submit_page_bio(&fio); in ra_data_block() 1246 f2fs_put_page(fio.encrypted_page, 0); in ra_data_block() 1254 f2fs_put_page(fio.encrypted_page, 1); in ra_data_block() 1267 struct f2fs_io_info fio = { in move_data_block() local 1284 bool lfs_mode = f2fs_lfs_mode(fio.sbi); in move_data_block() [all …]
|
D | segment.c | 3293 static int __get_segment_type_2(struct f2fs_io_info *fio) in __get_segment_type_2() argument 3295 if (fio->type == DATA) in __get_segment_type_2() 3301 static int __get_segment_type_4(struct f2fs_io_info *fio) in __get_segment_type_4() argument 3303 if (fio->type == DATA) { in __get_segment_type_4() 3304 struct inode *inode = fio->page->mapping->host; in __get_segment_type_4() 3311 if (IS_DNODE(fio->page) && is_cold_node(fio->page)) in __get_segment_type_4() 3335 static int __get_segment_type_6(struct f2fs_io_info *fio) in __get_segment_type_6() argument 3337 if (fio->type == DATA) { in __get_segment_type_6() 3338 struct inode *inode = fio->page->mapping->host; in __get_segment_type_6() 3344 if (page_private_gcing(fio->page)) { in __get_segment_type_6() [all …]
|
D | compress.c | 1218 struct f2fs_io_info fio = { in f2fs_write_compressed_pages() local 1274 err = f2fs_get_node_info(fio.sbi, dn.nid, &ni, false); in f2fs_write_compressed_pages() 1278 fio.version = ni.version; in f2fs_write_compressed_pages() 1296 fio.compressed_page = cc->cpages[i]; in f2fs_write_compressed_pages() 1298 fio.old_blkaddr = data_blkaddr(dn.inode, dn.node_page, in f2fs_write_compressed_pages() 1302 f2fs_wait_on_block_writeback(inode, fio.old_blkaddr); in f2fs_write_compressed_pages() 1304 if (fio.encrypted) { in f2fs_write_compressed_pages() 1305 fio.page = cc->rpages[i + 1]; in f2fs_write_compressed_pages() 1306 err = f2fs_encrypt_one_page(&fio); in f2fs_write_compressed_pages() 1309 cc->cpages[i] = fio.encrypted_page; in f2fs_write_compressed_pages() [all …]
|
D | inline.c | 129 struct f2fs_io_info fio = { in f2fs_convert_inline_page() local 149 err = f2fs_get_node_info(fio.sbi, dn->nid, &ni, false); in f2fs_convert_inline_page() 156 fio.version = ni.version; in f2fs_convert_inline_page() 160 set_sbi_flag(fio.sbi, SBI_NEED_FSCK); in f2fs_convert_inline_page() 161 f2fs_warn(fio.sbi, "%s: corrupted inline inode ino=%lx, i_addr[0]:0x%x, run fsck to fix.", in f2fs_convert_inline_page() 163 f2fs_handle_error(fio.sbi, ERROR_INVALID_BLKADDR); in f2fs_convert_inline_page() 177 fio.old_blkaddr = dn->data_blkaddr; in f2fs_convert_inline_page() 179 f2fs_outplace_write_data(dn, &fio); in f2fs_convert_inline_page()
|
D | segment.h | 751 static inline void verify_fio_blkaddr(struct f2fs_io_info *fio) in verify_fio_blkaddr() argument 753 struct f2fs_sb_info *sbi = fio->sbi; in verify_fio_blkaddr() 755 if (__is_valid_data_blkaddr(fio->old_blkaddr)) in verify_fio_blkaddr() 756 verify_blkaddr(sbi, fio->old_blkaddr, __is_meta_io(fio) ? in verify_fio_blkaddr() 758 verify_blkaddr(sbi, fio->new_blkaddr, __is_meta_io(fio) ? in verify_fio_blkaddr()
|
D | checkpoint.c | 62 struct f2fs_io_info fio = { in __get_meta_page() local 75 fio.op_flags &= ~REQ_META; in __get_meta_page() 85 fio.page = page; in __get_meta_page() 87 err = f2fs_submit_page_bio(&fio); in __get_meta_page() 241 struct f2fs_io_info fio = { in f2fs_ra_meta_pages() local 254 fio.op_flags &= ~REQ_META; in f2fs_ra_meta_pages() 268 fio.new_blkaddr = current_nat_addr(sbi, in f2fs_ra_meta_pages() 275 fio.new_blkaddr = current_sit_addr(sbi, in f2fs_ra_meta_pages() 281 fio.new_blkaddr = blkno; in f2fs_ra_meta_pages() 288 fio.new_blkaddr, false); in f2fs_ra_meta_pages() [all …]
|
D | f2fs.h | 1221 struct f2fs_io_info fio; /* store buffered io info. */ member 3450 #define __is_meta_io(fio) (PAGE_TYPE_OF_BIO((fio)->type) == META) argument 3695 void f2fs_do_write_node_page(unsigned int nid, struct f2fs_io_info *fio); 3697 struct f2fs_io_info *fio); 3698 int f2fs_inplace_write_data(struct f2fs_io_info *fio); 3710 struct f2fs_io_info *fio); 3809 int f2fs_submit_page_bio(struct f2fs_io_info *fio); 3810 int f2fs_merge_page_bio(struct f2fs_io_info *fio); 3811 void f2fs_submit_page_write(struct f2fs_io_info *fio); 3829 int f2fs_do_write_data_page(struct f2fs_io_info *fio); [all …]
|
D | node.c | 1356 struct f2fs_io_info fio = { in read_node_page() local 1384 fio.new_blkaddr = fio.old_blkaddr = ni.blk_addr; in read_node_page() 1386 err = f2fs_submit_page_bio(&fio); in read_node_page() 1595 struct f2fs_io_info fio = { in __write_node_page() local 1660 fio.op_flags |= REQ_PREFLUSH | REQ_FUA; in __write_node_page() 1671 fio.old_blkaddr = ni.blk_addr; in __write_node_page() 1672 f2fs_do_write_node_page(nid, &fio); in __write_node_page() 1673 set_node_addr(sbi, &ni, fio.new_blkaddr, is_fsync_dnode(page)); in __write_node_page() 1689 *submitted = fio.submitted; in __write_node_page()
|
/linux-6.6.21/include/trace/events/ |
D | f2fs.h | 1037 TP_PROTO(struct page *page, struct f2fs_io_info *fio), 1039 TP_ARGS(page, fio), 1057 __entry->old_blkaddr = fio->old_blkaddr; 1058 __entry->new_blkaddr = fio->new_blkaddr; 1059 __entry->op = fio->op; 1060 __entry->op_flags = fio->op_flags; 1061 __entry->temp = fio->temp; 1062 __entry->type = fio->type; 1078 TP_PROTO(struct page *page, struct f2fs_io_info *fio), 1080 TP_ARGS(page, fio), [all …]
|
/linux-6.6.21/Documentation/admin-guide/device-mapper/ |
D | unstriped.rst | 104 With the dm-unstriped target we're able to segregate an fio script that
|
/linux-6.6.21/Documentation/core-api/ |
D | workqueue.rst | 443 $ fio --filename=/dev/dm-0 --direct=1 --rw=randrw --bs=32k --ioengine=libaio \ 448 makes ``fio`` generate and read back the content each time which makes 485 $ fio --filename=/dev/dm-0 --direct=1 --rw=randrw --bs=32k \ 528 $ fio --filename=/dev/dm-0 --direct=1 --rw=randrw --bs=32k \
|
/linux-6.6.21/Documentation/admin-guide/ |
D | bcache.rst | 358 But if you want to benchmark reads from cache, and you start out with fio
|