Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Apr 2001 14:54:15 +0200
From:      Poul-Henning Kamp <phk@freebsd.org>
To:        arch@freebsd.org, audit@freebsd.org
Subject:   [PATCH] Axing VOP_BWRITE
Message-ID:  <2208.987425655@critter>

next in thread | raw e-mail | index | archive | help

I have made a patch which axes VOP_BWRITE:

	http://phk.freebsd.dk/patch/buf_write.patch

20010416        buf_write.patch

        This patch removes the VOP_BWRITE() vector.

        VOP_BWRITE() was a hack which made it possible for NFS client
        side to use struct buf with non-bio backing.

        This patch takes a more general approach and adds a bp->b_op
        vector where more methods can be added.

        The success of this patch depends on bp->b_op being initialized
        all relevant places for some value of "relevant" which is not
        easy to determine.

        As a followup to this patch, all uses of
                bwrite(bp)
        should be changed to
                BUF_BWRITE(bp)


--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@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.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2208.987425655>