mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
NFS/flexfiles: Simplify nfs4_ff_layout_select_ds_fh()
Pass in a pointer to the mirror rather than having to retrieve it from the array and then verify the resulting pointer. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
This commit is contained in:
parent
76c6690522
commit
749da527b3
3 changed files with 5 additions and 16 deletions
|
@ -1795,7 +1795,7 @@ ff_layout_read_pagelist(struct nfs_pgio_header *hdr)
|
|||
hdr->pgio_done_cb = ff_layout_read_done_cb;
|
||||
refcount_inc(&ds->ds_clp->cl_count);
|
||||
hdr->ds_clp = ds->ds_clp;
|
||||
fh = nfs4_ff_layout_select_ds_fh(lseg, idx);
|
||||
fh = nfs4_ff_layout_select_ds_fh(mirror);
|
||||
if (fh)
|
||||
hdr->args.fh = fh;
|
||||
|
||||
|
@ -1863,7 +1863,7 @@ ff_layout_write_pagelist(struct nfs_pgio_header *hdr, int sync)
|
|||
refcount_inc(&ds->ds_clp->cl_count);
|
||||
hdr->ds_clp = ds->ds_clp;
|
||||
hdr->ds_commit_idx = idx;
|
||||
fh = nfs4_ff_layout_select_ds_fh(lseg, idx);
|
||||
fh = nfs4_ff_layout_select_ds_fh(mirror);
|
||||
if (fh)
|
||||
hdr->args.fh = fh;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue