Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/chfs Make this compile again. From Paul Fleischer.
details: https://anonhg.NetBSD.org/src/rev/c367f32df2bc
branches: trunk
changeset: 777649:c367f32df2bc
user: christos <christos%NetBSD.org@localhost>
date: Tue Feb 28 02:48:39 2012 +0000
description:
Make this compile again. From Paul Fleischer.
diffstat:
sys/ufs/chfs/chfs_inode.h | 3 ++-
sys/ufs/chfs/chfs_malloc.c | 20 ++++++++++----------
sys/ufs/chfs/chfs_pool.c | 9 +++------
3 files changed, 15 insertions(+), 17 deletions(-)
diffs (144 lines):
diff -r 5f3ff6473916 -r c367f32df2bc sys/ufs/chfs/chfs_inode.h
--- a/sys/ufs/chfs/chfs_inode.h Mon Feb 27 19:52:59 2012 +0000
+++ b/sys/ufs/chfs/chfs_inode.h Tue Feb 28 02:48:39 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs_inode.h,v 1.1 2011/11/24 15:51:31 ahoka Exp $ */
+/* $NetBSD: chfs_inode.h,v 1.2 2012/02/28 02:48:39 christos Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -42,6 +42,7 @@
struct chfs_inode
{
+ struct genfs_node gnode;
kmutex_t inode_lock; /* lock the fields of chfs_inode */
LIST_ENTRY(chfs_inode) hash_entry; /* Hash chain. */
diff -r 5f3ff6473916 -r c367f32df2bc sys/ufs/chfs/chfs_malloc.c
--- a/sys/ufs/chfs/chfs_malloc.c Mon Feb 27 19:52:59 2012 +0000
+++ b/sys/ufs/chfs/chfs_malloc.c Tue Feb 28 02:48:39 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs_malloc.c,v 1.1 2011/11/24 15:51:31 ahoka Exp $ */
+/* $NetBSD: chfs_malloc.c,v 1.2 2012/02/28 02:48:39 christos Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -45,7 +45,7 @@
pool_cache_t chfs_tmp_dnode_info_cache;
int
-chfs_alloc_pool_caches()
+chfs_alloc_pool_caches(void)
{
chfs_vnode_cache = pool_cache_init(
sizeof(struct chfs_vnode_cache),
@@ -118,7 +118,7 @@
}
void
-chfs_destroy_pool_caches()
+chfs_destroy_pool_caches(void)
{
if (chfs_vnode_cache)
pool_cache_destroy(chfs_vnode_cache);
@@ -293,7 +293,7 @@
}
struct chfs_full_dnode*
-chfs_alloc_full_dnode()
+chfs_alloc_full_dnode(void)
{
struct chfs_full_dnode *ret;
ret = kmem_alloc(sizeof(struct chfs_full_dnode), KM_SLEEP);
@@ -307,7 +307,7 @@
}
struct chfs_flash_vnode*
-chfs_alloc_flash_vnode()
+chfs_alloc_flash_vnode(void)
{
struct chfs_flash_vnode *ret;
ret = pool_cache_get(chfs_flash_vnode_cache, 0);
@@ -321,7 +321,7 @@
}
struct chfs_flash_dirent_node*
-chfs_alloc_flash_dirent()
+chfs_alloc_flash_dirent(void)
{
struct chfs_flash_dirent_node *ret;
ret = pool_cache_get(chfs_flash_dirent_cache, 0);
@@ -335,7 +335,7 @@
}
struct chfs_flash_data_node*
-chfs_alloc_flash_dnode()
+chfs_alloc_flash_dnode(void)
{
struct chfs_flash_data_node *ret;
ret = pool_cache_get(chfs_flash_dnode_cache, 0);
@@ -350,7 +350,7 @@
struct chfs_node_frag*
-chfs_alloc_node_frag()
+chfs_alloc_node_frag(void)
{
struct chfs_node_frag *ret;
ret = pool_cache_get(chfs_node_frag_cache, 0);
@@ -365,7 +365,7 @@
}
struct chfs_tmp_dnode *
-chfs_alloc_tmp_dnode()
+chfs_alloc_tmp_dnode(void)
{
struct chfs_tmp_dnode *ret;
ret = pool_cache_get(chfs_tmp_dnode_cache, 0);
@@ -380,7 +380,7 @@
}
struct chfs_tmp_dnode_info *
-chfs_alloc_tmp_dnode_info()
+chfs_alloc_tmp_dnode_info(void)
{
struct chfs_tmp_dnode_info *ret;
ret = pool_cache_get(chfs_tmp_dnode_info_cache, 0);
diff -r 5f3ff6473916 -r c367f32df2bc sys/ufs/chfs/chfs_pool.c
--- a/sys/ufs/chfs/chfs_pool.c Mon Feb 27 19:52:59 2012 +0000
+++ b/sys/ufs/chfs/chfs_pool.c Tue Feb 28 02:48:39 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs_pool.c,v 1.1 2011/11/24 15:51:31 ahoka Exp $ */
+/* $NetBSD: chfs_pool.c,v 1.2 2012/02/28 02:48:39 christos Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -50,9 +50,6 @@
void * chfs_pool_page_alloc(struct pool *, int);
void chfs_pool_page_free(struct pool *, void *);
-extern void* pool_page_alloc_nointr(struct pool *, int);
-extern void pool_page_free_nointr(struct pool *, void *);
-
/* --------------------------------------------------------------------- */
struct pool_allocator chfs_pool_allocator = {
@@ -104,7 +101,7 @@
atomic_dec_uint(&chmp->chm_pages_used);
return NULL;
}
- page = pool_page_alloc_nointr(pp, flags | PR_WAITOK);
+ page = pool_get(pp, flags | PR_WAITOK);
if (page == NULL) {
atomic_dec_uint(&chmp->chm_pages_used);
}
@@ -125,7 +122,7 @@
chmp = chpp->chp_mount;
atomic_dec_uint(&chmp->chm_pages_used);
- pool_page_free_nointr(pp, v);
+ pool_put(pp,v);
}
/* --------------------------------------------------------------------- */
Home |
Main Index |
Thread Index |
Old Index