diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-12-09 18:24:18 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-12-09 20:26:58 -0500 |
commit | 5ba6a09e92342e40b63af1654da8b8bc8b5a83c6 (patch) | |
tree | 673856be0c6217c2de134285ebb2886cf266b370 | |
parent | 65990d1afbd2d6fc23c6ecbd6f1899aa760a024f (diff) |
pNFS/flexfiles: Remove a redundant parameter in ff_layout_encode_ioerr()
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
-rw-r--r-- | fs/nfs/flexfilelayout/flexfilelayout.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c b/fs/nfs/flexfilelayout/flexfilelayout.c index ef4c9d17d4a5..49954442173d 100644 --- a/fs/nfs/flexfilelayout/flexfilelayout.c +++ b/fs/nfs/flexfilelayout/flexfilelayout.c | |||
@@ -1946,8 +1946,7 @@ ff_layout_free_deviceid_node(struct nfs4_deviceid_node *d) | |||
1946 | id_node)); | 1946 | id_node)); |
1947 | } | 1947 | } |
1948 | 1948 | ||
1949 | static int ff_layout_encode_ioerr(struct nfs4_flexfile_layout *flo, | 1949 | static int ff_layout_encode_ioerr(struct xdr_stream *xdr, |
1950 | struct xdr_stream *xdr, | ||
1951 | const struct nfs4_layoutreturn_args *args, | 1950 | const struct nfs4_layoutreturn_args *args, |
1952 | const struct nfs4_flexfile_layoutreturn_args *ff_args) | 1951 | const struct nfs4_flexfile_layoutreturn_args *ff_args) |
1953 | { | 1952 | { |
@@ -2049,16 +2048,15 @@ ff_layout_encode_layoutreturn(struct xdr_stream *xdr, | |||
2049 | const struct nfs4_xdr_opaque_data *ff_opaque) | 2048 | const struct nfs4_xdr_opaque_data *ff_opaque) |
2050 | { | 2049 | { |
2051 | const struct nfs4_layoutreturn_args *args = voidargs; | 2050 | const struct nfs4_layoutreturn_args *args = voidargs; |
2052 | struct pnfs_layout_hdr *lo = args->layout; | 2051 | struct nfs4_flexfile_layoutreturn_args *ff_args = ff_opaque->data; |
2053 | struct nfs4_flexfile_layout *flo = FF_LAYOUT_FROM_HDR(lo); | ||
2054 | __be32 *start; | 2052 | __be32 *start; |
2055 | 2053 | ||
2056 | dprintk("%s: Begin\n", __func__); | 2054 | dprintk("%s: Begin\n", __func__); |
2057 | start = xdr_reserve_space(xdr, 4); | 2055 | start = xdr_reserve_space(xdr, 4); |
2058 | BUG_ON(!start); | 2056 | BUG_ON(!start); |
2059 | 2057 | ||
2060 | ff_layout_encode_ioerr(flo, xdr, args, ff_opaque->data); | 2058 | ff_layout_encode_ioerr(xdr, args, ff_args); |
2061 | ff_layout_encode_iostats_array(xdr, args, ff_opaque->data); | 2059 | ff_layout_encode_iostats_array(xdr, args, ff_args); |
2062 | 2060 | ||
2063 | *start = cpu_to_be32((xdr->p - start - 1) * 4); | 2061 | *start = cpu_to_be32((xdr->p - start - 1) * 4); |
2064 | dprintk("%s: Return\n", __func__); | 2062 | dprintk("%s: Return\n", __func__); |