static void * r10buf_pool_alloc(unsigned int __nocast gfp_flags, void *data) 
static void * r10buf_pool_alloc(gfp_t gfp_flags, void *data) 
static void * r10buf_pool_alloc(unsigned int __nocast gfp_flags, void *data){	conf_t *conf = data;	struct page *page;	r10bio_t *r10_bio;	struct bio *bio;	int i, j;	int nalloc;	r10_bio = r10bio_pool_alloc(gfp_flags, conf);	if (!r10_bio) {		unplug_slaves(conf->mddev);		return NULL;	}	if (test_bit(MD_RECOVERY_SYNC, &conf->mddev->recovery))		nalloc = conf->copies; /* resync */	else		nalloc = 2; /* recovery */	/*	 * Allocate bios.	 */	for (j = nalloc ; j-- ; ) {		bio = bio_alloc(gfp_flags, RESYNC_PAGES);		if (!bio)			goto out_free_bio;		r10_bio->devs[j].bio = bio;	}	/*	 * Allocate RESYNC_PAGES data pages and attach them	 * where needed.	 */	for (j = 0 ; j < nalloc; j++) {		bio = r10_bio->devs[j].bio;		for (i = 0; i < RESYNC_PAGES; i++) {			page = alloc_page(gfp_flags);			if (unlikely(!page))				goto out_free_pages;			bio->bi_io_vec[i].bv_page = page;		}	}	return r10_bio;out_free_pages:	for ( ; i > 0 ; i--)		__free_page(bio->bi_io_vec[i-1].bv_page);	while (j--)		for (i = 0; i < RESYNC_PAGES ; i++)			__free_page(r10_bio->devs[j].bio->bi_io_vec[i].bv_page);	j = -1;out_free_bio:	while ( ++j < nalloc )		bio_put(r10_bio->devs[j].bio);	r10bio_pool_free(r10_bio, conf);	return NULL;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/dd0fc66fb33cd610bc1a5db8a5e232d34879b4d7/raid10.c/clean/drivers/md/raid10.c