Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

f2fs: convert f2fs_clear_page_cache_dirty_tag to use a folio

Removes uses of page_mapping() and page_index().

Link: https://lkml.kernel.org/r/20240423225552.4113447-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Eric Biggers <ebiggers@google.com>
Cc: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Matthew Wilcox (Oracle) and committed by
Andrew Morton
196ad49c 262f014d

+3 -2
+3 -2
fs/f2fs/data.c
··· 4082 4082 4083 4083 void f2fs_clear_page_cache_dirty_tag(struct page *page) 4084 4084 { 4085 - struct address_space *mapping = page_mapping(page); 4085 + struct folio *folio = page_folio(page); 4086 + struct address_space *mapping = folio->mapping; 4086 4087 unsigned long flags; 4087 4088 4088 4089 xa_lock_irqsave(&mapping->i_pages, flags); 4089 - __xa_clear_mark(&mapping->i_pages, page_index(page), 4090 + __xa_clear_mark(&mapping->i_pages, folio->index, 4090 4091 PAGECACHE_TAG_DIRTY); 4091 4092 xa_unlock_irqrestore(&mapping->i_pages, flags); 4092 4093 }