summaryrefslogtreecommitdiff
path: root/sys/ufs/ffs
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-12-23 01:53:35 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-12-23 01:53:35 +0000
commit567dec4a5cf061ddcfa58255175a7480160ff6c5 (patch)
treebe3722e0c19a2aeb61757f3b293db6698921d119 /sys/ufs/ffs
parent35bde09600f34dc490335bd04995d5d3979f306f (diff)
change pool_init allocator to NULL and pass PR_WAITOK in flags as a sign
that these don't need to support interrupts
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r--sys/ufs/ffs/ffs_softdep.c58
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c14
2 files changed, 36 insertions, 36 deletions
diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c
index 747a41082aa..c526868cc34 100644
--- a/sys/ufs/ffs/ffs_softdep.c
+++ b/sys/ufs/ffs/ffs_softdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_softdep.c,v 1.129 2014/11/18 10:42:15 dlg Exp $ */
+/* $OpenBSD: ffs_softdep.c,v 1.130 2014/12/23 01:53:34 tedu Exp $ */
/*
* Copyright 1998, 2000 Marshall Kirk McKusick. All Rights Reserved.
@@ -1175,34 +1175,34 @@ softdep_initialize(void)
newblk_hashtbl = hashinit(64, M_NEWBLK, M_WAITOK, &newblk_hash);
sema_init(&newblk_in_progress, "newblk", PRIBIO, 0);
timeout_set(&proc_waiting_timeout, pause_timer, NULL);
- pool_init(&pagedep_pool, sizeof(struct pagedep), 0, 0, 0,
- "pagedep", &pool_allocator_nointr);
- pool_init(&inodedep_pool, sizeof(struct inodedep), 0, 0, 0,
- "inodedep", &pool_allocator_nointr);
- pool_init(&newblk_pool, sizeof(struct newblk), 0, 0, 0,
- "newblk", &pool_allocator_nointr);
- pool_init(&bmsafemap_pool, sizeof(struct bmsafemap), 0, 0, 0,
- "bmsafemap", &pool_allocator_nointr);
- pool_init(&allocdirect_pool, sizeof(struct allocdirect), 0, 0, 0,
- "allocdir", &pool_allocator_nointr);
- pool_init(&indirdep_pool, sizeof(struct indirdep), 0, 0, 0,
- "indirdep", &pool_allocator_nointr);
- pool_init(&allocindir_pool, sizeof(struct allocindir), 0, 0, 0,
- "allocindir", &pool_allocator_nointr);
- pool_init(&freefrag_pool, sizeof(struct freefrag), 0, 0, 0,
- "freefrag", &pool_allocator_nointr);
- pool_init(&freeblks_pool, sizeof(struct freeblks), 0, 0, 0,
- "freeblks", &pool_allocator_nointr);
- pool_init(&freefile_pool, sizeof(struct freefile), 0, 0, 0,
- "freefile", &pool_allocator_nointr);
- pool_init(&diradd_pool, sizeof(struct diradd), 0, 0, 0,
- "diradd", &pool_allocator_nointr);
- pool_init(&mkdir_pool, sizeof(struct mkdir), 0, 0, 0,
- "mkdir", &pool_allocator_nointr);
- pool_init(&dirrem_pool, sizeof(struct dirrem), 0, 0, 0,
- "dirrem", &pool_allocator_nointr);
- pool_init(&newdirblk_pool, sizeof(struct newdirblk), 0, 0, 0,
- "newdirblk", &pool_allocator_nointr);
+ pool_init(&pagedep_pool, sizeof(struct pagedep), 0, 0, PR_WAITOK,
+ "pagedep", NULL);
+ pool_init(&inodedep_pool, sizeof(struct inodedep), 0, 0, PR_WAITOK,
+ "inodedep", NULL);
+ pool_init(&newblk_pool, sizeof(struct newblk), 0, 0, PR_WAITOK,
+ "newblk", NULL);
+ pool_init(&bmsafemap_pool, sizeof(struct bmsafemap), 0, 0, PR_WAITOK,
+ "bmsafemap", NULL);
+ pool_init(&allocdirect_pool, sizeof(struct allocdirect), 0, 0, PR_WAITOK,
+ "allocdir", NULL);
+ pool_init(&indirdep_pool, sizeof(struct indirdep), 0, 0, PR_WAITOK,
+ "indirdep", NULL);
+ pool_init(&allocindir_pool, sizeof(struct allocindir), 0, 0, PR_WAITOK,
+ "allocindir", NULL);
+ pool_init(&freefrag_pool, sizeof(struct freefrag), 0, 0, PR_WAITOK,
+ "freefrag", NULL);
+ pool_init(&freeblks_pool, sizeof(struct freeblks), 0, 0, PR_WAITOK,
+ "freeblks", NULL);
+ pool_init(&freefile_pool, sizeof(struct freefile), 0, 0, PR_WAITOK,
+ "freefile", NULL);
+ pool_init(&diradd_pool, sizeof(struct diradd), 0, 0, PR_WAITOK,
+ "diradd", NULL);
+ pool_init(&mkdir_pool, sizeof(struct mkdir), 0, 0, PR_WAITOK,
+ "mkdir", NULL);
+ pool_init(&dirrem_pool, sizeof(struct dirrem), 0, 0, PR_WAITOK,
+ "dirrem", NULL);
+ pool_init(&newdirblk_pool, sizeof(struct newdirblk), 0, 0, PR_WAITOK,
+ "newdirblk", NULL);
}
/*
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index d5401a586ad..7674ea2cbb6 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_vfsops.c,v 1.146 2014/12/12 22:58:48 tedu Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.147 2014/12/23 01:53:34 tedu Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -1474,13 +1474,13 @@ ffs_init(struct vfsconf *vfsp)
done = 1;
- pool_init(&ffs_ino_pool, sizeof(struct inode), 0, 0, 0, "ffsino",
- &pool_allocator_nointr);
- pool_init(&ffs_dinode1_pool, sizeof(struct ufs1_dinode), 0, 0, 0,
- "dino1pl", &pool_allocator_nointr);
+ pool_init(&ffs_ino_pool, sizeof(struct inode), 0, 0, PR_WAITOK,
+ "ffsino", NULL);
+ pool_init(&ffs_dinode1_pool, sizeof(struct ufs1_dinode), 0, 0,
+ PR_WAITOK, "dino1pl", NULL);
#ifdef FFS2
- pool_init(&ffs_dinode2_pool, sizeof(struct ufs2_dinode), 0, 0, 0,
- "dino2pl", &pool_allocator_nointr);
+ pool_init(&ffs_dinode2_pool, sizeof(struct ufs2_dinode), 0, 0,
+ PR_WAITOK, "dino2pl", NULL);
#endif
softdep_initialize();