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:
parent
6f05787478
commit
06cd40f399
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user