diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-01-27 10:22:49 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-02-17 18:38:52 -0500 |
commit | 03cfb42025a16dc45195dbdd6d368daaa8367429 (patch) | |
tree | 5c1fbae03c905fb22b40f53d04e7616e413a0b3d /fs/nfsd/xdr4.h | |
parent | de5b8e8e047534aac6bc9803f96e7257436aef9c (diff) |
NFSD: Clean up the test_stateid function
When I initially wrote it, I didn't understand how lists worked so I
wrote something that didn't use them. I think making a list of stateids
to test is a more straightforward implementation, especially compared to
especially compared to decoding stateids while simultaneously encoding
a reply to the client.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/xdr4.h')
-rw-r--r-- | fs/nfsd/xdr4.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/nfsd/xdr4.h b/fs/nfsd/xdr4.h index 4949832fd74a..7110a082275f 100644 --- a/fs/nfsd/xdr4.h +++ b/fs/nfsd/xdr4.h | |||
@@ -356,10 +356,15 @@ struct nfsd4_saved_compoundargs { | |||
356 | struct page **pagelist; | 356 | struct page **pagelist; |
357 | }; | 357 | }; |
358 | 358 | ||
359 | struct nfsd4_test_stateid_id { | ||
360 | __be32 ts_id_status; | ||
361 | stateid_t ts_id_stateid; | ||
362 | struct list_head ts_id_list; | ||
363 | }; | ||
364 | |||
359 | struct nfsd4_test_stateid { | 365 | struct nfsd4_test_stateid { |
360 | __be32 ts_num_ids; | 366 | __be32 ts_num_ids; |
361 | struct nfsd4_compoundargs *ts_saved_args; | 367 | struct list_head ts_stateid_list; |
362 | struct nfsd4_saved_compoundargs ts_savedp; | ||
363 | }; | 368 | }; |
364 | 369 | ||
365 | struct nfsd4_free_stateid { | 370 | struct nfsd4_free_stateid { |