Re: [PATCH v2 3/8] f2fs: drop usage of page_index

From: Matthew Wilcox
Date: Tue Apr 23 2024 - 18:59:16 EST


On Wed, Apr 24, 2024 at 01:03:34AM +0800, Kairui Song wrote:
> @@ -4086,8 +4086,7 @@ void f2fs_clear_page_cache_dirty_tag(struct page *page)
> unsigned long flags;
>
> xa_lock_irqsave(&mapping->i_pages, flags);
> - __xa_clear_mark(&mapping->i_pages, page_index(page),
> - PAGECACHE_TAG_DIRTY);
> + __xa_clear_mark(&mapping->i_pages, page->index, PAGECACHE_TAG_DIRTY);
> xa_unlock_irqrestore(&mapping->i_pages, flags);
> }

I just sent a patch which is going to conflict with this:

https://lore.kernel.org/linux-mm/20240423225552.4113447-3-willy@xxxxxxxxxxxxx/

Chao Yu, Jaegeuk Kim; what are your plans for converting f2fs to use
folios? This is getting quite urgent.