GFS2: Introduce helper for clearing gl_object
authorBob Peterson <rpeterso@redhat.com>
Tue, 18 Jul 2017 16:35:04 +0000 (11:35 -0500)
committerBob Peterson <rpeterso@redhat.com>
Fri, 21 Jul 2017 13:20:05 +0000 (08:20 -0500)
commitdf3d87bde121213560fde0edb71bc46f0f75692c
tree3efaafb3a13066a1c3d9421721b59cfabf5688fc
parente477b24b507998bc6568316a2e034025960d2404
GFS2: Introduce helper for clearing gl_object

This patch introduces a new helper function in glock.h that
clears gl_object, with an added integrity check. An additional
integrity check has been added to glock_set_object, plus comments.
This is step 1 in a series to ensure gl_object integrity.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glock.h
fs/gfs2/inode.c
fs/gfs2/super.c