buffers: Allow for the buffer cache to be expandable.
authorAlan Cox <alan@linux.intel.com>
Mon, 12 Oct 2015 21:58:27 +0000 (22:58 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 12 Oct 2015 21:58:27 +0000 (22:58 +0100)
commit95e8615b743c5db3cc54abf0a8a64f4fc2042d26
tree4a8f104f59f10584eb14f5828fd2d78cf59c0d47
parentf4be76372f9c7d43dfa9488786761ec36f641a9c
buffers: Allow for the buffer cache to be expandable.

Some of our platforms have no userspace mapped when in kernel space. That
prevents them putting the discard code/data into the userspace area during
boot and binning it when loading init over the top.

Instead we allow the buffer cache to grow. The platform can then put the
buffer cache just before the discard area, and once the root fs is mounted
and we are ready to load init we can convert the entire discard area into
cache pages.

Even better we only need enough buffers to mount the root fs to be present
at boot time (2 or 3).
Kernel/devio.c
Kernel/include/kdata.h
Kernel/kdata.c
Kernel/start.c