Ticket #2631: block_cacge.diff
File block_cacge.diff, 805 bytes (added by , 16 years ago) |
---|
-
src/system/kernel/cache/block_cache.cpp
771 771 read_only(readOnly), 772 772 deleting(false) 773 773 { 774 mutex_lock(&sCachesLock);775 sCaches.Add(this);776 mutex_unlock(&sCachesLock);777 778 774 condition_variable.Publish(this, "cache transaction sync"); 779 775 780 776 buffer_cache = create_object_cache_etc("block cache buffers", blockSize, … … 793 789 return; 794 790 795 791 mutex_init(&lock, "block cache"); 792 mutex_lock(&sCachesLock); 793 sCaches.Add(this); 796 794 register_low_resource_handler(&block_cache::LowMemoryHandler, this, 797 795 B_KERNEL_RESOURCE_PAGES | B_KERNEL_RESOURCE_MEMORY, 0); 796 mutex_unlock(&sCachesLock); 798 797 } 799 798 800 799