* [PATCH 0/2] NFS: two simple cleanup patches
@ 2015-08-25 16:13 Peng Tao
2015-08-25 16:13 ` [PATCH 1/2] nfs42: decode_layoutstats does not need res parameter Peng Tao
2015-08-25 16:13 ` [PATCH 2/2] nfs42: remove unused declaration Peng Tao
0 siblings, 2 replies; 3+ messages in thread
From: Peng Tao @ 2015-08-25 16:13 UTC (permalink / raw)
To: linux-nfs; +Cc: Anna Schumaker, Trond Myklebust, Peng Tao
Hi Trond,
These are extracted from the CLONE patch series.
Just so that they don't have to wait on CLONE patches.
Cheers,
Tao
Peng Tao (2):
nfs42: decode_layoutstats does not need res parameter
nfs42: remove unused declaration
fs/nfs/nfs42.h | 2 --
fs/nfs/nfs42xdr.c | 5 ++---
2 files changed, 2 insertions(+), 5 deletions(-)
--
1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] nfs42: decode_layoutstats does not need res parameter
2015-08-25 16:13 [PATCH 0/2] NFS: two simple cleanup patches Peng Tao
@ 2015-08-25 16:13 ` Peng Tao
2015-08-25 16:13 ` [PATCH 2/2] nfs42: remove unused declaration Peng Tao
1 sibling, 0 replies; 3+ messages in thread
From: Peng Tao @ 2015-08-25 16:13 UTC (permalink / raw)
To: linux-nfs; +Cc: Anna Schumaker, Trond Myklebust, Peng Tao
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
---
fs/nfs/nfs42xdr.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/fs/nfs/nfs42xdr.c b/fs/nfs/nfs42xdr.c
index a6bd27d..0eb29e1 100644
--- a/fs/nfs/nfs42xdr.c
+++ b/fs/nfs/nfs42xdr.c
@@ -238,8 +238,7 @@ out_overflow:
return -EIO;
}
-static int decode_layoutstats(struct xdr_stream *xdr,
- struct nfs42_layoutstat_res *res)
+static int decode_layoutstats(struct xdr_stream *xdr)
{
return decode_op_hdr(xdr, OP_LAYOUTSTATS);
}
@@ -343,7 +342,7 @@ static int nfs4_xdr_dec_layoutstats(struct rpc_rqst *rqstp,
goto out;
WARN_ON(res->num_dev > PNFS_LAYOUTSTATS_MAXDEV);
for (i = 0; i < res->num_dev; i++) {
- status = decode_layoutstats(xdr, res);
+ status = decode_layoutstats(xdr);
if (status)
goto out;
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] nfs42: remove unused declaration
2015-08-25 16:13 [PATCH 0/2] NFS: two simple cleanup patches Peng Tao
2015-08-25 16:13 ` [PATCH 1/2] nfs42: decode_layoutstats does not need res parameter Peng Tao
@ 2015-08-25 16:13 ` Peng Tao
1 sibling, 0 replies; 3+ messages in thread
From: Peng Tao @ 2015-08-25 16:13 UTC (permalink / raw)
To: linux-nfs; +Cc: Anna Schumaker, Trond Myklebust, Peng Tao
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Peng Tao <tao.peng@primarydata.com>
---
fs/nfs/nfs42.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/nfs/nfs42.h b/fs/nfs/nfs42.h
index ff66ae7..814c125 100644
--- a/fs/nfs/nfs42.h
+++ b/fs/nfs/nfs42.h
@@ -17,7 +17,5 @@ int nfs42_proc_deallocate(struct file *, loff_t, loff_t);
loff_t nfs42_proc_llseek(struct file *, loff_t, int);
int nfs42_proc_layoutstats_generic(struct nfs_server *,
struct nfs42_layoutstat_data *);
-/* nfs4.2xdr.h */
-extern struct rpc_procinfo nfs4_2_procedures[];
#endif /* __LINUX_FS_NFS_NFS4_2_H */
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-25 16:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-25 16:13 [PATCH 0/2] NFS: two simple cleanup patches Peng Tao
2015-08-25 16:13 ` [PATCH 1/2] nfs42: decode_layoutstats does not need res parameter Peng Tao
2015-08-25 16:13 ` [PATCH 2/2] nfs42: remove unused declaration Peng Tao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox