From: Darrick J. Wong Date: Tue, 3 Nov 2020 01:14:07 +0000 (-0800) Subject: xfs: fix scrub flagging rtinherit even if there is no rt device X-Git-Tag: v5.10.7~1123^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1f6b1ac00756a7108e5fcb849a2f8230c0b62a5;p=platform%2Fkernel%2Flinux-rpi.git xfs: fix scrub flagging rtinherit even if there is no rt device 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 Reviewed-by: Christoph Hellwig --- diff --git a/fs/xfs/scrub/inode.c b/fs/xfs/scrub/inode.c index 3aa85b6..bb25ff1 100644 --- a/fs/xfs/scrub/inode.c +++ b/fs/xfs/scrub/inode.c @@ -121,8 +121,7 @@ xchk_inode_flags( goto bad; /* rt flags require rt device */ - if ((flags & (XFS_DIFLAG_REALTIME | XFS_DIFLAG_RTINHERIT)) && - !mp->m_rtdev_targp) + if ((flags & XFS_DIFLAG_REALTIME) && !mp->m_rtdev_targp) goto bad; /* new rt bitmap flag only valid for rbmino */