diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2020-01-24 14:14:46 +0100 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2020-03-27 14:08:04 -0500 |
commit | 40e7e86ef16550c7371939c7025041b7740f252e (patch) | |
tree | 5310932b9ee7244945e6d35e0634aaa47fbd5cdc /fs/gfs2/glock.c | |
parent | 490031281d5a33fbdab59e98e165c2cd30fc841b (diff) | |
download | linux-40e7e86ef16550c7371939c7025041b7740f252e.tar.gz linux-40e7e86ef16550c7371939c7025041b7740f252e.tar.bz2 linux-40e7e86ef16550c7371939c7025041b7740f252e.zip |
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>
Diffstat (limited to 'fs/gfs2/glock.c')
0 files changed, 0 insertions, 0 deletions