]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 10 Dec 2020 11:06:15 +0000 (12:06 +0100)
commit4cf624d7d488d63f496d1c5acfb0fccdc1635cc5
treed5c0100c02a4f03f8f3d441c5100ecd6d18b665e
parent8cc2495600e068eec141fa458308e8f889841536
xfs: fix scrub flagging rtinherit even if there is no rt device

BugLink: https://bugs.launchpad.net/bugs/1905618
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/xfs/scrub/inode.c