The possible demise of remap_file_pages()
That said, there are few users of remap_file_pages() out there.
So few that Kirill Shutemov has posted a patch
set to remove it entirely, saying "Nonlinear mappings are pain to
support and it seems there's no legitimate use-cases nowadays since 64-bit
systems are widely available.
" The patch is not something he is
proposing for merging yet; it's more of a proof of concept at this point.
It is easy to see the appeal of this change; it removes 600+ lines of
tricky code from the kernel. But that removal will go nowhere if it
constitutes an ABI break. Some kernel developers clearly believe that no
users will notice if remap_file_pages() goes away, but going from
that belief to potentially breaking applications is a big step. So there
is talk of adding a warning to the kernel; Peter Zijlstra suggested going a step further and require
setting a sysctl knob to make the system call active. But it would also
help if current users of remap_file_pages() would make themselves
known; speaking now could save some trouble in the future.
| Index entries for this article | |
|---|---|
| Kernel | remap_file_pages() |