Lines Matching refs:b_pages
293 if (bp->b_pages[i]) in xfs_buf_free_pages()
294 __free_page(bp->b_pages[i]); in xfs_buf_free_pages()
298 if (bp->b_pages != bp->b_page_array) in xfs_buf_free_pages()
299 kfree(bp->b_pages); in xfs_buf_free_pages()
300 bp->b_pages = NULL; in xfs_buf_free_pages()
356 bp->b_pages = bp->b_page_array; in xfs_buf_alloc_kmem()
357 bp->b_pages[0] = kmem_to_page(bp->b_addr); in xfs_buf_alloc_kmem()
377 bp->b_pages = bp->b_page_array; in xfs_buf_alloc_pages()
379 bp->b_pages = kzalloc(sizeof(struct page *) * bp->b_page_count, in xfs_buf_alloc_pages()
381 if (!bp->b_pages) in xfs_buf_alloc_pages()
399 bp->b_pages); in xfs_buf_alloc_pages()
430 bp->b_addr = page_address(bp->b_pages[0]); in _xfs_buf_map_pages()
454 bp->b_addr = vm_map_ram(bp->b_pages, bp->b_page_count, in _xfs_buf_map_pages()
1570 rbytes = bio_add_page(bio, bp->b_pages[page_index], nbytes, in xfs_buf_ioapply_map()
1794 page = bp->b_pages[offset >> PAGE_SHIFT]; in xfs_buf_offset()
1813 page = bp->b_pages[page_index]; in xfs_buf_zero()