diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-17 22:04:25 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-01-31 19:28:07 -0500 |
commit | 48c22eb21071a3524f8b6e587371be35b5e86969 (patch) | |
tree | 68f2bb02f61b59c87f961cf7345aeb73e2662d4b /fs/nfs/nfs4_fs.h | |
parent | 7ba127ab9f5f83991df4142d5bc4fc319cd77a54 (diff) |
NFS: Move struct nfs_unique_id into struct nfs_seqid_counter
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r-- | fs/nfs/nfs4_fs.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h index c4025ae1d071..df3d02c3e8cb 100644 --- a/fs/nfs/nfs4_fs.h +++ b/fs/nfs/nfs4_fs.h | |||
@@ -53,8 +53,14 @@ 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 | struct nfs_unique_id { | ||
57 | struct rb_node rb_node; | ||
58 | __u64 id; | ||
59 | }; | ||
60 | |||
56 | #define NFS_SEQID_CONFIRMED 1 | 61 | #define NFS_SEQID_CONFIRMED 1 |
57 | struct nfs_seqid_counter { | 62 | struct nfs_seqid_counter { |
63 | int owner_id; | ||
58 | int flags; | 64 | int flags; |
59 | u32 counter; | 65 | u32 counter; |
60 | spinlock_t lock; /* Protects the list */ | 66 | spinlock_t lock; /* Protects the list */ |
@@ -91,7 +97,6 @@ struct nfs4_state_owner { | |||
91 | unsigned long so_flags; | 97 | unsigned long so_flags; |
92 | struct list_head so_states; | 98 | struct list_head so_states; |
93 | struct nfs_seqid_counter so_seqid; | 99 | struct nfs_seqid_counter so_seqid; |
94 | int so_owner_id; | ||
95 | }; | 100 | }; |
96 | 101 | ||
97 | enum { | 102 | enum { |
@@ -131,7 +136,6 @@ struct nfs4_lock_state { | |||
131 | struct nfs4_state * ls_state; /* Pointer to open state */ | 136 | struct nfs4_state * ls_state; /* Pointer to open state */ |
132 | #define NFS_LOCK_INITIALIZED 1 | 137 | #define NFS_LOCK_INITIALIZED 1 |
133 | int ls_flags; | 138 | int ls_flags; |
134 | int ls_id; | ||
135 | struct nfs_seqid_counter ls_seqid; | 139 | struct nfs_seqid_counter ls_seqid; |
136 | nfs4_stateid ls_stateid; | 140 | nfs4_stateid ls_stateid; |
137 | atomic_t ls_count; | 141 | atomic_t ls_count; |