Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/chfs use PR_WAITOK everywhere.



details:   https://anonhg.NetBSD.org/src/rev/207bb2acf6d0
branches:  trunk
changeset: 357415:207bb2acf6d0
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 09 22:16:38 2017 +0000

description:
use PR_WAITOK everywhere.

diffstat:

 sys/ufs/chfs/chfs_malloc.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 0781c2e5da06 -r 207bb2acf6d0 sys/ufs/chfs/chfs_malloc.c
--- a/sys/ufs/chfs/chfs_malloc.c        Thu Nov 09 22:16:34 2017 +0000
+++ b/sys/ufs/chfs/chfs_malloc.c        Thu Nov 09 22:16:38 2017 +0000
@@ -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 @@
 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 @@
 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 @@
 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 @@
 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 @@
 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 @@
 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;
 }



Home | Main Index | Thread Index | Old Index