]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: fix scrub flagging rtinherit even if there is no rt device
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 3 Nov 2020 01:14:07 +0000 (17:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:18:43 +0000 (19:18 +0100)
commitcba36f708a8a23a6e51dd2ddf70ab8449c692c15
treef714ce9e07714a4e037eb04d2557dde3b17e9ec2
parent955113c89ca9d49b8eef9f46f248397d1a1e55b1
xfs: fix scrub flagging rtinherit even if there is no rt device

[ Upstream commit c1f6b1ac00756a7108e5fcb849a2f8230c0b62a5 ]

The kernel has always allowed directories to have the rtinherit flag
set, even if there is no rt device, so this check is wrong.

Fixes: 80e4e1268802 ("xfs: scrub inodes")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/xfs/scrub/inode.c