From: Bob Peterson Date: Wed, 16 Sep 2020 10:00:14 -0500 Subject: [Cluster-devel] [GFS2 PATCH 0/6] Refactor gfs2_evict_inode (V2) Message-ID: <20200916150020.36582-1-rpeterso@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Function gfs2_evict_inode is very large and messy. This patch set is an attempt to simplify the function and make it more understandable. This will make it easier to maintain. This is the second version of this patch set, and it implements the suggestions Andreas made. It also now adds a patch to fix a bug in which unmount causes a kernel panic when system inode glocks still have pages in memory. Bob Peterson (6): gfs2: switch variable error to ret in gfs2_evict_inode gfs2: factor evict_deleted_inode out of gfs2_evict_inode gfs2: further simplify gfs2_evict_inode with new func evict_should_delete gfs2: factor out evict code related to dinodes we are not deleting gfs2: simplify the logic in gfs2_evict_inode gfs2: special evict process for system inodes fs/gfs2/ops_fstype.c | 15 ++- fs/gfs2/super.c | 244 ++++++++++++++++++++++++++++--------------- 2 files changed, 170 insertions(+), 89 deletions(-) -- 2.26.2