Lines Matching refs:b_page_count
74 return bp->b_addr && bp->b_page_count > 1; in xfs_buf_is_vmapped()
81 return (bp->b_page_count * PAGE_SIZE); in xfs_buf_vmap_len()
283 vm_unmap_ram(bp->b_addr, bp->b_page_count); in xfs_buf_free_pages()
285 for (i = 0; i < bp->b_page_count; i++) { in xfs_buf_free_pages()
289 mm_account_reclaimed_pages(bp->b_page_count); in xfs_buf_free_pages()
349 bp->b_page_count = 1; in xfs_buf_alloc_kmem()
368 bp->b_page_count = DIV_ROUND_UP(BBTOB(bp->b_length), PAGE_SIZE); in xfs_buf_alloc_pages()
369 if (bp->b_page_count <= XB_PAGES) { in xfs_buf_alloc_pages()
372 bp->b_pages = kzalloc(sizeof(struct page *) * bp->b_page_count, in xfs_buf_alloc_pages()
391 filled = alloc_pages_bulk_array(gfp_mask, bp->b_page_count, in xfs_buf_alloc_pages()
393 if (filled == bp->b_page_count) { in xfs_buf_alloc_pages()
421 if (bp->b_page_count == 1) { in _xfs_buf_map_pages()
440 bp->b_addr = vm_map_ram(bp->b_pages, bp->b_page_count, in _xfs_buf_map_pages()
729 bp->b_page_count); in xfs_buf_get_map()
1462 unsigned int total_nr_pages = bp->b_page_count; in xfs_buf_ioapply_map()