vfs_subr.c (67812eacd74d5841e890b703d4ec2d5a76288830) | vfs_subr.c (9c8b8baa38c9a8135d7602f127cb0c735010837d) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 |
39 * $Id: vfs_subr.c,v 1.202 1999/06/16 23:27:32 mckusick Exp $ | 39 * $Id: vfs_subr.c,v 1.203 1999/06/26 02:46:10 mckusick Exp $ |
40 */ 41 42/* 43 * External virtual filesystem routines 44 */ 45#include "opt_ddb.h" 46 47#include <sys/param.h> 48#include <sys/systm.h> 49#include <sys/conf.h> 50#include <sys/fcntl.h> 51#include <sys/kernel.h> 52#include <sys/proc.h> | 40 */ 41 42/* 43 * External virtual filesystem routines 44 */ 45#include "opt_ddb.h" 46 47#include <sys/param.h> 48#include <sys/systm.h> 49#include <sys/conf.h> 50#include <sys/fcntl.h> 51#include <sys/kernel.h> 52#include <sys/proc.h> |
53#include <sys/kthread.h> |
|
53#include <sys/malloc.h> 54#include <sys/mount.h> 55#include <sys/socket.h> 56#include <sys/vnode.h> 57#include <sys/stat.h> 58#include <sys/buf.h> 59#include <sys/domain.h> 60#include <sys/dirent.h> --- 841 unchanged lines hidden (view full) --- 902 903 LIST_INSERT_HEAD(&syncer_workitem_pending[slot], vp, v_synclist); 904 vp->v_flag |= VONWORKLST; 905 splx(s); 906} 907 908struct proc *updateproc; 909static void sched_sync __P((void)); | 54#include <sys/malloc.h> 55#include <sys/mount.h> 56#include <sys/socket.h> 57#include <sys/vnode.h> 58#include <sys/stat.h> 59#include <sys/buf.h> 60#include <sys/domain.h> 61#include <sys/dirent.h> --- 841 unchanged lines hidden (view full) --- 903 904 LIST_INSERT_HEAD(&syncer_workitem_pending[slot], vp, v_synclist); 905 vp->v_flag |= VONWORKLST; 906 splx(s); 907} 908 909struct proc *updateproc; 910static void sched_sync __P((void)); |
910static const struct kproc_desc up_kp = { | 911static struct kproc_desc up_kp = { |
911 "syncer", 912 sched_sync, 913 &updateproc 914}; | 912 "syncer", 913 sched_sync, 914 &updateproc 915}; |
915SYSINIT_KT(syncer, SI_SUB_KTHREAD_UPDATE, SI_ORDER_FIRST, kproc_start, &up_kp) | 916SYSINIT(syncer, SI_SUB_KTHREAD_UPDATE, SI_ORDER_FIRST, kproc_start, &up_kp) |
916 917/* 918 * System filesystem synchronizer daemon. 919 */ 920void 921sched_sync(void) 922{ 923 struct synclist *slp; --- 2020 unchanged lines hidden --- | 917 918/* 919 * System filesystem synchronizer daemon. 920 */ 921void 922sched_sync(void) 923{ 924 struct synclist *slp; --- 2020 unchanged lines hidden --- |