Linus Torvalds writes: (Summary)
Of course, that at least doesn't trigger for the simple cases - only
_PAGE_CACHE_WP and _PAGE_NOCACHE end up triggering that
"cachemode2protval()" case.
"cachemode2protval()" case.
I do wonder if we could perhaps at least try to unify these things a bit, and export just one thing.
bit, and export just one thing.
And maybe avoid accessing two completely different memory locasions every time we use _PAGE_KERNEL or whatever.
every time we use _PAGE_KERNEL or whatever.
But it all looks rather nasty, so for 4.14 clearly I should just apply that trivial one-liner patch for now.
that trivial one-liner patch for now.
Linus
Linus
Linus
"cachemode2protval()" case.
I do wonder if we could perhaps at least try to unify these things a bit, and export just one thing.
bit, and export just one thing.
And maybe avoid accessing two completely different memory locasions every time we use _PAGE_KERNEL or whatever.
every time we use _PAGE_KERNEL or whatever.
But it all looks rather nasty, so for 4.14 clearly I should just apply that trivial one-liner patch for now.
that trivial one-liner patch for now.
Linus
Linus
Linus