Lines Matching refs:b_pages

287 	if (bp->b_pages == NULL) {  in _xfs_buf_get_pages()
290 bp->b_pages = bp->b_page_array; in _xfs_buf_get_pages()
292 bp->b_pages = kmem_alloc(sizeof(struct page *) * in _xfs_buf_get_pages()
294 if (bp->b_pages == NULL) in _xfs_buf_get_pages()
297 memset(bp->b_pages, 0, sizeof(struct page *) * page_count); in _xfs_buf_get_pages()
309 if (bp->b_pages != bp->b_page_array) { in _xfs_buf_free_pages()
310 kmem_free(bp->b_pages); in _xfs_buf_free_pages()
311 bp->b_pages = NULL; in _xfs_buf_free_pages()
338 struct page *page = bp->b_pages[i]; in xfs_buf_free()
385 bp->b_pages = bp->b_page_array; in xfs_buf_allocate_memory()
386 bp->b_pages[0] = virt_to_page(bp->b_addr); in xfs_buf_allocate_memory()
437 bp->b_pages[i] = page; in xfs_buf_allocate_memory()
444 __free_page(bp->b_pages[i]); in xfs_buf_allocate_memory()
460 bp->b_addr = page_address(bp->b_pages[0]) + bp->b_offset; in _xfs_buf_map_pages()
477 bp->b_addr = vm_map_ram(bp->b_pages, bp->b_page_count, in _xfs_buf_map_pages()
880 if (bp->b_pages) in xfs_buf_set_empty()
883 bp->b_pages = NULL; in xfs_buf_set_empty()
925 if (bp->b_pages) in xfs_buf_associate_memory()
928 bp->b_pages = NULL; in xfs_buf_associate_memory()
938 bp->b_pages[i] = mem_to_page((void *)pageaddr); in xfs_buf_associate_memory()
970 bp->b_pages[i] = alloc_page(xb_to_gfp(flags)); in xfs_buf_get_uncached()
971 if (!bp->b_pages[i]) in xfs_buf_get_uncached()
988 __free_page(bp->b_pages[i]); in xfs_buf_get_uncached()
1352 rbytes = bio_add_page(bio, bp->b_pages[page_index], nbytes, in xfs_buf_ioapply_map()
1573 page = bp->b_pages[offset >> PAGE_SHIFT]; in xfs_buf_offset()
1597 page = bp->b_pages[page_index]; in xfs_buf_iomove()