Re: [PATCH] mm: use proper type for cma_[alloc|release]

2021-03-31 Thread David Hildenbrand
On 31.03.21 18:40, Minchan Kim wrote: size_t in cma_alloc is confusing since it makes people think it's byte count, not pages. Change it to unsigned long[1]. The unsigned int in cma_release is also not right so change it. Since we have unsigned long in cma_release, free_contig_range should also

[PATCH] mm: use proper type for cma_[alloc|release]

2021-03-31 Thread Minchan Kim
size_t in cma_alloc is confusing since it makes people think it's byte count, not pages. Change it to unsigned long[1]. The unsigned int in cma_release is also not right so change it. Since we have unsigned long in cma_release, free_contig_range should also respect it. [1] 67a2e213e7e9, mm: cma: