xfs: drop IDONTCACHE on inodes when we mark them sick
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)
commit7975e465af6b46e9d0eaf94f764922dc92b28d9c
treed1e710e2217d64fc9ec0e39605f80854ccb1295f
parent255794c7ed7adb914e831f5e4905d783d31378d2
xfs: drop IDONTCACHE on inodes when we mark them sick

When we decide to mark an inode sick, clear the DONTCACHE flag so that
the incore inode will be kept around until memory pressure forces it out
of memory.  This increases the chances that the sick status will be
caught by someone compiling a health report later on.

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_health.c