vfs_bio.c (b4b3edc1f44952a009c9b9841336867a96474d49) vfs_bio.c (ab3f746966bcd7ebe250f3f198c4a7624456cc27)
1/*
2 * Copyright (c) 1994 John S. Dyson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

13 * documentation and/or other materials provided with the distribution.
14 * 3. Absolutely no warranty of function or purpose is made by the author
15 * John S. Dyson.
16 * 4. This work was done expressly for inclusion into FreeBSD. Other use
17 * is allowed if this notation is included.
18 * 5. Modifications may be freely made to this file if the above conditions
19 * are met.
20 *
1/*
2 * Copyright (c) 1994 John S. Dyson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

13 * documentation and/or other materials provided with the distribution.
14 * 3. Absolutely no warranty of function or purpose is made by the author
15 * John S. Dyson.
16 * 4. This work was done expressly for inclusion into FreeBSD. Other use
17 * is allowed if this notation is included.
18 * 5. Modifications may be freely made to this file if the above conditions
19 * are met.
20 *
21 * $Id: vfs_bio.c,v 1.135 1997/11/24 06:18:27 dyson Exp $
21 * $Id: vfs_bio.c,v 1.136 1997/12/01 19:04:00 dyson Exp $
22 */
23
24/*
25 * this file contains a new buffer I/O scheme implementing a coherent
26 * VM object and buffer cache scheme. Pains have been taken to make
27 * sure that the performance degradation associated with schemes such
28 * as this is not realized.
29 *

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

2228
2229 db_printf("b_proc = %p,\nb_flags = 0x%b\n", (void *)bp->b_proc,
2230 bp->b_flags, "\20\40bounce\37cluster\36vmio\35ram\34ordered"
2231 "\33paging\32xxx\31writeinprog\30wanted\27relbuf\26tape"
2232 "\25read\24raw\23phys\22clusterok\21malloc\20nocache"
2233 "\17locked\16inval\15gathered\14error\13eintr\12done\11dirty"
2234 "\10delwri\7call\6cache\5busy\4bad\3async\2needcommit\1age");
2235 db_printf("b_error = %d, b_bufsize = %ld, b_bcount = %ld, "
22 */
23
24/*
25 * this file contains a new buffer I/O scheme implementing a coherent
26 * VM object and buffer cache scheme. Pains have been taken to make
27 * sure that the performance degradation associated with schemes such
28 * as this is not realized.
29 *

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

2228
2229 db_printf("b_proc = %p,\nb_flags = 0x%b\n", (void *)bp->b_proc,
2230 bp->b_flags, "\20\40bounce\37cluster\36vmio\35ram\34ordered"
2231 "\33paging\32xxx\31writeinprog\30wanted\27relbuf\26tape"
2232 "\25read\24raw\23phys\22clusterok\21malloc\20nocache"
2233 "\17locked\16inval\15gathered\14error\13eintr\12done\11dirty"
2234 "\10delwri\7call\6cache\5busy\4bad\3async\2needcommit\1age");
2235 db_printf("b_error = %d, b_bufsize = %ld, b_bcount = %ld, "
2236 "b_resid = %ld\nb_dev = 0x%x, b_un.b_addr = %p, "
2236 "b_resid = %ld\nb_dev = 0x%x, b_data = %p, "
2237 "b_blkno = %d, b_pblkno = %d\n",
2238 bp->b_error, bp->b_bufsize, bp->b_bcount, bp->b_resid,
2237 "b_blkno = %d, b_pblkno = %d\n",
2238 bp->b_error, bp->b_bufsize, bp->b_bcount, bp->b_resid,
2239 bp->b_dev, bp->b_un.b_addr, bp->b_blkno, bp->b_pblkno);
2239 bp->b_dev, bp->b_data, bp->b_blkno, bp->b_pblkno);
2240 if (bp->b_npages) {
2241 int i;
2242 db_printf("b_npages = %d, pages(OBJ, IDX, PA): ", bp->b_npages);
2243 for (i = 0; i < bp->b_npages; i++) {
2244 vm_page_t m;
2245 m = bp->b_pages[i];
2246 db_printf("(0x%x, 0x%x, 0x%x)", m->object, m->pindex,
2247 VM_PAGE_TO_PHYS(m));
2248 if ((i + 1) < bp->b_npages)
2249 db_printf(",");
2250 }
2251 db_printf("\n");
2252 }
2253}
2254#endif /* DDB */
2240 if (bp->b_npages) {
2241 int i;
2242 db_printf("b_npages = %d, pages(OBJ, IDX, PA): ", bp->b_npages);
2243 for (i = 0; i < bp->b_npages; i++) {
2244 vm_page_t m;
2245 m = bp->b_pages[i];
2246 db_printf("(0x%x, 0x%x, 0x%x)", m->object, m->pindex,
2247 VM_PAGE_TO_PHYS(m));
2248 if ((i + 1) < bp->b_npages)
2249 db_printf(",");
2250 }
2251 db_printf("\n");
2252 }
2253}
2254#endif /* DDB */