]> 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)
commitab4db34bb2310523745df7069f03532d2b866e8e
treec96f76569f65d182f60486d7f8ac5bfb5d23a3f3
parentba760b503a1a69ec978855514bdd5151dfb00020
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