Re: [PATCH 5/7] mm/hugetlb: convert hugetlb_delete_from_page_cache() to use folios

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 8/29/22 8:26 PM, Matthew Wilcox wrote:
On Mon, Aug 29, 2022 at 04:00:12PM -0700, Sidhartha Kumar wrote:
  static void hugetlb_delete_from_page_cache(struct page *page)
  {
-	ClearPageDirty(page);
-	ClearPageUptodate(page);
-	delete_from_page_cache(page);
+	folio_clear_dirty(folio);
+	folio_clear_uptodate(folio);
+	filemap_remove_folio(folio);
  }
Did you send the right version of this patch?  It doesn't look like it'll
compile.
I missed changing the function argument to struct folio while rebasing onto Mike's patch,
will fix in a v2.





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux