-
- Downloads
pagecache: map zero page instead of ARC page for hole in a file
Attempt to get read ARC buffer for a hole in a file results in temporary ARC buffer which is destroyed immediately after use. It means that mapping such buffer is impossible, it is unmapped before page fault handler return to application. The patch solves this by detecting that hole in a file is accessed and mapping special zero page instead. It is mapped as COW, so on write attempt new page is allocated. Signed-off-by:Gleb Natapov <gleb@cloudius-systems.com> Signed-off-by:
Pekka Enberg <penberg@cloudius-systems.com>
Showing
- bsd/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c 8 additions, 0 deletionsbsd/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c
- core/pagecache.cc 18 additions, 7 deletionscore/pagecache.cc
- fs/vfs/vfs_fops.cc 4 additions, 2 deletionsfs/vfs/vfs_fops.cc
- include/osv/prio.hh 1 addition, 0 deletionsinclude/osv/prio.hh
- include/osv/vfs_file.hh 1 addition, 1 deletioninclude/osv/vfs_file.hh
Please register or sign in to comment