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:
parent
0ab73f2b26
commit
3e4cd38cfc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user