vfs_mount.c (325f13989b72bd3c4c8f799a029725cd894ceb7a) vfs_mount.c (0429e37ade0f33fd1159e425bfa5a5d531b3e8a1)
1/*-
2 * Copyright (c) 1999 Michael Smith
3 * All rights reserved.
4 * Copyright (c) 1999 Poul-Henning Kamp
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 199 unchanged lines hidden (view full) ---

208 if (error != 0) {
209 if (mp != NULL)
210 free(mp, M_MOUNT);
211 printf("Root mount failed: %d\n", error);
212 } else {
213
214 /* register with list of mounted filesystems */
215 simple_lock(&mountlist_slock);
1/*-
2 * Copyright (c) 1999 Michael Smith
3 * All rights reserved.
4 * Copyright (c) 1999 Poul-Henning Kamp
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 199 unchanged lines hidden (view full) ---

208 if (error != 0) {
209 if (mp != NULL)
210 free(mp, M_MOUNT);
211 printf("Root mount failed: %d\n", error);
212 } else {
213
214 /* register with list of mounted filesystems */
215 simple_lock(&mountlist_slock);
216 CIRCLEQ_INSERT_HEAD(&mountlist, mp, mnt_list);
216 TAILQ_INSERT_HEAD(&mountlist, mp, mnt_list);
217 simple_unlock(&mountlist_slock);
218
219 /* sanity check system clock against root filesystem timestamp */
220 inittodr(mp->mnt_time);
221 }
222 if (mp != NULL)
223 vfs_unbusy(mp, curproc);
224 return(error);

--- 134 unchanged lines hidden ---
217 simple_unlock(&mountlist_slock);
218
219 /* sanity check system clock against root filesystem timestamp */
220 inittodr(mp->mnt_time);
221 }
222 if (mp != NULL)
223 vfs_unbusy(mp, curproc);
224 return(error);

--- 134 unchanged lines hidden ---