]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: don't shut down the filesystem for media failures beyond end of log
authorDarrick J. Wong <djwong@kernel.org>
Tue, 17 Dec 2024 21:43:06 +0000 (13:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Feb 2025 09:02:21 +0000 (10:02 +0100)
commit19a269e8512da1ed06c48dca413234df80f43804
tree3515f726560710cfb33ca0aa5804d39061f640b8
parenteccc2dfbf7f31dca73ace0a1ab3f6d1a170e7104
xfs: don't shut down the filesystem for media failures beyond end of log

commit f4ed93037966aea07ae6b10ab208976783d24e2e upstream.

If the filesystem has an external log device on pmem and the pmem
reports a media error beyond the end of the log area, don't shut down
the filesystem because we don't use that space.

Cc: <stable@vger.kernel.org> # v6.0
Fixes: 6f643c57d57c56 ("xfs: implement ->notify_failure() for XFS")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_notify_failure.c