Forgot to replace the error code with the new "mayBlock" logic, thanks Ingo!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22437 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2007-10-04 15:11:48 +00:00
parent 6f05787478
commit 06cd40f399

View File

@ -354,7 +354,7 @@ bfs_read_pages(fs_volume _fs, fs_vnode _node, fs_cookie _cookie, off_t pos,
if (mayBlock)
inode->Lock().Lock();
else if (inode->Lock().TryLock() < B_OK)
return B_BUSY;
return B_WOULD_BLOCK;
}
status_t status = file_cache_read_pages(inode->FileCache(), pos, vecs,
@ -381,7 +381,7 @@ bfs_write_pages(fs_volume _fs, fs_vnode _node, fs_cookie _cookie, off_t pos,
if (mayBlock)
inode->Lock().Lock();
else if (inode->Lock().TryLock() < B_OK)
return B_BUSY;
return B_WOULD_BLOCK;
}
status_t status = file_cache_write_pages(inode->FileCache(), pos, vecs,