There's no reason for allocating with CACHE_DONT_SLEEP. The only thing that

would get us is that the allocations could fail when they wouldn't need to.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35242 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-01-22 20:01:26 +00:00
parent 8a65066a11
commit e54d40e826

View File

@ -709,7 +709,7 @@ allocate_data_header()
atomic_add(&sAllocatedDataHeaderCount, 1);
atomic_add(&sEverAllocatedDataHeaderCount, 1);
#endif
return (data_header*)object_cache_alloc(sDataNodeCache, CACHE_DONT_SLEEP);
return (data_header*)object_cache_alloc(sDataNodeCache, 0);
}
@ -720,8 +720,7 @@ allocate_net_buffer()
atomic_add(&sAllocatedNetBufferCount, 1);
atomic_add(&sEverAllocatedNetBufferCount, 1);
#endif
return (net_buffer_private*)object_cache_alloc(sNetBufferCache,
CACHE_DONT_SLEEP);
return (net_buffer_private*)object_cache_alloc(sNetBufferCache, 0);
}