Show Your Support: This site is primarily supported by advertisements. Ads are what have allowed this site to be maintained on a daily basis for the past 18+ years. We do our best to ensure only clean, relevant ads are shown, when any nasty ads are detected, we work to remove them ASAP. If you would like to view the site without ads while still supporting our work, please consider our ad-free Phoronix Premium.
Major Rewrite Of Linux's FS-Cache / CacheFiles So It's Smaller & Simpler
Howells posted a set of 64 patches for rewriting the kernel's fscache and cachefiles code. Linux's fsache is a general purpose cache used by network file-systems while cachefiles is for providing a caching back-end for mounted local file-systems. The Red Hat engineer has been working on this rewrite for more than the past year.
As for the motivation of this major rewrite to FS-Cache and CacheFiles, Howells explained, "significantly simplifying the code compared to what's upstream, removing the complex operation scheduling and object state machine in favour of something much smaller and simpler."
The fscache and cachefiles driver code is almost entirely new as well as being designed to be more future-proof on top of the immediate efficiency and simplicity gains. But there are some issues still to work through as mentioned in the patch email.
See this patch series if the topic interests you or are a big user of Linux network file-systems.