git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Second Extended Filesystem (ext2) and other improvements (#33)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
mm
/
cake_export.c
diff --git
a/lunaix-os/kernel/mm/cake_export.c
b/lunaix-os/kernel/mm/cake_export.c
index 956423b2a8eaf53e4b72c3a78bb8f776b692ff91..377a9adea8b06d2cf23ee93c5f565942cf64c8bf 100644
(file)
--- a/
lunaix-os/kernel/mm/cake_export.c
+++ b/
lunaix-os/kernel/mm/cake_export.c
@@
-17,7
+17,8
@@
__cake_stat_gonext(struct twimap* map)
void
__cake_stat_reset(struct twimap* map)
{
void
__cake_stat_reset(struct twimap* map)
{
- map->index = container_of(piles.next, struct cake_pile, piles);
+ map->index = container_of(&piles, struct cake_pile, piles);
+ twimap_printf(map, "name, n_cakes, pg/cake, slices/cake, n_slices\n");
}
void
}
void
@@
-98,7
+99,6
@@
cake_export()
map->reset = __cake_stat_reset;
map->go_next = __cake_stat_gonext;
map->read = __cake_rd_stat;
map->reset = __cake_stat_reset;
map->go_next = __cake_stat_gonext;
map->read = __cake_rd_stat;
- __cake_stat_reset(map);
struct cake_pile *pos, *n;
llist_for_each(pos, n, &piles, piles)
struct cake_pile *pos, *n;
llist_for_each(pos, n, &piles, piles)