mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
11 lines
177 B
Go
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()))
|
||
|
}
|