2 * kernel/power/tuxonice_pageflags.c
4 * Copyright (C) 2004-2010 Nigel Cunningham (nigel at tuxonice net)
6 * This file is released under the GPLv2.
8 * Routines for serialising and relocating pageflags in which we
9 * store our image metadata.
12 #include <linux/list.h>
13 #include <linux/module.h>
14 #include "tuxonice_pageflags.h"
17 int toi_pageflags_space_needed(void)
22 total
= sizeof(unsigned int);
24 list_for_each_entry(bb
, &pageset1_map
->blocks
, hook
)
25 total
+= 2 * sizeof(unsigned long) + PAGE_SIZE
;
29 EXPORT_SYMBOL_GPL(toi_pageflags_space_needed
);