mount: different write strategy for streaming write and random write

This commit is contained in:
chrislu
2021-12-21 17:28:55 -08:00
parent 4b8dcff448
commit 9a73319b45
4 changed files with 95 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ func newFileHandle(file *File, uid, gid uint32) *FileHandle {
fh := &FileHandle{
f: file,
// dirtyPages: newContinuousDirtyPages(file, writeOnly),
dirtyPages: newTempFileDirtyPages(file),
dirtyPages: newPageWriter(file, 2*1024*1024),
Uid: uid,
Gid: gid,
}