]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - fs/gfs2/file.c
gfs2: Lock holder cleanup
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 17 Jun 2016 12:31:27 +0000 (07:31 -0500)
committerBob Peterson <rpeterso@redhat.com>
Mon, 27 Jun 2016 14:47:09 +0000 (09:47 -0500)
commit6df9f9a253c7dc9f8ed18bf89d762de350a31813
treea048f6fb09f9da9d1616b7f5a9c9254ce6f1d7ab
parentcda9dd4207aeb29d0aa2298085cc2d1ebcb87e04
gfs2: Lock holder cleanup

Make the code more readable by cleaning up the different ways of
initializing lock holders and checking for initialized lock holders:
mark lock holders as uninitialized by setting the holder's glock to NULL
(gfs2_holder_mark_uninitialized) instead of zeroing out the entire
object or using a separate flag.  Recognize initialized holders by their
non-NULL glock (gfs2_holder_initialized).  Don't zero out holder objects
which are immeditiately initialized via gfs2_holder_init or
gfs2_glock_nq_init.

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