summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r--sys/kern/vfs_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 80ea2f0..c74f4ee 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -413,7 +413,7 @@ cache_enter(dvp, vp, cnp)
}
ncp = (struct namecache *)
- malloc(sizeof *ncp + cnp->cn_namelen, M_VFSCACHE, M_WAITOK);
+ malloc(sizeof *ncp + cnp->cn_namelen, M_VFSCACHE, 0);
bzero((char *)ncp, sizeof *ncp);
numcache++;
if (!vp) {
@@ -729,7 +729,7 @@ kern___getcwd(struct thread *td, u_char *buf, enum uio_seg bufseg, u_int buflen)
if (buflen > MAXPATHLEN)
buflen = MAXPATHLEN;
error = 0;
- tmpbuf = bp = malloc(buflen, M_TEMP, M_WAITOK);
+ tmpbuf = bp = malloc(buflen, M_TEMP, 0);
bp += buflen - 1;
*bp = '\0';
fdp = td->td_proc->p_fd;
@@ -840,7 +840,7 @@ vn_fullpath(struct thread *td, struct vnode *vn, char **retbuf, char **freebuf)
return (ENODEV);
if (vn == NULL)
return (EINVAL);
- buf = malloc(MAXPATHLEN, M_TEMP, M_WAITOK);
+ buf = malloc(MAXPATHLEN, M_TEMP, 0);
bp = buf + MAXPATHLEN - 1;
*bp = '\0';
fdp = td->td_proc->p_fd;
OpenPOWER on IntegriCloud