diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-02-28 16:38:41 +0100 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-03-02 04:37:38 +0100 |
commit | 561d6f8aaffcc9d346e452361a6d80cb8461799d (patch) | |
tree | b4c2cb0af15b5957a96b11f829ca7bfc7701402e /fs/nfs/flexfilelayout/flexfilelayout.h | |
parent | NFS/flexfiles: Simplify nfs4_ff_layout_select_ds_fh() (diff) | |
download | linux-561d6f8aaffcc9d346e452361a6d80cb8461799d.tar.xz linux-561d6f8aaffcc9d346e452361a6d80cb8461799d.zip |
NFS/flexfiles: Simplify nfs4_ff_find_or_create_ds_client()
Pass in a pointer to the mirror rather than forcing another
array access.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/flexfilelayout/flexfilelayout.h')
-rw-r--r-- | fs/nfs/flexfilelayout/flexfilelayout.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayout.h b/fs/nfs/flexfilelayout/flexfilelayout.h index 935cba942834..2bda4baa655a 100644 --- a/fs/nfs/flexfilelayout/flexfilelayout.h +++ b/fs/nfs/flexfilelayout/flexfilelayout.h @@ -215,8 +215,7 @@ nfs4_ff_layout_prepare_ds(struct pnfs_layout_segment *lseg, bool fail_return); struct rpc_clnt * -nfs4_ff_find_or_create_ds_client(struct pnfs_layout_segment *lseg, - u32 ds_idx, +nfs4_ff_find_or_create_ds_client(struct nfs4_ff_layout_mirror *mirror, struct nfs_client *ds_clp, struct inode *inode); const struct cred *ff_layout_get_ds_cred(struct pnfs_layout_segment *lseg, |