fixed a typo and make sure we have a file cache

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18691 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2006-08-29 12:50:25 +00:00
parent 0ab73f2b26
commit 3e4cd38cfc

View File

@ -1056,9 +1056,9 @@ dosfs_sync(void *_vol)
static status_t
dosfs_fsync(void *_vol, void *_node)
{
nspace *vol = (nspace *)vol;
nspace *vol = (nspace *)_vol;
vnode *node = (vnode *)_node;
status_t err;
status_t err = B_OK;
LOCK_VOL(vol);
@ -1067,6 +1067,7 @@ dosfs_fsync(void *_vol, void *_node)
return EINVAL;
}
if (node->cache)
err = file_cache_sync(node->cache);
UNLOCK_VOL(vol);