1TAG_PAGES_FOR_WRITEB(9)   Memory Management in Linux   TAG_PAGES_FOR_WRITEB(9)
2
3
4

NAME

6       tag_pages_for_writeback - tag pages to be written by write_cache_pages
7

SYNOPSIS

9       void tag_pages_for_writeback(struct address_space * mapping,
10                                    pgoff_t start, pgoff_t end);
11

ARGUMENTS

13       mapping
14           address space structure to write
15
16       start
17           starting page index
18
19       end
20           ending page index (inclusive)
21

DESCRIPTION

23       This function scans the page range from start to end (inclusive) and
24       tags all pages that have DIRTY tag set with a special TOWRITE tag. The
25       idea is that write_cache_pages (or whoever calls this function) will
26       then use TOWRITE tag to identify pages eligible for writeback. This
27       mechanism is used to avoid livelocking of writeback by a process
28       steadily creating new dirty pages in the file (thus it is important for
29       this function to be quick so that it can tag pages faster than a
30       dirtying process can create them).
31
33Kernel Hackers Manual 3.10         June 2019           TAG_PAGES_FOR_WRITEB(9)
Impressum