Cc: Linux Containers <containers@...>, Linux MM Mailing List <linux-mm@...>, Andrew Morton <akpm@...>, Linux Kernel Mailing List <linux-kernel@...>, David Rientjes <rientjes@...>
On 8/29/07, Balbir Singh <balbir@linux.vnet.ibm.com> wrote:
I was thinking the other way around - you can write 1048576 (i.e. 1MB)
to the file and read back 1024. It just seems to me that it's clearer
if you write X to the file to get X back.
How is using a 64-bit value for consistency overkill?
As someone pointed out, 4TB machines probably aren't that far around
the corner (if they're not here already) so even if you use KB rather
than bytes, userspace needs to be using an int64 for this value in
case it ends up running as a 32-bit-compiled app on a 64-bit kernel
with lots of memory.
Paul
-