struct pbe *alloc_pagedir(unsigned nr_pages) 
struct pbe *alloc_pagedir(unsigned int nr_pages) 
struct pbe *alloc_pagedir(unsigned nr_pages){	unsigned num;	struct pbe *pblist, *pbe;	if (!nr_pages)		return NULL;	pr_debug("alloc_pagedir(): nr_pages = %d\n", nr_pages);	pblist = alloc_image_page();	/* FIXME: rewrite this ugly loop */	for (pbe = pblist, num = PBES_PER_PAGE; pbe && num < nr_pages;        		pbe = pbe->next, num += PBES_PER_PAGE) {		pbe += PB_PAGE_SKIP;		pbe->next = alloc_image_page();	}	if (!pbe) { /* get_zeroed_page() failed */		free_pagedir(pblist);		pblist = NULL;        }	return pblist;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/dc19d507b17135069d9c5d6093d4458dc60e1861/snapshot.c/buggy/kernel/power/snapshot.c