mm: Use multi-index entries in the page cache
We currently store large folios as 2^N consecutive entries. While this consumes rather more memory than necessary, it also turns out to be buggy. A writeback operation which starts within a tail page of a dirty folio will not write back the folio as the xarray's dirty bit is only set on the head index. With multi-index entries, the dirty bit will be found no matter where in the folio the operation starts. This does end up simplifying the page cache slightly, although not as much as I had hoped. Signed-off-by:Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by:
William Kucharski <william.kucharski@oracle.com>
parent
25a8de7f
-
mentioned in commit 1ac49c8f
-
mentioned in commit 7521a97b
-
mentioned in commit 29968329
-
mentioned in commit 63b1898f
-
mentioned in commit 825b95bd
-
mentioned in commit 69a37a8b
-
mentioned in commit c0c84962
-
mentioned in commit 95c8181b
-
mentioned in commit 4a3e0d51
-
mentioned in commit ec5cf297
-
mentioned in commit 31cd0859
Please register or sign in to comment