diff options
author | jeff <jeff@FreeBSD.org> | 2003-03-04 00:04:44 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2003-03-04 00:04:44 +0000 |
commit | 4de0ae322cb45ae3620fef3a8fcf76d44208ee44 (patch) | |
tree | 60aed2b4c31a2d4a3c1cc94b83966280f8fc3eae /sys/nfsclient/nfs_bio.c | |
parent | 7880d78b5504f8df1d22b8539ee31167ccd22750 (diff) | |
download | FreeBSD-src-4de0ae322cb45ae3620fef3a8fcf76d44208ee44.zip FreeBSD-src-4de0ae322cb45ae3620fef3a8fcf76d44208ee44.tar.gz |
- Add a new 'flags' parameter to getblk().
- Define one flag GB_LOCK_NOWAIT that tells getblk() to pass the LK_NOWAIT
flag to the initial BUF_LOCK(). This will eventually be used in cases
were we want to use a buffer only if it is not currently in use.
- Convert all consumers of the getblk() api to use this extra parameter.
Reviwed by: arch
Not objected to by: mckusick
Diffstat (limited to 'sys/nfsclient/nfs_bio.c')
-rw-r--r-- | sys/nfsclient/nfs_bio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfsclient/nfs_bio.c b/sys/nfsclient/nfs_bio.c index c124e64..379419e 100644 --- a/sys/nfsclient/nfs_bio.c +++ b/sys/nfsclient/nfs_bio.c @@ -1032,14 +1032,14 @@ nfs_getcacheblk(struct vnode *vp, daddr_t bn, int size, struct thread *td) nmp = VFSTONFS(mp); if (nmp->nm_flag & NFSMNT_INT) { - bp = getblk(vp, bn, size, PCATCH, 0); + bp = getblk(vp, bn, size, PCATCH, 0, 0); while (bp == NULL) { if (nfs_sigintr(nmp, NULL, td)) return (NULL); - bp = getblk(vp, bn, size, 0, 2 * hz); + bp = getblk(vp, bn, size, 0, 2 * hz, 0); } } else { - bp = getblk(vp, bn, size, 0, 0); + bp = getblk(vp, bn, size, 0, 0, 0); } if (vp->v_type == VREG) { |