GFS2: Move glock superblock pointer to field gl_name
authorBob Peterson <rpeterso@redhat.com>
Mon, 16 Mar 2015 16:52:05 +0000 (11:52 -0500)
committerBob Peterson <rpeterso@redhat.com>
Thu, 3 Sep 2015 18:33:09 +0000 (13:33 -0500)
commit15562c439d0a1850b71aa1c0d92d1f4fb9503c8d
tree172b76ac4411cc2f1e740dc054cf15954f5e6084
parent81648d043191e5f8f5870c5af6060b56383b139d
GFS2: Move glock superblock pointer to field gl_name

What uniquely identifies a glock in the glock hash table is not
gl_name, but gl_name and its superblock pointer. This patch makes
the gl_name field correspond to a unique glock identifier. That will
allow us to simplify hashing with a future patch, since the hash
algorithm can then take the gl_name and hash its components in one
operation.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/glock.c
fs/gfs2/glops.c
fs/gfs2/incore.h
fs/gfs2/lock_dlm.c
fs/gfs2/lops.c
fs/gfs2/meta_io.c
fs/gfs2/meta_io.h
fs/gfs2/quota.c
fs/gfs2/rgrp.c
fs/gfs2/trace_gfs2.h
fs/gfs2/trans.c