Revert to using specfs_fsync(); using a do-nothing mfs_fsync() does not work

because the filesystem cannot be unmounted since ffs_fsync() will loop forever
trying to empty the v_dirtyblkhd list.
This commit is contained in:
christos 2008-06-02 00:24:28 +00:00
parent 7eba414472
commit ee16aae1e5
1 changed files with 3 additions and 14 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mfs_vnops.c,v 1.51 2008/05/07 21:30:42 ad Exp $ */
/* $NetBSD: mfs_vnops.c,v 1.52 2008/06/02 00:24:28 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mfs_vnops.c,v 1.51 2008/05/07 21:30:42 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: mfs_vnops.c,v 1.52 2008/06/02 00:24:28 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -72,7 +72,7 @@ const struct vnodeopv_entry_desc mfs_vnodeop_entries[] = {
{ &vop_poll_desc, mfs_poll }, /* poll */
{ &vop_revoke_desc, mfs_revoke }, /* revoke */
{ &vop_mmap_desc, mfs_mmap }, /* mmap */
{ &vop_fsync_desc, mfs_fsync }, /* fsync */
{ &vop_fsync_desc, spec_fsync }, /* fsync */
{ &vop_seek_desc, mfs_seek }, /* seek */
{ &vop_remove_desc, mfs_remove }, /* remove */
{ &vop_link_desc, mfs_link }, /* link */
@ -325,14 +325,3 @@ mfs_print(void *v)
mfsp->mfs_baseoff, mfsp->mfs_size);
return (0);
}
/*
* Do a lazy sync of the filesystem.
*/
int
mfs_fsync(v)
void *v;
{
return (0);
}