Matthew Wilcox (Oracle) 0a890e2209 XArray: add xas_split
commit 8fc75643c5e14574c8be59b69182452ece28315a upstream

In order to use multi-index entries for huge pages in the page cache, we
need to be able to split a multi-index entry (eg if a file is truncated in
the middle of a huge page entry).  This version does not support splitting
more than one level of the tree at a time.  This is an acceptable
limitation for the page cache as we do not expect to support order-12
pages in the near future.

[akpm@linux-foundation.org: export xas_split_alloc() to modules]
[willy@infradead.org: fix xarray split]
  Link: https://lkml.kernel.org/r/20200910175450.GV6583@casper.infradead.org
[willy@infradead.org: fix xarray]
  Link: https://lkml.kernel.org/r/20201001233943.GW20115@casper.infradead.org

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: "Kirill A . Shutemov" <kirill@shutemov.name>
Cc: Qian Cai <cai@lca.pw>
Cc: Song Liu <songliubraving@fb.com>
Link: https://lkml.kernel.org/r/20200903183029.14930-3-willy@infradead.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-06-10 13:37:14 +02:00
..
2019-07-25 18:00:41 -07:00
2021-06-10 13:37:14 +02:00
2020-02-24 08:36:42 +01:00
2019-07-28 16:59:16 -07:00
2019-09-22 09:30:30 -07:00
2019-07-17 06:57:52 -03:00
2021-05-22 11:38:30 +02:00
2021-05-22 11:38:30 +02:00
2021-05-22 11:38:30 +02:00
2019-07-30 17:27:37 +02:00
2019-09-27 11:17:38 -07:00
2020-11-24 13:29:22 +01:00