hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/nfsd/xdr.h
....@@ -33,7 +33,7 @@
3333 struct nfsd_writeargs {
3434 svc_fh fh;
3535 __u32 offset;
36
- int len;
36
+ __u32 len;
3737 struct kvec first;
3838 };
3939
....@@ -82,27 +82,37 @@
8282 __be32 * buffer;
8383 };
8484
85
+struct nfsd_stat {
86
+ __be32 status;
87
+};
88
+
8589 struct nfsd_attrstat {
90
+ __be32 status;
8691 struct svc_fh fh;
8792 struct kstat stat;
8893 };
8994
9095 struct nfsd_diropres {
96
+ __be32 status;
9197 struct svc_fh fh;
9298 struct kstat stat;
9399 };
94100
95101 struct nfsd_readlinkres {
102
+ __be32 status;
96103 int len;
97104 };
98105
99106 struct nfsd_readres {
107
+ __be32 status;
100108 struct svc_fh fh;
101109 unsigned long count;
102110 struct kstat stat;
103111 };
104112
105113 struct nfsd_readdirres {
114
+ __be32 status;
115
+
106116 int count;
107117
108118 struct readdir_cd common;
....@@ -112,6 +122,7 @@
112122 };
113123
114124 struct nfsd_statfsres {
125
+ __be32 status;
115126 struct kstatfs stats;
116127 };
117128
....@@ -146,6 +157,7 @@
146157 int nfssvc_decode_symlinkargs(struct svc_rqst *, __be32 *);
147158 int nfssvc_decode_readdirargs(struct svc_rqst *, __be32 *);
148159 int nfssvc_encode_void(struct svc_rqst *, __be32 *);
160
+int nfssvc_encode_stat(struct svc_rqst *, __be32 *);
149161 int nfssvc_encode_attrstat(struct svc_rqst *, __be32 *);
150162 int nfssvc_encode_diropres(struct svc_rqst *, __be32 *);
151163 int nfssvc_encode_readlinkres(struct svc_rqst *, __be32 *);
....@@ -156,7 +168,9 @@
156168 int nfssvc_encode_entry(void *, const char *name,
157169 int namlen, loff_t offset, u64 ino, unsigned int);
158170
159
-void nfssvc_release_fhandle(struct svc_rqst *);
171
+void nfssvc_release_attrstat(struct svc_rqst *rqstp);
172
+void nfssvc_release_diropres(struct svc_rqst *rqstp);
173
+void nfssvc_release_readres(struct svc_rqst *rqstp);
160174
161175 /* Helper functions for NFSv2 ACL code */
162176 __be32 *nfs2svc_encode_fattr(struct svc_rqst *rqstp, __be32 *p, struct svc_fh *fhp, struct kstat *stat);