]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
gfs2: Eliminate ip->i_gh
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 14 Apr 2022 22:28:46 +0000 (06:28 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 22 Jun 2022 12:22:31 +0000 (14:22 +0200)
commita58fd1192f6556bec25c6e73cb133898c566536a
tree7f0c6826e4732aa0d9e850676571221857390139
parent694d1b21a28594c1a5196a6e167eb554130478dd
gfs2: Eliminate ip->i_gh

BugLink: https://bugs.launchpad.net/bugs/1976135
commit 1b223f7065bc7d89c4677c27381817cc95b117a8 upstream

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>
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/gfs2/file.c
fs/gfs2/incore.h