diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-10-06 17:53:20 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-12-03 15:37:45 -0500 |
commit | 422c93c881a1689b5ad99e231a65ee5c51d3b72a (patch) | |
tree | 330256d63d51e73cf50acfea47ef733b5d12e750 /fs/nfs/nfs42xdr.c | |
parent | 2f8220c16ee0055f7ea541782651b30398752ee4 (diff) | |
download | linux-422c93c881a1689b5ad99e231a65ee5c51d3b72a.tar.gz linux-422c93c881a1689b5ad99e231a65ee5c51d3b72a.tar.bz2 linux-422c93c881a1689b5ad99e231a65ee5c51d3b72a.zip |
pNFS/flexfiles: Minor refactoring before adding iostats to layoutreturn
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs/nfs42xdr.c')
-rw-r--r-- | fs/nfs/nfs42xdr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/nfs/nfs42xdr.c b/fs/nfs/nfs42xdr.c index 8b2605882a20..6c7296454bbc 100644 --- a/fs/nfs/nfs42xdr.c +++ b/fs/nfs/nfs42xdr.c @@ -181,8 +181,9 @@ static void encode_layoutstats(struct xdr_stream *xdr, NFS4_DEVICEID4_SIZE); /* Encode layoutupdate4 */ *p++ = cpu_to_be32(devinfo->layout_type); - if (devinfo->layoutstats_encode != NULL) - devinfo->layoutstats_encode(xdr, args, devinfo); + if (devinfo->ld_private.ops) + devinfo->ld_private.ops->encode(xdr, args, + &devinfo->ld_private); else encode_uint32(xdr, 0); } |