Added a "reenter" parameter to the {read|write}_pages() functions to give file
systems a chance to know if they have locked already. This fixes a locking problem in BFS where one thread tried to acquire two read locks (where someone else trying to acquire a write lock would have caused a dead lock). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17108 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -34,7 +34,7 @@ status_t vm_page_set_state(vm_page *page, int state);
|
||||
size_t vm_page_num_pages(void);
|
||||
size_t vm_page_num_free_pages(void);
|
||||
|
||||
status_t vm_page_write_modified(vm_cache *cache);
|
||||
status_t vm_page_write_modified(vm_cache *cache, bool fsReenter);
|
||||
|
||||
vm_page *vm_page_allocate_page(int state);
|
||||
status_t vm_page_allocate_pages(int pageState, vm_page **pages, uint32 numPages);
|
||||
|
||||
Reference in New Issue
Block a user