]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite118fb4d770929efd2620a87e196dca5233bdd43
treecb1d486d5176ceeee3b8e27c2373641b1703f043
parentb709692a64b4072ea59fdda073bb634b87b0398f
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