Fix a couple of bugs in zfs_getpages() pointed out in post-commit review.
Motivation and Context
This change fixes a couple of small issues with a previous recent change to zfs_getpages().
Description
See the commit log message. Note that the null pointer dereference described there will not arise in practice today, as zfs_getpages() is always called with count=1 on FreeBSD.
How Has This Been Tested?
Currently running the ZTS.
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Performance enhancement (non-breaking change which improves efficiency)
[ ] Code cleanup (non-breaking change which makes code smaller or more readable)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
[ ] Documentation (a change to man pages or other documentation)
Fix a couple of bugs in zfs_getpages() pointed out in post-commit review.
Motivation and Context
This change fixes a couple of small issues with a previous recent change to zfs_getpages().
Description
See the commit log message. Note that the null pointer dereference described there will not arise in practice today, as zfs_getpages() is always called with count=1 on FreeBSD.
How Has This Been Tested?
Currently running the ZTS.
Types of changes
Checklist:
Signed-off-by
.