]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: scrub inode mode properly
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 28 Nov 2017 05:40:19 +0000 (21:40 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 30 Nov 2017 16:43:52 +0000 (08:43 -0800)
commit2450d1d497414b5a00a0b2992ca9ece4b4123aa1
tree53e0c6b8ae3e364dc1e4f91a151f20998bbb927c
parent1ca905d4c35f2d8bf9c38701b99d650c8f07eaed
xfs: scrub inode mode properly

Since we've used up all the bits in i_mode, the existing mode check
doesn't actually do anything useful.  However, we've not used all the
bit values in the format portion of i_mode, so we /do/ need to test
that for bad values.

Fixes: a522c5592 ("xfs: scrub inodes")
Fixes-coverity-id: 1423992
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/scrub/inode.c