]> 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)
commitfc7f015ba9963f809f70a37266203d470d6dfe9c
treec96f76569f65d182f60486d7f8ac5bfb5d23a3f3
parent37860bcf9f1e5302609862e88bfa710346ee4563
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