diff options
Diffstat (limited to 'fs/nfs/flexfilelayout/flexfilelayoutdev.c')
-rw-r--r-- | fs/nfs/flexfilelayout/flexfilelayoutdev.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayoutdev.c b/fs/nfs/flexfilelayout/flexfilelayoutdev.c index 7fd92226e4b9..3a2419313fe9 100644 --- a/fs/nfs/flexfilelayout/flexfilelayoutdev.c +++ b/fs/nfs/flexfilelayout/flexfilelayoutdev.c | |||
@@ -351,21 +351,10 @@ ff_layout_get_mirror_cred(struct nfs4_ff_layout_mirror *mirror, u32 iomode) | |||
351 | } | 351 | } |
352 | 352 | ||
353 | struct nfs_fh * | 353 | struct nfs_fh * |
354 | nfs4_ff_layout_select_ds_fh(struct pnfs_layout_segment *lseg, u32 mirror_idx) | 354 | nfs4_ff_layout_select_ds_fh(struct nfs4_ff_layout_mirror *mirror) |
355 | { | 355 | { |
356 | struct nfs4_ff_layout_mirror *mirror = FF_LAYOUT_COMP(lseg, mirror_idx); | ||
357 | struct nfs_fh *fh = NULL; | ||
358 | |||
359 | if (!ff_layout_mirror_valid(lseg, mirror, false)) { | ||
360 | pr_err_ratelimited("NFS: %s: No data server for mirror offset index %d\n", | ||
361 | __func__, mirror_idx); | ||
362 | goto out; | ||
363 | } | ||
364 | |||
365 | /* FIXME: For now assume there is only 1 version available for the DS */ | 356 | /* FIXME: For now assume there is only 1 version available for the DS */ |
366 | fh = &mirror->fh_versions[0]; | 357 | return &mirror->fh_versions[0]; |
367 | out: | ||
368 | return fh; | ||
369 | } | 358 | } |
370 | 359 | ||
371 | int | 360 | int |