On Mon, Feb 06, 2023 at 11:30:49PM +0800, Yin Fengwei wrote: > Remove parameter 'compound' from folio_add_file_rmap_range(). > > The parameter nr_pages is checked whether same as folio page > numbers to know whether it's entire folio operation. We can't do this yet. Even if a folio is large enough to be PMD mapped, it may have been mapped askew (or its PMD mapping may have been split). We still need the caller to tell us whether it's been mapped with a PMD or with PTEs.