diff options
author | Miles Bader <miles@gnu.org> | 1995-05-09 17:09:51 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-05-09 17:09:51 +0000 |
commit | f55b7ff594785b860908f46ecf36296cff88322a (patch) | |
tree | 13f43840a1bfe643a17a0bf55f542bb575c39652 /ext2fs | |
parent | 5936df9ebe8a41c0ef3c44023079f547d2253f87 (diff) |
Formerly pokel.c.~11~
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/pokel.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext2fs/pokel.c b/ext2fs/pokel.c index 4f9c63a7..c65043f0 100644 --- a/ext2fs/pokel.c +++ b/ext2fs/pokel.c @@ -1,4 +1,4 @@ -/* Remember where we've written the disk to speed up sync +/* A data structure to remember modifications to a memory region. Copyright (C) 1995 Free Software Foundation, Inc. @@ -38,6 +38,8 @@ pokel_add (struct pokel *pokel, void *loc, vm_size_t length) vm_offset_t offset = trunc_page (loc - pokel->image); vm_offset_t end = round_page (loc + length - pokel->image); + ext2_debug ("adding %p[%ul] (range 0x%x to 0x%x)", loc, length, offset, end); + spin_lock (&pokel->lock); pl = pokel->pokes; @@ -52,6 +54,8 @@ pokel_add (struct pokel *pokel, void *loc, vm_size_t length) { pl->offset = offset < p_offs ? offset : p_offs; pl->length = (end > p_end ? end : p_end) - pl->offset; + ext2_debug ("extended 0x%x[%ul] to 0x%x[%ul]", + p_offs, p_end - p_offs, pl->offset, pl->length); break; } @@ -84,6 +88,7 @@ pokel_sync (struct pokel *pokel, int wait) for (pl = pokel->pokes; pl; pl = next) { + ext2_debug ("syncing 0x%x[%ul]", pl->offset, pl->length); pager_sync_some (pokel->pager, pl->offset, pl->length, wait); next = pl->next; pl->next = pokel->free_pokes; |