HomeFreeBSD

FreeBSD: Cleanup zfs_readdir()

Description

FreeBSD: Cleanup zfs_readdir()

The FreeBSD project's coverity scans found dead code in zfs_readdir().
Also, the comment above zfs_readdir() is out of date.

I fixed the comment and deleted all of the dead code, plus additional
dead code that was found upon review.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #13924

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Sep 20 2022, 9:50 PM
GitHub <noreply@github.com>Committed on Sep 20 2022, 9:50 PM
Parents
rG9276e202eba3: FreeBSD: Fix uninitialized pointer read in spa_import_rootpool()
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG3f400b0f5851: FreeBSD: Cleanup zfs_readdir() (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Sep 20 2022, 9:50 PM