Skip to content

Commit c1f6b1a

Browse files
committed
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: 80e4e12 ("xfs: scrub inodes") Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
1 parent c2f0921 commit c1f6b1a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/xfs/scrub/inode.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ xchk_inode_flags(
121121
goto bad;
122122

123123
/* rt flags require rt device */
124-
if ((flags & (XFS_DIFLAG_REALTIME | XFS_DIFLAG_RTINHERIT)) &&
125-
!mp->m_rtdev_targp)
124+
if ((flags & XFS_DIFLAG_REALTIME) && !mp->m_rtdev_targp)
126125
goto bad;
127126

128127
/* new rt bitmap flag only valid for rbmino */

0 commit comments

Comments
 (0)