]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - fs/gfs2/inode.c
gfs2: Clean up inode initialization and teardown
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 24 Jan 2020 13:14:46 +0000 (14:14 +0100)
committerBob Peterson <rpeterso@redhat.com>
Fri, 27 Mar 2020 19:08:04 +0000 (14:08 -0500)
commit40e7e86ef16550c7371939c7025041b7740f252e
tree5310932b9ee7244945e6d35e0634aaa47fbd5cdc
parent490031281d5a33fbdab59e98e165c2cd30fc841b
gfs2: Clean up inode initialization and teardown

When allocating a new inode, mark the iopen glock holder as uninitialized to
make sure gfs2_evict_inode won't fail after an incomplete create or lookup.  In
gfs2_evict_inode, allow the inode glock to be NULL and remove the duplicate
iopen glock teardown code.  In gfs2_inode_lookup, don't tear down things that
gfs2_evict_inode will already tear down.

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