aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub
diff options
context:
space:
mode:
authorShida Zhang <zhangshida@kylinos.cn>2022-10-04 16:39:58 +1100
committerDave Chinner <david@fromorbit.com>2022-10-04 16:39:58 +1100
commitc098576f5f63bc0ee2424bba50892514a71d54e8 (patch)
treef4bc7747e2b604cf7718c584126e3e9bc8d5a51a /fs/xfs/scrub
parentxfs: trim the mapp array accordingly in xfs_da_grow_inode_int (diff)
downloadlinux-dev-c098576f5f63bc0ee2424bba50892514a71d54e8.tar.xz
linux-dev-c098576f5f63bc0ee2424bba50892514a71d54e8.zip
xfs: rearrange the logic and remove the broken comment for xfs_dir2_isxx
xfs_dir2_isleaf is used to see if the directory is a single-leaf form directory instead, as commented right above the function. Besides getting rid of the broken comment, we rearrange the logic by converting everything over to standard formatting and conventions, at the same time, to make it easier to understand and self documenting. Signed-off-by: Shida Zhang <zhangshida@kylinos.cn> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/scrub')
-rw-r--r--fs/xfs/scrub/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/dir.c b/fs/xfs/scrub/dir.c
index 5abb5fdb71d9..b9c5764e7437 100644
--- a/fs/xfs/scrub/dir.c
+++ b/fs/xfs/scrub/dir.c
@@ -676,7 +676,7 @@ xchk_directory_blocks(
xfs_dablk_t dabno;
xfs_dir2_db_t last_data_db = 0;
bool found;
- int is_block = 0;
+ bool is_block = false;
int error;
/* Ignore local format directories. */