Home
last modified time | relevance | path

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

/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c251 struct nfs4_ff_layout_mirror *mirror, u64 offset, in ff_layout_track_ds_error() argument
260 if (IS_ERR_OR_NULL(mirror->mirror_ds)) in ff_layout_track_ds_error()
272 nfs4_stateid_copy(&dserr->stateid, &mirror->stateid); in ff_layout_track_ds_error()
273 memcpy(&dserr->deviceid, &mirror->mirror_ds->id_node.deviceid, in ff_layout_track_ds_error()
283 ff_layout_get_mirror_cred(struct nfs4_ff_layout_mirror *mirror, u32 iomode) in ff_layout_get_mirror_cred() argument
288 pcred = &mirror->ro_cred; in ff_layout_get_mirror_cred()
290 pcred = &mirror->rw_cred; in ff_layout_get_mirror_cred()
305 nfs4_ff_layout_select_ds_fh(struct nfs4_ff_layout_mirror *mirror) in nfs4_ff_layout_select_ds_fh() argument
308 return &mirror->fh_versions[0]; in nfs4_ff_layout_select_ds_fh()
312 nfs4_ff_layout_select_ds_stateid(const struct nfs4_ff_layout_mirror *mirror, in nfs4_ff_layout_select_ds_stateid() argument
[all …]
Dflexfilelayout.c43 struct nfs4_ff_layout_mirror *mirror);
183 struct nfs4_ff_layout_mirror *mirror) in ff_layout_add_mirror() argument
191 if (memcmp(&mirror->devid, &pos->devid, sizeof(pos->devid)) != 0) in ff_layout_add_mirror()
193 if (!ff_mirror_match_fh(mirror, pos)) in ff_layout_add_mirror()
200 list_add(&mirror->mirrors, &ff_layout->mirrors); in ff_layout_add_mirror()
201 mirror->layout = lo; in ff_layout_add_mirror()
203 return mirror; in ff_layout_add_mirror()
207 ff_layout_remove_mirror(struct nfs4_ff_layout_mirror *mirror) in ff_layout_remove_mirror() argument
210 if (mirror->layout == NULL) in ff_layout_remove_mirror()
212 inode = mirror->layout->plh_inode; in ff_layout_remove_mirror()
[all …]
Dflexfilelayout.h154 struct nfs4_ff_layout_mirror *mirror = FF_LAYOUT_COMP(lseg, idx); in FF_LAYOUT_DEVID_NODE() local
156 if (mirror != NULL) { in FF_LAYOUT_DEVID_NODE()
157 struct nfs4_ff_layout_ds *mirror_ds = mirror->mirror_ds; in FF_LAYOUT_DEVID_NODE()
184 nfs4_ff_layout_ds_version(const struct nfs4_ff_layout_mirror *mirror) in nfs4_ff_layout_ds_version() argument
186 return mirror->mirror_ds->ds_versions[0].version; in nfs4_ff_layout_ds_version()
195 struct nfs4_ff_layout_mirror *mirror, u64 offset,
206 nfs4_ff_layout_select_ds_fh(struct nfs4_ff_layout_mirror *mirror);
208 nfs4_ff_layout_select_ds_stateid(const struct nfs4_ff_layout_mirror *mirror,
213 struct nfs4_ff_layout_mirror *mirror,
217 nfs4_ff_find_or_create_ds_client(struct nfs4_ff_layout_mirror *mirror,
[all …]
/fs/nfs/
Dpagelist.c61 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in nfs_pgheader_init() local
64 hdr->req = nfs_list_entry(mirror->pg_list.next); in nfs_pgheader_init()
68 hdr->good_bytes = mirror->pg_count; in nfs_pgheader_init()
638 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in nfs_generic_pg_test() local
641 if (mirror->pg_count > mirror->pg_bsize) { in nfs_generic_pg_test()
651 if (((mirror->pg_count + req->wb_bytes) >> PAGE_SHIFT) * in nfs_generic_pg_test()
655 return min(mirror->pg_bsize - mirror->pg_count, (size_t)req->wb_bytes); in nfs_generic_pg_test()
813 static void nfs_pageio_mirror_init(struct nfs_pgio_mirror *mirror, in nfs_pageio_mirror_init() argument
816 INIT_LIST_HEAD(&mirror->pg_list); in nfs_pageio_mirror_init()
817 mirror->pg_bytes_written = 0; in nfs_pageio_mirror_init()
[all …]
Dread.c79 struct nfs_pgio_mirror *mirror; in nfs_pageio_reset_read_mds() local
89 mirror = &pgio->pg_mirrors[0]; in nfs_pageio_reset_read_mds()
90 mirror->pg_bsize = NFS_SERVER(pgio->pg_inode)->rsize; in nfs_pageio_reset_read_mds()
Dpnfs.c2880 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in pnfs_write_through_mds() local
2883 list_splice_tail_init(&hdr->pages, &mirror->pg_list); in pnfs_write_through_mds()
2885 mirror->pg_recoalesce = 1; in pnfs_write_through_mds()
2928 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in pnfs_do_write() local
2929 list_splice_init(&hdr->pages, &mirror->pg_list); in pnfs_do_write()
2930 mirror->pg_recoalesce = 1; in pnfs_do_write()
3003 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in pnfs_read_through_mds() local
3006 list_splice_tail_init(&hdr->pages, &mirror->pg_list); in pnfs_read_through_mds()
3008 mirror->pg_recoalesce = 1; in pnfs_read_through_mds()
3072 struct nfs_pgio_mirror *mirror = nfs_pgio_current_mirror(desc); in pnfs_do_read() local
[all …]
Dwrite.c1447 struct nfs_pgio_mirror *mirror; in nfs_pageio_reset_write_mds() local
1456 mirror = &pgio->pg_mirrors[0]; in nfs_pageio_reset_write_mds()
1457 mirror->pg_bsize = NFS_SERVER(pgio->pg_inode)->wsize; in nfs_pageio_reset_write_mds()
/fs/btrfs/
Ddisk-io.h30 static inline u64 btrfs_sb_offset(int mirror) in btrfs_sb_offset() argument
33 if (mirror) in btrfs_sb_offset()
34 return start << (BTRFS_SUPER_MIRROR_SHIFT * mirror); in btrfs_sb_offset()
84 int mirror);
Dcompression.c200 unsigned int mirror = btrfs_io_bio(bio)->mirror_num; in end_compressed_bio_read() local
216 btrfs_io_bio(cb->orig_bio)->mirror_num = mirror; in end_compressed_bio_read()
217 cb->mirror_num = mirror; in end_compressed_bio_read()
Dextent_io.c2811 int mirror; in end_bio_extent_readpage() local
2848 mirror = io_bio->mirror_num; in end_bio_extent_readpage()
2852 start, end, mirror); in end_bio_extent_readpage()
2855 offset, page, start, end, mirror); in end_bio_extent_readpage()
2882 start, end, mirror, in end_bio_extent_readpage()
2893 eb->read_mirror = mirror; in end_bio_extent_readpage()
Dscrub.c1238 int nstripes, int mirror, in scrub_stripe_index_and_offset() argument
1260 *stripe_index = mirror; in scrub_stripe_index_and_offset()
Ddisk-io.c528 int mirror) in btrfs_validate_metadata_buffer() argument
555 eb->read_mirror = mirror; in btrfs_validate_metadata_buffer()
Dctree.h2983 struct page *page, u64 start, u64 end, int mirror);
Dinode.c2896 struct page *page, u64 start, u64 end, int mirror) in btrfs_verify_data_csum() argument