Skip to content
Snippets Groups Projects
Commit 4fd8693a authored by Gleb Natapov's avatar Gleb Natapov
Browse files

pagecache: track ARC buffers in the pagecache


Current code assumes that for the same file and same offset ZFS will
always return same ARC buffer, but this appears to be not the case.
ZFS may create new ARC buffer while an old one is undergoing writeback.
It means that we need to track mapping between file/offset and mmapped
ARC buffer by ourselves. It's exactly what this patch is about. It adds
new kind of cached page that holds pointers to an ARC buffer and stores
them in new read_cache map.

Signed-off-by: default avatarGleb Natapov <gleb@cloudius-systems.com>
parent b11aa4d1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment