diff options
author | phk <phk@FreeBSD.org> | 2004-03-11 18:02:36 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-03-11 18:02:36 +0000 |
commit | 2a5e157787a7e1d72f1b7fd7d1ecb1e91b9e5251 (patch) | |
tree | 24546ef169a9ce1a21318822c62c8a981c08e1a7 /sys/nfsclient | |
parent | 9ba3cede82df59c4fc45ffe6b8f44950eef74c6b (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/nfsclient/nfs_bio.c | 4 | ||||
-rw-r--r-- | sys/nfsclient/nfs_vnops.c | 2 |
2 files changed, 3 insertions, 3 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) { diff --git a/sys/nfsclient/nfs_vnops.c b/sys/nfsclient/nfs_vnops.c index 60acab0..1bbd3a3 100644 --- a/sys/nfsclient/nfs_vnops.c +++ b/sys/nfsclient/nfs_vnops.c @@ -2849,7 +2849,7 @@ loop: else bp->b_flags |= B_ASYNC | B_WRITEINPROG; splx(s); - BUF_WRITE(bp); + bwrite(bp); goto loop; } splx(s); |