Deleted Added
full compact
md.c (98747) md.c (102291)
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
9 * $FreeBSD: head/sys/dev/md/md.c 98747 2002-06-24 12:07:02Z mux $
9 * $FreeBSD: head/sys/dev/md/md.c 102291 2002-08-22 21:24:01Z archie $
10 *
11 */
12
13/*
14 * The following functions are based in the vn(4) driver: mdstart_swap(),
15 * mdstart_vnode(), mdcreate_swap(), mdcreate_vnode() and mddestroy(),
16 * and as such under the following copyright:
17 *

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

344 return (0);
345 li--;
346 while (cip->used == 0 && cip != ip) {
347 li--;
348 idx = (offset >> lip[li]->shift) & NMASK;
349 up = lip[li]->array[idx];
350 KASSERT(up == (uintptr_t)cip, ("md screwed up"));
351 del_indir(cip);
10 *
11 */
12
13/*
14 * The following functions are based in the vn(4) driver: mdstart_swap(),
15 * mdstart_vnode(), mdcreate_swap(), mdcreate_vnode() and mddestroy(),
16 * and as such under the following copyright:
17 *

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

344 return (0);
345 li--;
346 while (cip->used == 0 && cip != ip) {
347 li--;
348 idx = (offset >> lip[li]->shift) & NMASK;
349 up = lip[li]->array[idx];
350 KASSERT(up == (uintptr_t)cip, ("md screwed up"));
351 del_indir(cip);
352 lip[li]->array[idx] = NULL;
352 lip[li]->array[idx] = 0;
353 lip[li]->used--;
354 cip = lip[li];
355 }
356 return (0);
357}
358
359static int
360mdopen(dev_t dev, int flag, int fmt, struct thread *td)

--- 796 unchanged lines hidden ---
353 lip[li]->used--;
354 cip = lip[li];
355 }
356 return (0);
357}
358
359static int
360mdopen(dev_t dev, int flag, int fmt, struct thread *td)

--- 796 unchanged lines hidden ---