Re: [PATCH] genalloc: Make the avail variable an atomic64_t
From: Logan Gunthorpe
Date: Wed Oct 25 2017 - 14:11:17 EST
On 25/10/17 11:55 AM, Daniel Mentz wrote:
avail is defined as size_t (32 bit). Aren't you going to overflow that variable?
I think the point is to get support for 64-bit systems (ie. ARM64 and
x64. We're working with large PCI BARs and need some way to allocate
memory from them. You aren't likely to ever get >4GB chunks on 32-bit
systems but you certainly can on 64-bit systems.
Logan