]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: gfs2_create_inode: Keep glock across iput
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 30 Jun 2017 13:16:46 +0000 (08:16 -0500)
committerBob Peterson <rpeterso@redhat.com>
Wed, 5 Jul 2017 12:21:07 +0000 (07:21 -0500)
commite0b62e21b71bbe6d1015fe3e891cd9f50d04e660
treec96f76569f65d182f60486d7f8ac5bfb5d23a3f3
parent6b0c7440bcb4b7e5a64836132caf56bf19a33f6e
gfs2: gfs2_create_inode: Keep glock across iput

On failure, keep the inode glock across the final iput of the new inode
so that gfs2_evict_inode doesn't have to re-acquire the glock.  That
way, gfs2_evict_inode won't need to revalidate the block type.

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