|
|
|
|
|
by afr0ck
1079 days ago
|
|
I don't know what you're talking about, but msync() flushes only the pages in that range. The pages are in the page cache (on Linux, it's a per-file xarray [1] of pages). Once all the dirty pages in the range are located, they go through the filesystem to be mapped to block numbers and then submitted to the block layer to be written to the storage device. Only the disk blocks mapped to the pages in that range will be written. Source: I'm a Linux kernel developer. [1] https://docs.kernel.org/core-api/xarray.html |
|