fdatasync
A POSIX system call that forces a file's data blocks (but not metadata) to disk, faster than fsync but weaker guarantees.
fdatasync() is the POSIX system call that pushes a file's data content to disk without waiting for metadata updates. If you only care about file contents (not ownership or modification times), fdatasync() saves one disk write compared to fsync(). Databases use this to minimize I/O stalls. The opposite, fsync(), forces both data and metadata, taking longer but guaranteeing that the file's inode is consistent if the system crashes. The choice between them depends on how much metadata staleness you can tolerate.