xfs: selectively keep sick inodes in memory
authorDarrick J. Wong <djwong@kernel.org>
Mon, 7 Jun 2021 16:34:50 +0000 (09:34 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 8 Jun 2021 16:30:20 +0000 (09:30 -0700)
commit9492750a8b18f02a8dec2aab594c59aabe2e4d0d
treee10c164fe1b0b37d757ec66598326908f5fe5964
parent7975e465af6b46e9d0eaf94f764922dc92b28d9c
xfs: selectively keep sick inodes in memory

It's important that the filesystem retain its memory of sick inodes for
a little while after problems are found so that reports can be collected
about what was wrong.  Don't let inode reclamation free sick inodes
unless we're unmounting or the fs already went down.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
fs/xfs/xfs_icache.c