OSDN Git Service

NFS/flexfiles: Simplify nfs4_ff_layout_select_ds_fh()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 28 Feb 2019 15:34:13 +0000 (10:34 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 2 Mar 2019 03:37:38 +0000 (22:37 -0500)
commit749da527b3e7bff92cc76b907bc222ef2df6fcdc
tree0b01b02bbedf1fa5309f10e7ab2db3fec1f00bb2
parent76c6690522bb3e335ce1e201360df8776cab4d2c
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>
fs/nfs/flexfilelayout/flexfilelayout.c
fs/nfs/flexfilelayout/flexfilelayout.h
fs/nfs/flexfilelayout/flexfilelayoutdev.c