diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2021-04-26 23:53:10 -0400 |
|---|---|---|
| committer | Matthew Wilcox (Oracle) <[email protected]> | 2021-10-18 07:49:39 -0400 |
| commit | b5e84594cafb934e023ee7d4ea4208b6c6b65fcc (patch) | |
| tree | ad0e351763d2e8086850d2fc257eb529b22febd4 /tools/perf/scripts/python | |
| parent | f143f1ea5a5380b2682e6836fcd24338a2aa82c7 (diff) | |
mm/writeback: Add folio_mark_dirty()
Reimplement set_page_dirty() as a wrapper around folio_mark_dirty().
There is no change to filesystems as they were already being called
with the compound_head of the page being marked dirty. We avoid
several calls to compound_head(), both statically (through
using folio_test_dirty() instead of PageDirty() and dynamically by
calling folio_mapping() instead of page_mapping().
Also return bool instead of int to show the range of values actually
returned, and add kernel-doc.
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: David Howells <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions