Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1647399

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

From Andrew Morton <akpm@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH] mm: Define KB, MB, GB, TB in core VM
Date 2017-05-22 23:20 +0200
Message-ID <tK2Ua-2m2-17@gated-at.bofh.it> (permalink)
References <tJTxw-50U-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 22 May 2017 16:47:42 +0530 Anshuman Khandual <khandual@linux.vnet.ibm.com> wrote:

> There are many places where we define size either left shifting integers
> or multiplying 1024s without any generic definition to fall back on. But
> there are couples of (powerpc and lz4) attempts to define these standard
> memory sizes. Lets move these definitions to core VM to make sure that
> all new usage come from these definitions eventually standardizing it
> across all places.

Grep further - there are many more definitions and some may now
generate warnings.

Newly including mm.h for these things seems a bit heavyweight.  I can't
immediately think of a more appropriate place.  Maybe printk.h or
kernel.h.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] mm: Define KB, MB, GB, TB in core VM Anshuman Khandual <khandual@linux.vnet.ibm.com> - 2017-05-22 13:20 +0200
  Re: [PATCH] mm: Define KB, MB, GB, TB in core VM Andrew Morton <akpm@linux-foundation.org> - 2017-05-22 23:20 +0200
    Re: [PATCH] mm: Define KB, MB, GB, TB in core VM Christoph Hellwig <hch@infradead.org> - 2017-05-23 09:10 +0200
      Re: [PATCH] mm: Define KB, MB, GB, TB in core VM Vlastimil Babka <vbabka@suse.cz> - 2017-05-23 10:40 +0200
        Re: [PATCH] mm: Define KB, MB, GB, TB in core VM Christoph Hellwig <hch@infradead.org> - 2017-05-23 10:50 +0200
        Re: [PATCH] mm: Define KB, MB, GB, TB in core VM Anshuman Khandual <khandual@linux.vnet.ibm.com> - 2017-05-23 13:30 +0200
          Re: [PATCH] mm: Define KB, MB, GB, TB in core VM Anshuman Khandual <khandual@linux.vnet.ibm.com> - 2017-05-24 08:50 +0200
            Re: [PATCH] mm: Define KB, MB, GB, TB in core VM Michal Hocko <mhocko@kernel.org> - 2017-05-24 16:40 +0200
    Re: [PATCH] mm: Define KB, MB, GB, TB in core VM Anshuman Khandual <khandual@linux.vnet.ibm.com> - 2017-05-23 13:20 +0200
  Re: [PATCH] mm: Define KB, MB, GB, TB in core VM kbuild test robot <lkp@intel.com> - 2017-05-23 08:50 +0200

csiph-web