Remove unneeded vinvalbuf() on backing store as we don't use

VOP_BMAP()/VOP_STRATEGY() here.
This commit is contained in:
hannken 2009-10-17 10:29:29 +00:00
parent 33ec454f0c
commit 58cd15b068

View File

@ -1,4 +1,4 @@
/* $NetBSD: fss.c,v 1.64 2009/10/13 12:37:19 hannken Exp $ */
/* $NetBSD: fss.c,v 1.65 2009/10/17 10:29:29 hannken Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.64 2009/10/13 12:37:19 hannken Exp $");
__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.65 2009/10/17 10:29:29 hannken Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -705,14 +705,6 @@ fss_create_files(struct fss_softc *sc, struct fss_set *fss,
sc->sc_bs_bmask = FSS_FSBSIZE(sc)-1;
}
/*
* As all IO to from/to the backing store goes through
* VOP_STRATEGY() clean the buffer cache to prevent
* cache incoherencies.
*/
if ((error = vinvalbuf(sc->sc_bs_vp, V_SAVE, l->l_cred, l, 0, 0)) != 0)
return error;
return 0;
}