]> asedeno.scripts.mit.edu Git - linux.git/commit
GFS2: Release iopen glock in gfs2_create_inode error cases
authorBob Peterson <rpeterso@redhat.com>
Fri, 4 Dec 2015 16:19:14 +0000 (10:19 -0600)
committerBob Peterson <rpeterso@redhat.com>
Fri, 18 Dec 2015 16:57:21 +0000 (10:57 -0600)
commit783013c0f5c7263a31703b15aeebbac279b4d4fe
treef30364b378ba779561cd3e74e2f6d7f912498c35
parentee530beafeca9826b2086eab053312b182c09669
GFS2: Release iopen glock in gfs2_create_inode error cases

Some error cases in gfs2_create_inode were not unlocking the iopen
glock, getting the reference count off. This adds the proper unlock.
The error logic in function gfs2_create_inode was also convoluted,
so this patch simplifies it. It also takes care of a bug in
which gfs2_qa_delete() was not called in an error case.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/inode.c