aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-01-17 22:04:25 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-01-31 19:28:06 -0500
commit7ba127ab9f5f83991df4142d5bc4fc319cd77a54 (patch)
treea627905cdb6a4be7aa3a8b09df258bc524383524 /fs/nfs/nfs4_fs.h
parent9d12b216aa87f68c96f6dd8eb5d2d0ccc9989b1c (diff)
NFSv4: Move contents of struct rpc_sequence into struct nfs_seqid_counter
Clean up. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r--fs/nfs/nfs4_fs.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index 0924494e10a2..c4025ae1d071 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -53,21 +53,13 @@ struct nfs4_minor_version_ops {
53 const struct nfs4_state_maintenance_ops *state_renewal_ops; 53 const struct nfs4_state_maintenance_ops *state_renewal_ops;
54}; 54};
55 55
56/*
57 * struct rpc_sequence ensures that RPC calls are sent in the exact
58 * order that they appear on the list.
59 */
60struct rpc_sequence {
61 struct rpc_wait_queue wait; /* RPC call delay queue */
62 spinlock_t lock; /* Protects the list */
63 struct list_head list; /* Defines sequence of RPC calls */
64};
65
66#define NFS_SEQID_CONFIRMED 1 56#define NFS_SEQID_CONFIRMED 1
67struct nfs_seqid_counter { 57struct nfs_seqid_counter {
68 struct rpc_sequence *sequence;
69 int flags; 58 int flags;
70 u32 counter; 59 u32 counter;
60 spinlock_t lock; /* Protects the list */
61 struct list_head list; /* Defines sequence of RPC calls */
62 struct rpc_wait_queue wait; /* RPC call delay queue */
71}; 63};
72 64
73struct nfs_seqid { 65struct nfs_seqid {
@@ -99,7 +91,6 @@ struct nfs4_state_owner {
99 unsigned long so_flags; 91 unsigned long so_flags;
100 struct list_head so_states; 92 struct list_head so_states;
101 struct nfs_seqid_counter so_seqid; 93 struct nfs_seqid_counter so_seqid;
102 struct rpc_sequence so_sequence;
103 int so_owner_id; 94 int so_owner_id;
104}; 95};
105 96
@@ -142,7 +133,6 @@ struct nfs4_lock_state {
142 int ls_flags; 133 int ls_flags;
143 int ls_id; 134 int ls_id;
144 struct nfs_seqid_counter ls_seqid; 135 struct nfs_seqid_counter ls_seqid;
145 struct rpc_sequence ls_sequence;
146 nfs4_stateid ls_stateid; 136 nfs4_stateid ls_stateid;
147 atomic_t ls_count; 137 atomic_t ls_count;
148 struct nfs4_lock_owner ls_owner; 138 struct nfs4_lock_owner ls_owner;