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

2024-04-27 Thread Chao Yu
On 2024/4/24 6:58, Matthew Wilcox wrote: 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_p

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

2024-04-23 Thread Matthew Wilcox
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), > -

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

2024-04-23 Thread Kairui Song
From: Kairui Song page_index is needed for mixed usage of page cache and swap cache, for pure page cache usage, the caller can just use page->index instead. It can't be a swap cache page here, so just drop it. Signed-off-by: Kairui Song Cc: Chao Yu Cc: Jaegeuk Kim Cc: linux-f2fs-devel@lists.