Home
last modified time | relevance | path

Searched refs:mirror (Results 1 – 14 of 14) sorted by relevance

/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c186 struct nfs4_ff_layout_mirror *mirror) in ff_layout_mirror_valid() argument
188 if (mirror == NULL || mirror->mirror_ds == NULL) { in ff_layout_mirror_valid()
193 if (mirror->mirror_ds->ds == NULL) { in ff_layout_mirror_valid()
195 devid = &mirror->mirror_ds->id_node; in ff_layout_mirror_valid()
275 struct nfs4_ff_layout_mirror *mirror, u64 offset, in ff_layout_track_ds_error() argument
284 if (mirror->mirror_ds == NULL) in ff_layout_track_ds_error()
296 nfs4_stateid_copy(&dserr->stateid, &mirror->stateid); in ff_layout_track_ds_error()
297 memcpy(&dserr->deviceid, &mirror->mirror_ds->id_node.deviceid, in ff_layout_track_ds_error()
308 ff_layout_get_mirror_cred(struct nfs4_ff_layout_mirror *mirror, u32 iomode) in ff_layout_get_mirror_cred() argument
313 pcred = &mirror->ro_cred; in ff_layout_get_mirror_cred()
[all …]
Dflexfilelayout.c170 struct nfs4_ff_layout_mirror *mirror) in ff_layout_add_mirror() argument
178 if (mirror->mirror_ds != pos->mirror_ds) in ff_layout_add_mirror()
180 if (!ff_mirror_match_fh(mirror, pos)) in ff_layout_add_mirror()
187 list_add(&mirror->mirrors, &ff_layout->mirrors); in ff_layout_add_mirror()
188 mirror->layout = lo; in ff_layout_add_mirror()
190 return mirror; in ff_layout_add_mirror()
194 ff_layout_remove_mirror(struct nfs4_ff_layout_mirror *mirror) in ff_layout_remove_mirror() argument
197 if (mirror->layout == NULL) in ff_layout_remove_mirror()
199 inode = mirror->layout->plh_inode; in ff_layout_remove_mirror()
201 list_del(&mirror->mirrors); in ff_layout_remove_mirror()
[all …]
Dflexfilelayout.h180 struct nfs4_ff_layout_mirror *mirror, u64 offset,
/fs/nfs/
Dpagelist.c59 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in nfs_pgheader_init() local
62 hdr->req = nfs_list_entry(mirror->pg_list.next); in nfs_pgheader_init()
66 hdr->good_bytes = mirror->pg_count; in nfs_pgheader_init()
466 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in nfs_generic_pg_test() local
469 if (mirror->pg_count > mirror->pg_bsize) { in nfs_generic_pg_test()
479 if (((mirror->pg_count + req->wb_bytes) >> PAGE_SHIFT) * in nfs_generic_pg_test()
483 return min(mirror->pg_bsize - mirror->pg_count, (size_t)req->wb_bytes); in nfs_generic_pg_test()
652 static void nfs_pageio_mirror_init(struct nfs_pgio_mirror *mirror, in nfs_pageio_mirror_init() argument
655 INIT_LIST_HEAD(&mirror->pg_list); in nfs_pageio_mirror_init()
656 mirror->pg_bytes_written = 0; in nfs_pageio_mirror_init()
[all …]
Dread.c73 struct nfs_pgio_mirror *mirror; in nfs_pageio_reset_read_mds() local
83 mirror = &pgio->pg_mirrors[0]; in nfs_pageio_reset_read_mds()
84 mirror->pg_bsize = NFS_SERVER(pgio->pg_inode)->rsize; in nfs_pageio_reset_read_mds()
Dpnfs.c2139 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in pnfs_write_through_mds() local
2142 list_splice_tail_init(&hdr->pages, &mirror->pg_list); in pnfs_write_through_mds()
2144 mirror->pg_recoalesce = 1; in pnfs_write_through_mds()
2250 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in pnfs_read_through_mds() local
2253 list_splice_tail_init(&hdr->pages, &mirror->pg_list); in pnfs_read_through_mds()
2255 mirror->pg_recoalesce = 1; in pnfs_read_through_mds()
2317 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in pnfs_do_read() local
2318 list_splice_init(&hdr->pages, &mirror->pg_list); in pnfs_do_read()
2319 mirror->pg_recoalesce = 1; in pnfs_do_read()
Dwrite.c1380 struct nfs_pgio_mirror *mirror; in nfs_pageio_reset_write_mds() local
1389 mirror = &pgio->pg_mirrors[0]; in nfs_pageio_reset_write_mds()
1390 mirror->pg_bsize = NFS_SERVER(pgio->pg_inode)->wsize; in nfs_pageio_reset_write_mds()
/fs/btrfs/
Ddisk-io.h36 static inline u64 btrfs_sb_offset(int mirror) in btrfs_sb_offset() argument
39 if (mirror) in btrfs_sb_offset()
40 return start << (BTRFS_SUPER_MIRROR_SHIFT * mirror); in btrfs_sb_offset()
Dextent_io.h104 int mirror);
Dextent_io.c2541 int mirror; in end_bio_extent_readpage() local
2576 mirror = io_bio->mirror_num; in end_bio_extent_readpage()
2581 mirror); in end_bio_extent_readpage()
2592 ret = tree->ops->readpage_io_failed_hook(page, mirror); in end_bio_extent_readpage()
2607 mirror); in end_bio_extent_readpage()
Ddisk-io.c689 u64 start, u64 end, int mirror) in btree_readpage_end_io_hook() argument
713 eb->read_mirror = mirror; in btree_readpage_end_io_hook()
Dscrub.c1274 int nstripes, int mirror, in scrub_stripe_index_and_offset() argument
1296 *stripe_index = mirror; in scrub_stripe_index_and_offset()
Dinode.c3143 u64 start, u64 end, int mirror) in btrfs_readpage_end_io_hook() argument
/fs/nfs/objlayout/
Dobjio_osd.c537 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(pgio); in objio_pg_test() local
542 if (!size || mirror->pg_count + req->wb_bytes > in objio_pg_test()