Module Name: src Committed By: christos Date: Thu Nov 9 22:16:39 UTC 2017
Modified Files: src/sys/ufs/chfs: chfs_malloc.c Log Message: use PR_WAITOK everywhere. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/ufs/chfs/chfs_malloc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ufs/chfs/chfs_malloc.c diff -u src/sys/ufs/chfs/chfs_malloc.c:1.4 src/sys/ufs/chfs/chfs_malloc.c:1.5 --- src/sys/ufs/chfs/chfs_malloc.c:1.4 Fri Oct 19 08:44:39 2012 +++ src/sys/ufs/chfs/chfs_malloc.c Thu Nov 9 17:16:38 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: chfs_malloc.c,v 1.4 2012/10/19 12:44:39 ttoth Exp $ */ +/* $NetBSD: chfs_malloc.c,v 1.5 2017/11/09 22:16:38 christos Exp $ */ /*- * Copyright (c) 2010 Department of Software Engineering, @@ -314,7 +314,7 @@ struct chfs_flash_vnode* chfs_alloc_flash_vnode(void) { struct chfs_flash_vnode *ret; - ret = pool_cache_get(chfs_flash_vnode_cache, 0); + ret = pool_cache_get(chfs_flash_vnode_cache, PR_WAITOK); return ret; } @@ -330,7 +330,7 @@ struct chfs_flash_dirent_node* chfs_alloc_flash_dirent(void) { struct chfs_flash_dirent_node *ret; - ret = pool_cache_get(chfs_flash_dirent_cache, 0); + ret = pool_cache_get(chfs_flash_dirent_cache, PR_WAITOK); return ret; } @@ -346,7 +346,7 @@ struct chfs_flash_data_node* chfs_alloc_flash_dnode(void) { struct chfs_flash_data_node *ret; - ret = pool_cache_get(chfs_flash_dnode_cache, 0); + ret = pool_cache_get(chfs_flash_dnode_cache, PR_WAITOK); return ret; } @@ -362,7 +362,7 @@ struct chfs_node_frag* chfs_alloc_node_frag(void) { struct chfs_node_frag *ret; - ret = pool_cache_get(chfs_node_frag_cache, 0); + ret = pool_cache_get(chfs_node_frag_cache, PR_WAITOK); return ret; } @@ -378,7 +378,7 @@ struct chfs_tmp_dnode * chfs_alloc_tmp_dnode(void) { struct chfs_tmp_dnode *ret; - ret = pool_cache_get(chfs_tmp_dnode_cache, 0); + ret = pool_cache_get(chfs_tmp_dnode_cache, PR_WAITOK); ret->next = NULL; return ret; } @@ -395,7 +395,7 @@ struct chfs_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); + ret = pool_cache_get(chfs_tmp_dnode_info_cache, PR_WAITOK); ret->tmpnode = NULL; return ret; }