diff options
author | Peter Zijlstra | 2018-12-03 18:03:47 +0100 |
---|---|---|
committer | Ingo Molnar | 2018-12-17 18:54:24 +0100 |
commit | 98bfc9b038cde1ce108f69a50720e394fe774cb7 (patch) | |
tree | 522346cf6cb45c13d17713314494db084537bb97 /net/sched/act_csum.c | |
parent | x86/mm/cpa: Add __cpa_addr() helper (diff) | |
download | kernel-qcow2-linux-98bfc9b038cde1ce108f69a50720e394fe774cb7.tar.gz kernel-qcow2-linux-98bfc9b038cde1ce108f69a50720e394fe774cb7.tar.xz kernel-qcow2-linux-98bfc9b038cde1ce108f69a50720e394fe774cb7.zip |
x86/mm/cpa: Make cpa_data::vaddr invariant
Currently __change_page_attr_set_clr() will modify cpa->vaddr when
!(CPA_ARRAY | CPA_PAGES_ARRAY), whereas in the array cases it will
increment cpa->curpage.
Change __cpa_addr() such that its @idx argument also works in the
!array case and use cpa->curpage increments for all cases.
NOTE: since cpa_data::numpages is 'unsigned long' so should cpa_data::curpage be.
NOTE: after this only cpa->numpages is still modified.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@surriel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tom.StDenis@amd.com
Cc: dave.hansen@intel.com
Link: http://lkml.kernel.org/r/20181203171043.295174892@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/sched/act_csum.c')
0 files changed, 0 insertions, 0 deletions