summaryrefslogtreecommitdiffstats
path: root/mm/readahead.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-06-19 10:37:32 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-06-23 12:21:44 -0400
commitb653db77350c7307a513b81856fe53e94cf42446 (patch)
treecb4f733ccff7026b5cd4eaa3220e282bcd90a07a /mm/readahead.c
parentcb995f4eeba9d268fd4b56c2423ad6c1d1ea1b82 (diff)
downloadlinux-b653db77350c7307a513b81856fe53e94cf42446.tar.gz
linux-b653db77350c7307a513b81856fe53e94cf42446.tar.bz2
linux-b653db77350c7307a513b81856fe53e94cf42446.zip
mm: Clear page->private when splitting or migrating a page
In our efforts to remove uses of PG_private, we have found folios with the private flag clear and folio->private not-NULL. That is the root cause behind 642d51fb0775 ("ceph: check folio PG_private bit instead of folio->private"). It can also affect a few other filesystems that haven't yet reported a problem. compaction_alloc() can return a page with uninitialised page->private, and rather than checking all the callers of migrate_pages(), just zero page->private after calling get_new_page(). Similarly, the tail pages from split_huge_page() may also have an uninitialised page->private. Reported-by: Xiubo Li <xiubli@redhat.com> Tested-by: Xiubo Li <xiubli@redhat.com> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'mm/readahead.c')
0 files changed, 0 insertions, 0 deletions