summaryrefslogtreecommitdiffstats
path: root/sys/fs/udf/udf_vnops.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2003-01-21 08:56:16 +0000
committeralfred <alfred@FreeBSD.org>2003-01-21 08:56:16 +0000
commitbf8e8a6e8f0bd9165109f0a258730dd242299815 (patch)
treef16a2fb9fa7a7fbc4c19e981d278d5f6eb53234d /sys/fs/udf/udf_vnops.c
parent2180deee00350fff613a1d1d1328eddc4c0ba9c8 (diff)
downloadFreeBSD-src-bf8e8a6e8f0bd9165109f0a258730dd242299815.zip
FreeBSD-src-bf8e8a6e8f0bd9165109f0a258730dd242299815.tar.gz
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
Diffstat (limited to 'sys/fs/udf/udf_vnops.c')
-rw-r--r--sys/fs/udf/udf_vnops.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/fs/udf/udf_vnops.c b/sys/fs/udf/udf_vnops.c
index 8d9be57..f6d5fd2 100644
--- a/sys/fs/udf/udf_vnops.c
+++ b/sys/fs/udf/udf_vnops.c
@@ -449,7 +449,7 @@ udf_transname(char *cs0string, char *destname, int len)
int i, unilen = 0;
/* allocate a buffer big enough to hold an 8->16 bit expansion */
- transname = uma_zalloc(udf_zone_trans, M_WAITOK);
+ transname = uma_zalloc(udf_zone_trans, 0);
if ((unilen = udf_UncompressUnicode(len, cs0string, transname)) == -1) {
printf("udf: Unicode translation failed\n");
@@ -486,7 +486,7 @@ udf_cmpname(char *cs0string, char *cmpname, int cs0len, int cmplen)
int error = 0;
/* This is overkill, but not worth creating a new zone */
- transname = uma_zalloc(udf_zone_trans, M_WAITOK);
+ transname = uma_zalloc(udf_zone_trans, 0);
cs0len = udf_transname(cs0string, transname, cs0len);
@@ -532,7 +532,7 @@ udf_opendir(struct udf_node *node, int offset, int fsize, struct udf_mnt *udfmp)
{
struct udf_dirstream *ds;
- ds = uma_zalloc(udf_zone_ds, M_WAITOK | M_ZERO);
+ ds = uma_zalloc(udf_zone_ds, M_ZERO);
ds->node = node;
ds->offset = offset;
@@ -597,7 +597,7 @@ udf_getfid(struct udf_dirstream *ds)
* logical sector in size.
*/
MALLOC(ds->buf, uint8_t*, ds->udfmp->bsize, M_UDFFID,
- M_WAITOK | M_ZERO);
+ M_ZERO);
bcopy(fid, ds->buf, frag_size);
/* Reduce all of the casting magic */
@@ -697,7 +697,7 @@ udf_readdir(struct vop_readdir_args *a)
*/
ncookies = uio->uio_resid / 8;
MALLOC(cookies, u_long *, sizeof(u_long) * ncookies,
- M_TEMP, M_WAITOK);
+ M_TEMP, 0);
if (cookies == NULL)
return (ENOMEM);
uiodir.ncookies = ncookies;
OpenPOWER on IntegriCloud