This is follow-up patch of "folio based filemap_map_pages()". Matthew suggested to remove the parameter compound. Compare the folio page number and parameter nr_pages to detect whether it's a 'compound' operation. Didn't remove 'compound' from page_remove_rmap() because it's not ready yet. Just did very limited test: boot to xfce GUI and used browser, email client and Linux kernel build. Yin Fengwei (2): rmap: Add function to handle entire folio rmap removing rmap: remove parameter 'compound' from foeio_add_file_rmap_range() mm/rmap.c | 82 +++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 56 insertions(+), 26 deletions(-) -- 2.30.2