mbox series

[RFC,0/2] remove parameter 'compound' of add_file_rmap

Message ID 20230206153049.770556-1-fengwei.yin@intel.com (mailing list archive)
Headers show
Series remove parameter 'compound' of add_file_rmap | expand

Message

Yin Fengwei Feb. 6, 2023, 3:30 p.m. UTC
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(-)