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>
Showing
- fs/gfs2/glock.c 15 additions, 17 deletionsfs/gfs2/glock.c
- fs/gfs2/glops.c 20 additions, 18 deletionsfs/gfs2/glops.c
- fs/gfs2/incore.h 5 additions, 4 deletionsfs/gfs2/incore.h
- fs/gfs2/lock_dlm.c 5 additions, 5 deletionsfs/gfs2/lock_dlm.c
- fs/gfs2/lops.c 3 additions, 3 deletionsfs/gfs2/lops.c
- fs/gfs2/meta_io.c 3 additions, 3 deletionsfs/gfs2/meta_io.c
- fs/gfs2/meta_io.h 1 addition, 1 deletionfs/gfs2/meta_io.h
- fs/gfs2/quota.c 11 additions, 11 deletionsfs/gfs2/quota.c
- fs/gfs2/rgrp.c 1 addition, 1 deletionfs/gfs2/rgrp.c
- fs/gfs2/trace_gfs2.h 9 additions, 9 deletionsfs/gfs2/trace_gfs2.h
- fs/gfs2/trans.c 2 additions, 2 deletionsfs/gfs2/trans.c
Loading
Please register or sign in to comment