Thread (14 messages) 14 messages, 8 authors, 2017-06-09

Re: [PATCH] mm: Define KB, MB, GB, TB in core VM

From: Anshuman Khandual <hidden>
Date: 2017-06-09 02:54:32
Also in: lkml

On 05/29/2017 04:25 PM, Michael Ellerman wrote:
Anshuman Khandual [off-list ref] writes:
quoted
So the question is are we willing to do all these changes across
the tree to achieve common definitions of KB, MB, GB, TB in the
kernel ? Is it worth ?
No I don't think it's worth the churn.

But have you looked at using the "proper" names, ie. KiB, MiB, GiB?

AFAICS the only clash is:

drivers/mtd/ssfdc.c:#define KiB(x)	( (x) * 1024L )
drivers/mtd/ssfdc.c:#define MiB(x)	( KiB(x) * 1024L )

Which would be easy to convert.
Sure, will take a look into generalizing KiB/MiB/GiB instead of
current proposal for KB/MB/GB.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help