]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Eliminate ip->i_gh
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 25 Aug 2021 19:54:18 +0000 (21:54 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 20 Oct 2021 17:33:09 +0000 (19:33 +0200)
commitb60cc0dda5d5d2fe0fbba2c65b829f9362ab7d7d
treefc7e357953f9c22dd8235a85b061c3e8107975ff
parentb2b5d87cb49f34d6f7c527cc57dfd44906be1955
gfs2: Eliminate ip->i_gh

Now that gfs2_file_buffered_write is the only remaining user of
ip->i_gh, we can move the glock holder to the stack (or rather, use the
one we already have on the stack); there is no need for keeping the
holder in the inode anymore.

This is slightly complicated by the fact that we're using ip->i_gh for
the statfs inode in gfs2_file_buffered_write as well.  Writing to the
statfs inode isn't very common, so allocate the statfs holder
dynamically when needed.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/file.c
fs/gfs2/incore.h