HomeFreeBSD

vfs_bio.c: Apply cleanups motivated by Coverity analysis

Description

vfs_bio.c: Apply cleanups motivated by Coverity analysis

It is believed that the conditions Coverity indicated were actually
impossible to hit. So this patch just adds a cleanup to only compute
v_mount once in brelse(), and in vfs_bio_getpages() always initializes error
to zero to appease the static analyzer.

No functional change intended.

Submitted by: Darrick Lew <darrick.freebsd AT gmail.com>
Reviewed by: kib
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D14613

Details

Provenance
cemAuthored on
Reviewer
kib
Differential Revision
D14613: Summary: Apply fixes uncovered in vfs_bio.c via static analysis.
Parents
rS330951: Fix mps deadlock when handling panic
Branches
Unknown
Tags
Unknown