The fs_shell cache implementation had the same problem as our real cache
until r22998 - but since this was the only implementation, its consequences were much more likely. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23000 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -89,8 +89,8 @@ read_from_file(file_cache_ref *ref, void *cookie, fssh_off_t offset,
|
|||||||
|
|
||||||
mutex_unlock(&ref->lock);
|
mutex_unlock(&ref->lock);
|
||||||
|
|
||||||
fssh_status_t status = vfs_read_pages(ref->node, cookie, offset, &vec, 1,
|
fssh_status_t status = vfs_read_pages(ref->node, cookie,
|
||||||
&bufferSize, false);
|
offset + pageOffset, &vec, 1, &bufferSize, false);
|
||||||
|
|
||||||
mutex_lock(&ref->lock);
|
mutex_lock(&ref->lock);
|
||||||
|
|
||||||
@@ -108,8 +108,8 @@ write_to_file(file_cache_ref *ref, void *cookie, fssh_off_t offset,
|
|||||||
|
|
||||||
mutex_unlock(&ref->lock);
|
mutex_unlock(&ref->lock);
|
||||||
|
|
||||||
fssh_status_t status = vfs_write_pages(ref->node, cookie, offset, &vec, 1,
|
fssh_status_t status = vfs_write_pages(ref->node, cookie,
|
||||||
&bufferSize, false);
|
offset + pageOffset, &vec, 1, &bufferSize, false);
|
||||||
|
|
||||||
mutex_lock(&ref->lock);
|
mutex_lock(&ref->lock);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user