Messages in this thread | | | Date | Mon, 20 Jul 2015 10:35:02 -0500 (CDT) | From | Christoph Lameter <> | Subject | Re: [PATCH 3/3] percpu: add macro PCPU_CHUNK_AREA_IN_USE |
| |
On Mon, 20 Jul 2015, Baoquan He wrote:
> chunk->map[] contains <offset|in-use flag> of each area. Now add a > new macro PCPU_CHUNK_AREA_IN_USE and use it as the in-use flag to > replace all magic number '1'.
Hmmm... This is a bitflag and the code now looks like there is some sort of bitmask that were are using. Use bitops or something else that clearly implies that a bit is flipped instead?
| |