Lines Matching refs:num_pages
1105 unsigned long num_pages) in cluster_pages_for_defrag() argument
1124 page_cnt = min_t(u64, (u64)num_pages, (u64)file_end - start_index + 1); in cluster_pages_for_defrag()
2817 int num_pages, u64 off) in gather_extent_pages() argument
2822 for (i = 0; i < num_pages; i++) { in gather_extent_pages()
2915 int num_pages; member
2925 for (i = 0; i < cmp->num_pages; i++) { in btrfs_cmp_data_free()
2946 int num_pages = PAGE_CACHE_ALIGN(len) >> PAGE_CACHE_SHIFT; in btrfs_cmp_data_prepare() local
2955 src_pgarr = kzalloc(num_pages * sizeof(struct page *), GFP_NOFS); in btrfs_cmp_data_prepare()
2956 dst_pgarr = kzalloc(num_pages * sizeof(struct page *), GFP_NOFS); in btrfs_cmp_data_prepare()
2962 cmp->num_pages = num_pages; in btrfs_cmp_data_prepare()
2966 ret = gather_extent_pages(src, cmp->src_pages, cmp->num_pages, loff); in btrfs_cmp_data_prepare()
2970 ret = gather_extent_pages(dst, cmp->dst_pages, cmp->num_pages, dst_loff); in btrfs_cmp_data_prepare()
2992 BUG_ON(i >= cmp->num_pages); in btrfs_cmp_data()