summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/fs/tmpfs
diff options
context:
space:
mode:
authorDan McDonald <danmcd@joyent.com>2022-02-22 19:50:49 -0500
committerGitHub <noreply@github.com>2022-02-22 19:50:49 -0500
commitbc426cb7eeb7a41ef293093a664028214e5d5168 (patch)
treeb48bf23a847eee9fa42163ba9a7155924f3c7a32 /usr/src/uts/common/fs/tmpfs
parent263ea1b63c716f2faa665b9fe7952e018d1110c1 (diff)
downloadillumos-joyent-bc426cb7eeb7a41ef293093a664028214e5d5168.tar.gz
OS-8359 Cleanup (KM_NOSLEEP | KM_NORMALPRI) in illumos-joyent
Reviewed by: Brian Bennett <brian.bennett@joyent.com> Approved by: Brian Bennett <brian.bennett@joyent.com>
Diffstat (limited to 'usr/src/uts/common/fs/tmpfs')
-rw-r--r--usr/src/uts/common/fs/tmpfs/tmp_dir.c2
-rw-r--r--usr/src/uts/common/fs/tmpfs/tmp_vfsops.c4
-rw-r--r--usr/src/uts/common/fs/tmpfs/tmp_vnops.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/uts/common/fs/tmpfs/tmp_dir.c b/usr/src/uts/common/fs/tmpfs/tmp_dir.c
index d689c512c1..b28ced7111 100644
--- a/usr/src/uts/common/fs/tmpfs/tmp_dir.c
+++ b/usr/src/uts/common/fs/tmpfs/tmp_dir.c
@@ -990,7 +990,7 @@ tdiraddentry(
tm = TNTOTM(dir);
namelen = strlen(name) + 1;
alloc_size = namelen + sizeof (struct tdirent);
- tdp = tmp_kmem_zalloc(tm, alloc_size, KM_NOSLEEP | KM_NORMALPRI);
+ tdp = tmp_kmem_zalloc(tm, alloc_size, KM_NOSLEEP_LAZY);
if (tdp == NULL)
return (ENOSPC);
diff --git a/usr/src/uts/common/fs/tmpfs/tmp_vfsops.c b/usr/src/uts/common/fs/tmpfs/tmp_vfsops.c
index c52a6f7c77..24310fefe5 100644
--- a/usr/src/uts/common/fs/tmpfs/tmp_vfsops.c
+++ b/usr/src/uts/common/fs/tmpfs/tmp_vfsops.c
@@ -325,8 +325,8 @@ tmp_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr)
goto out;
}
- if ((tm = kmem_zalloc(sizeof (struct tmount),
- KM_NOSLEEP | KM_NORMALPRI)) == NULL) {
+ if ((tm = kmem_zalloc(sizeof (struct tmount), KM_NOSLEEP_LAZY)) ==
+ NULL) {
pn_free(&dpn);
error = ENOMEM;
goto out;
diff --git a/usr/src/uts/common/fs/tmpfs/tmp_vnops.c b/usr/src/uts/common/fs/tmpfs/tmp_vnops.c
index a356f22750..cbe19aefea 100644
--- a/usr/src/uts/common/fs/tmpfs/tmp_vnops.c
+++ b/usr/src/uts/common/fs/tmpfs/tmp_vnops.c
@@ -1645,7 +1645,7 @@ tmp_symlink(
return (error);
}
len = strlen(tnm) + 1;
- cp = tmp_kmem_zalloc(tm, len, KM_NOSLEEP | KM_NORMALPRI);
+ cp = tmp_kmem_zalloc(tm, len, KM_NOSLEEP_LAZY);
if (cp == NULL) {
tmpnode_rele(self);
return (ENOSPC);