mirror of
https://github.com/prometheus/prometheus.git
synced 2025-10-17 18:41:03 +02: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()))
|
|
}
|