diff options
author | KyongHo Cho <pullip.cho@samsung.com> | 2011-01-14 00:47:24 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-14 02:32:48 +0100 |
commit | 43506fad21ca3d8dc59e768ff458f7c5e5c01086 (patch) | |
tree | b594f240a780e3547341530fedabb6ac4735ff41 /security/tomoyo | |
parent | brk: fix min_brk lower bound computation for COMPAT_BRK (diff) | |
download | linux-43506fad21ca3d8dc59e768ff458f7c5e5c01086.tar.xz linux-43506fad21ca3d8dc59e768ff458f7c5e5c01086.zip |
mm/page_alloc.c: simplify calculation of combined index of adjacent buddy lists
The previous approach of calucation of combined index was
page_idx & ~(1 << order))
but we have same result with
page_idx & buddy_idx
This reduces instructions slightly as well as enhances readability.
[akpm@linux-foundation.org: coding-style fixes]
[akpm@linux-foundation.org: fix used-unintialised warning]
Signed-off-by: KyongHo Cho <pullip.cho@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'security/tomoyo')
0 files changed, 0 insertions, 0 deletions