summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/nfs_bio.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-03-11 18:02:36 +0000
committerphk <phk@FreeBSD.org>2004-03-11 18:02:36 +0000
commit2a5e157787a7e1d72f1b7fd7d1ecb1e91b9e5251 (patch)
tree24546ef169a9ce1a21318822c62c8a981c08e1a7 /sys/nfsclient/nfs_bio.c
parent9ba3cede82df59c4fc45ffe6b8f44950eef74c6b (diff)
downloadFreeBSD-src-2a5e157787a7e1d72f1b7fd7d1ecb1e91b9e5251.zip
FreeBSD-src-2a5e157787a7e1d72f1b7fd7d1ecb1e91b9e5251.tar.gz
Properly vector all bwrite() and BUF_WRITE() calls through the same path
and s/BUF_WRITE()/bwrite()/ since it now does the same as bwrite().
Diffstat (limited to 'sys/nfsclient/nfs_bio.c')
-rw-r--r--sys/nfsclient/nfs_bio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c
index d6a8f15..c6a3a06 100644
--- a/sys/nfsclient/nfs_bio.c
+++ b/sys/nfsclient/nfs_bio.c
@@ -967,7 +967,7 @@ again:
if (bp->b_dirtyend > 0 &&
(on > bp->b_dirtyend || (on + n) < bp->b_dirtyoff)) {
- if (BUF_WRITE(bp) == EINTR) {
+ if (bwrite(bp) == EINTR) {
error = EINTR;
break;
}
@@ -1014,7 +1014,7 @@ again:
if ((ioflag & IO_SYNC)) {
if (ioflag & IO_INVAL)
bp->b_flags |= B_NOCACHE;
- error = BUF_WRITE(bp);
+ error = bwrite(bp);
if (error)
break;
} else if ((n + on) == biosize) {
OpenPOWER on IntegriCloud