]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: rearrange the logic and remove the broken comment for xfs_dir2_isxx
authorShida Zhang <zhangshida@kylinos.cn>
Fri, 18 Nov 2022 09:46:41 +0000 (10:46 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 21 Nov 2022 14:26:48 +0000 (15:26 +0100)
commit1a3bfffee3f266362ad05bb954d6e91e218739f4
tree127e1f109d351c838849b9773b228254ab5840d3
parent04d4c27afa3f2c0088e381102e68cfb6a96b3306
xfs: rearrange the logic and remove the broken comment for xfs_dir2_isxx

Source kernel commit: c098576f5f63bc0ee2424bba50892514a71d54e8

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>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
db/namei.c
libxfs/xfs_dir2.c
libxfs/xfs_dir2.h
repair/phase6.c