summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/incore.h
diff options
context:
space:
mode:
authorSteven Whitehouse2006-09-13 16:43:37 +0200
committerSteven Whitehouse2006-09-13 16:43:37 +0200
commit16feb9fec0e1f74339bd6992130ceedb3aa9567e (patch)
treecc759c3d591fdd2915de4dcd08bc7baf4290f48f /fs/gfs2/incore.h
parentMerge branch 'master' into gfs2 (diff)
downloadkernel-qcow2-linux-16feb9fec0e1f74339bd6992130ceedb3aa9567e.tar.gz
kernel-qcow2-linux-16feb9fec0e1f74339bd6992130ceedb3aa9567e.tar.xz
kernel-qcow2-linux-16feb9fec0e1f74339bd6992130ceedb3aa9567e.zip
[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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h
index c68d39271ede..89df68b32fc6 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;