lib/fs: typo fix: read blocks bigger than 8KB via pread() call instead of using mmap

This commit is contained in:
Aliaksandr Valialkin 2020-02-25 18:04:04 +02:00
parent ca28a3e805
commit 7a045125cc

View file

@ -32,7 +32,7 @@ func (r *ReaderAt) MustReadAt(p []byte, off int64) {
if len(p) == 0 {
return
}
if len(r.mmapData) == 0 || len(p) > 8*1024*1024 {
if len(r.mmapData) == 0 || len(p) > 8*1024 {
// Read big blocks directly from file.
// This could be faster than reading these blocks from mmap,
// since it triggers less page faults.