title: how does fsync system call work in linux?
body: <p>When write call returns, the data is copied onto some page managed by kernel. That page can contain writes from multiple process. So, when one of the applications issues fsync call, will this result in flushing the whole page, which means flushing other applications data also, but the cost would be incurred by the process which calls fsync. Is this correct?</p>