nfs3xdr.c (57b8628bb0ac4e47c806e45c5bbd89282e93869b) | nfs3xdr.c (0b7c01533aa9f4a228d07d2768d084acb3a387bc) |
---|---|
1/* 2 * linux/fs/nfs/nfs3xdr.c 3 * 4 * XDR functions to encode/decode NFSv3 RPC arguments and results. 5 * 6 * Copyright (C) 1996, 1997 Olaf Kirch 7 */ 8 --- 1273 unchanged lines hidden (view full) --- 1282 * 1283 * struct COMMIT3args { 1284 * nfs_fh3 file; 1285 * offset3 offset; 1286 * count3 count; 1287 * }; 1288 */ 1289static void encode_commit3args(struct xdr_stream *xdr, | 1/* 2 * linux/fs/nfs/nfs3xdr.c 3 * 4 * XDR functions to encode/decode NFSv3 RPC arguments and results. 5 * 6 * Copyright (C) 1996, 1997 Olaf Kirch 7 */ 8 --- 1273 unchanged lines hidden (view full) --- 1282 * 1283 * struct COMMIT3args { 1284 * nfs_fh3 file; 1285 * offset3 offset; 1286 * count3 count; 1287 * }; 1288 */ 1289static void encode_commit3args(struct xdr_stream *xdr, |
1290 const struct nfs_writeargs *args) | 1290 const struct nfs_commitargs *args) |
1291{ 1292 __be32 *p; 1293 1294 encode_nfs_fh3(xdr, args->fh); 1295 1296 p = xdr_reserve_space(xdr, 8 + 4); 1297 p = xdr_encode_hyper(p, args->offset); 1298 *p = cpu_to_be32(args->count); 1299} 1300 1301static void nfs3_xdr_enc_commit3args(struct rpc_rqst *req, 1302 struct xdr_stream *xdr, | 1291{ 1292 __be32 *p; 1293 1294 encode_nfs_fh3(xdr, args->fh); 1295 1296 p = xdr_reserve_space(xdr, 8 + 4); 1297 p = xdr_encode_hyper(p, args->offset); 1298 *p = cpu_to_be32(args->count); 1299} 1300 1301static void nfs3_xdr_enc_commit3args(struct rpc_rqst *req, 1302 struct xdr_stream *xdr, |
1303 const struct nfs_writeargs *args) | 1303 const struct nfs_commitargs *args) |
1304{ 1305 encode_commit3args(xdr, args); 1306} 1307 1308#ifdef CONFIG_NFS_V3_ACL 1309 1310static void nfs3_xdr_enc_getacl3args(struct rpc_rqst *req, 1311 struct xdr_stream *xdr, --- 1002 unchanged lines hidden (view full) --- 2314 * case NFS3_OK: 2315 * COMMIT3resok resok; 2316 * default: 2317 * COMMIT3resfail resfail; 2318 * }; 2319 */ 2320static int nfs3_xdr_dec_commit3res(struct rpc_rqst *req, 2321 struct xdr_stream *xdr, | 1304{ 1305 encode_commit3args(xdr, args); 1306} 1307 1308#ifdef CONFIG_NFS_V3_ACL 1309 1310static void nfs3_xdr_enc_getacl3args(struct rpc_rqst *req, 1311 struct xdr_stream *xdr, --- 1002 unchanged lines hidden (view full) --- 2314 * case NFS3_OK: 2315 * COMMIT3resok resok; 2316 * default: 2317 * COMMIT3resfail resfail; 2318 * }; 2319 */ 2320static int nfs3_xdr_dec_commit3res(struct rpc_rqst *req, 2321 struct xdr_stream *xdr, |
2322 struct nfs_writeres *result) | 2322 struct nfs_commitres *result) |
2323{ 2324 enum nfs_stat status; 2325 int error; 2326 2327 error = decode_nfsstat3(xdr, &status); 2328 if (unlikely(error)) 2329 goto out; 2330 error = decode_wcc_data(xdr, result->fattr); --- 168 unchanged lines hidden --- | 2323{ 2324 enum nfs_stat status; 2325 int error; 2326 2327 error = decode_nfsstat3(xdr, &status); 2328 if (unlikely(error)) 2329 goto out; 2330 error = decode_wcc_data(xdr, result->fattr); --- 168 unchanged lines hidden --- |