cvs commit: src/sys/kern vfs_bio.c src/sys/fs/nwfs nwfs_vnops.c src/sys/fs/smbfs smbfs_vnops.c

Poul-Henning Kamp phk at phk.freebsd.dk
Sat Oct 18 12:15:06 PDT 2003


In message <20031018121152.V47115 at root.org>, Nate Lawson writes:

>> @@ -799,8 +799,7 @@
>>  	KASSERT(ap->a_vp == ap->a_bp->b_vp, ("%s(%p != %p)",
>>  	    __func__, ap->a_vp, ap->a_bp->b_vp));
>>  	NCPVNDEBUG("\n");
>> -	if (bp->b_flags & B_PHYS)
>> -		panic("nwfs physio");
>> +	KASSERT(!(bp->b_flags & B_PHYS), ("nwfs physio"));
>>  	if (bp->b_flags & B_ASYNC)
>>  		td = (struct thread *)0;
>  	else
>
>This removes sanity checks for the !INVARIANTS case (which all our
>releases are).

This sanity-check is OBE, and B_PHYS as such is about to disappear.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the cvs-src mailing list