]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: don't initialize statfs_change inodes in spectator mode
authorBob Peterson <rpeterso@redhat.com>
Wed, 28 Oct 2020 17:03:23 +0000 (12:03 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 29 Oct 2020 21:16:46 +0000 (22:16 +0100)
commit9d9690f93251cac1a7fda59d4a3d880032a083df
tree1deb296c10dd721390c1d05fbbe692f897ee9847
parent3bd92df5f3a50a9fa8e81d83363e1f8aebfd1a6b
gfs2: don't initialize statfs_change inodes in spectator mode

Before commit 747f335aa666, the local statfs_changeX inode was never
initialized for spectator mounts. However, it still checks for
spectator mounts when unmounting everything. There's no good reason to
lookup the statfs_changeX files because spectators cannot perform recovery.
It still, however, needs the master statfs file for statfs calls.
This patch adds the check for spectator mounts to init_statfs.

Fixes: 747f335aa666 ("gfs2: lookup local statfs inodes prior to journal recovery")
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/ops_fstype.c