]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a helper function vfs_bio_bzero_buf() to zero the portion of the
authorKonstantin Belousov <kib@FreeBSD.org>
Tue, 19 Mar 2013 14:27:14 +0000 (14:27 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 19 Mar 2013 14:27:14 +0000 (14:27 +0000)
commit7d5365c70ba37b88a87a6e5dc64ab5dbec5da90b
tree3a6efddd5ee4e197e29b974a1cb3308a8775924d
parent5ac9d9890f9f1f97793814d96e459612cfde6153
Add a helper function vfs_bio_bzero_buf() to zero the portion of the
buffer, transparently handling mapped or unmapped buffers.  Its intent
is to replace the use of bzero(bp->b_data) in cases where the buffer
might be unmapped, to avoid unneeded upgrades.

Sponsored by: The FreeBSD Foundation
Tested by: pho
sys/kern/vfs_bio.c
sys/sys/buf.h