]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: rearrange the logic and remove the broken comment for xfs_dir2_isxx
authorShida Zhang <zhangshida@kylinos.cn>
Tue, 4 Oct 2022 05:39:58 +0000 (16:39 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Oct 2022 05:39:58 +0000 (16:39 +1100)
commit9423e966fd636b1b29317971a0204908bfab8f3d
treef4bc7747e2b604cf7718c584126e3e9bc8d5a51a
parentbb3026dda92f3ccd4df672d5b02fb2843e83e953
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>
fs/xfs/libxfs/xfs_dir2.c
fs/xfs/libxfs/xfs_dir2.h
fs/xfs/scrub/dir.c
fs/xfs/xfs_dir2_readdir.c