gfs2: Don't release and reacquire local statfs bh
authorBob Peterson <rpeterso@redhat.com>
Wed, 30 Jun 2021 16:46:17 +0000 (11:46 -0500)
committerBob Peterson <rpeterso@redhat.com>
Fri, 20 Aug 2021 14:03:46 +0000 (09:03 -0500)
commit70c11ba8f2dc6ff216477a8dd7ec0ad8568c410e
treecb1d486d5176ceeee3b8e27c2373641b1703f043
parenta28dc123fa66ba7f3eca7cffc4b01d96bfd35c27
gfs2: Don't release and reacquire local statfs bh

Before this patch, several functions in gfs2 related to the updating
of the statfs file used a newly acquired/read buffer_head for the
local statfs file. This is completely unnecessary, because other nodes
should never update it. Recreating the buffer is a waste of time.

This patch allows gfs2 to read in the local statefs buffer_head at
mount time and keep it around until unmount time.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/aops.c
fs/gfs2/incore.h
fs/gfs2/ops_fstype.c
fs/gfs2/super.c
fs/gfs2/super.h