]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf0506e3a8a78d43376863e6ff532b808c77e0024
treee10c164fe1b0b37d757ec66598326908f5fe5964
parent38958623f06152297525af8ea96ed6c876430da3
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