Searched refs:RESYNC_PAGES (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/md/ |
H A D | raid1-10.c | 4 #define RESYNC_PAGES ((RESYNC_BLOCK_SIZE + PAGE_SIZE-1) / PAGE_SIZE) macro 29 struct page *pages[RESYNC_PAGES]; 48 for (i = 0; i < RESYNC_PAGES; i++) { in resync_alloc_pages() 66 for (i = 0; i < RESYNC_PAGES; i++) in resync_free_pages() 74 for (i = 0; i < RESYNC_PAGES; i++) in resync_get_all_pages() 81 if (WARN_ON_ONCE(idx >= RESYNC_PAGES)) in resync_fetch_page() 113 } while (idx++ < RESYNC_PAGES && size > 0); in md_bio_reset_resync_pages()
|
H A D | raid10.c | 163 bio = bio_kmalloc(RESYNC_PAGES, gfp_flags); in r10buf_pool_alloc() 166 bio_init(bio, NULL, bio->bi_inline_vecs, RESYNC_PAGES, 0); in r10buf_pool_alloc() 170 bio = bio_kmalloc(RESYNC_PAGES, gfp_flags); in r10buf_pool_alloc() 173 bio_init(bio, NULL, bio->bi_inline_vecs, RESYNC_PAGES, 0); in r10buf_pool_alloc() 3443 max_sync = RESYNC_PAGES << (PAGE_SHIFT-9); in raid10_sync_request() 3844 } while (++page_idx < RESYNC_PAGES); in raid10_sync_request() 4939 read_bio = bio_alloc_bioset(rdev->bdev, RESYNC_PAGES, REQ_OP_READ, in reshape_request()
|
H A D | raid1.c | 168 bio = bio_kmalloc(RESYNC_PAGES, gfp_flags); in r1buf_pool_alloc() 171 bio_init(bio, NULL, bio->bi_inline_vecs, RESYNC_PAGES, 0); in r1buf_pool_alloc() 2187 int page_len[RESYNC_PAGES] = { 0 }; in process_checks() 2920 } while (++page_idx < RESYNC_PAGES); in raid1_sync_request()
|