diff options
author | Shida Zhang <zhangshida@kylinos.cn> | 2022-10-04 16:39:58 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2022-10-04 16:39:58 +1100 |
commit | c098576f5f63bc0ee2424bba50892514a71d54e8 (patch) | |
tree | f4bc7747e2b604cf7718c584126e3e9bc8d5a51a /fs/xfs/xfs_dir2_readdir.c | |
parent | 44159659df8ca381b84261e11058b2176fa03ba0 (diff) |
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/xfs_dir2_readdir.c')
-rw-r--r-- | fs/xfs/xfs_dir2_readdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_dir2_readdir.c b/fs/xfs/xfs_dir2_readdir.c index e295fc8062d8..9f3ceb461515 100644 --- a/fs/xfs/xfs_dir2_readdir.c +++ b/fs/xfs/xfs_dir2_readdir.c @@ -512,7 +512,7 @@ xfs_readdir( { struct xfs_da_args args = { NULL }; unsigned int lock_mode; - int isblock; + bool isblock; int error; trace_xfs_readdir(dp); |