prometheus/pages/pages_linux.go
2016-11-15 15:53:48 +01:00

11 lines
177 B
Go

package pages
import (
"syscall"
)
// fdatasync flushes written data to a file descriptor.
func fdatasync(pb *Pagebuf) error {
return syscall.Fdatasync(int(pb.file.Fd()))
}