]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: scrub: Remove incorrect check executed on block format directories
authorChandan Babu R <chandanrlinux@gmail.com>
Fri, 26 Mar 2021 17:52:56 +0000 (10:52 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 7 Apr 2021 21:36:34 +0000 (14:36 -0700)
commitefbad51effff2112dac01fa7c271470e00cb4df7
treec2af25e8fc5d0fe4900caf8e08d4e5b1b4377ab0
parentab0733c59bc5198cab4ddbe8c38aa17ac7bb7226
xfs: scrub: Remove incorrect check executed on block format directories

A directory with one directory block which in turns consists of two or more fs
blocks is incorrectly flagged as corrupt by scrub since it assumes that
"Block" format directories have a data fork single extent spanning the file
offset range of [0, Dir block size - 1].

This commit fixes the bug by removing the incorrect check.

Signed-off-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/scrub/dir.c