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:
Axel Dörfler 2007-11-26 16:02:10 +00:00
parent bade8d7b70
commit d0007186e5

View File

@ -89,8 +89,8 @@ read_from_file(file_cache_ref *ref, void *cookie, fssh_off_t offset,
mutex_unlock(&ref->lock);
fssh_status_t status = vfs_read_pages(ref->node, cookie, offset, &vec, 1,
&bufferSize, false);
fssh_status_t status = vfs_read_pages(ref->node, cookie,
offset + pageOffset, &vec, 1, &bufferSize, false);
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);
fssh_status_t status = vfs_write_pages(ref->node, cookie, offset, &vec, 1,
&bufferSize, false);
fssh_status_t status = vfs_write_pages(ref->node, cookie,
offset + pageOffset, &vec, 1, &bufferSize, false);
mutex_lock(&ref->lock);