1MPAGE_WRITEPAGES(9) The Linux VFS MPAGE_WRITEPAGES(9)
2
3
4
6 mpage_writepages - walk the list of dirty pages of the given address
7 space & writepage all of them
8
10 int mpage_writepages(struct address_space * mapping,
11 struct writeback_control * wbc,
12 get_block_t get_block);
13
15 mapping
16 address space structure to write
17
18 wbc
19 subtract the number of written pages from *wbc->nr_to_write
20
21 get_block
22 the filesystem´s block mapper function. If this is NULL then use
23 a_ops->writepage. Otherwise, go direct-to-BIO.
24
26 This is a library function, which implements the writepages
27 address_space_operation.
28
29 If a page is already under I/O, generic_writepages skips it, even if
30 it´s dirty. This is desirable behaviour for memory-cleaning writeback,
31 but it is INCORRECT for data-integrity system calls such as fsync.
32 fsync and msync need to guarantee that all the data which was dirty at
33 the time the call was made get new I/O started against them. If
34 wbc->sync_mode is WB_SYNC_ALL then we were called for data integrity
35 and we must wait for existing IO to complete.
36
38Kernel Hackers Manual 2.6. June 2019 MPAGE_WRITEPAGES(9)