diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-13 10:43:37 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-13 10:43:37 -0400 |
commit | 16feb9fec0e1f74339bd6992130ceedb3aa9567e (patch) | |
tree | cc759c3d591fdd2915de4dcd08bc7baf4290f48f /fs/gfs2/incore.h | |
parent | 0bc0748dfbefacce9c6b67ab23f2c80133b598f7 (diff) | |
download | op-kernel-dev-16feb9fec0e1f74339bd6992130ceedb3aa9567e.zip op-kernel-dev-16feb9fec0e1f74339bd6992130ceedb3aa9567e.tar.gz |
[GFS2] Use atomic_t rather than kref in glock.c
Use atomic_t as the ref count in glocks rather than a kref.
This is another step towards using RCU for the glock hash.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index c68d392..89df68b 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h @@ -164,7 +164,7 @@ struct gfs2_glock { struct hlist_node gl_list; unsigned long gl_flags; /* GLF_... */ struct lm_lockname gl_name; - struct kref gl_ref; + atomic_t gl_ref; spinlock_t gl_spin; |