]> git.baikalelectronics.ru Git - kernel.git/commit
mm/filemap: Allow large folios to be added to the page cache
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 5 Sep 2019 18:03:12 +0000 (14:03 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Mar 2022 17:01:35 +0000 (13:01 -0400)
commit246a553bfc0d72871d9a758b09be850e44d5ccba
tree8ef696799959ed1314eccaac029ae2b77953aaf3
parentf77aba7455fb68f8a9fa6f3aa4c45c6dab8c28d5
mm/filemap: Allow large folios to be added to the page cache

We return -EEXIST if there are any non-shadow entries in the page
cache in the range covered by the folio.  If there are multiple
shadow entries in the range, we set *shadowp to one of them (currently
the one at the highest index).  If that turns out to be the wrong
answer, we can implement something more complex.  This is mostly
modelled after the equivalent function in the shmem code.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
mm/filemap.c