bfs_write() called Volume::WriteCachedBlocksIfNecessary() also on uncached

files which might cause troubles with the VM file.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1061 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2002-09-16 16:06:22 +00:00
parent d801dfdd1c
commit a00ac4bc29

View File

@ -1187,6 +1187,7 @@ bfs_write(void *_ns, void *_node, void *_cookie, off_t pos, const void *buffer,
// It's done here and not in Inode::WriteAt() so that it won't
// add to the duration of a transaction - it might even be a
// good idea to offload those calls to another thread
if ((inode->Flags() & INODE_NO_CACHE) == 0)
volume->WriteCachedBlocksIfNecessary();
return status;