[f2fs-dev] [PATCH] f2fs: use helper to print zone condition

2024-04-23 Thread Wu Bo via Linux-f2fs-devel
To make code clean, use blk_zone_cond_str() to print debug information. Signed-off-by: Wu Bo --- fs/f2fs/segment.c | 17 +++-- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index f0da516ba8dc..22d56b99f930 100644 --- a/fs/f2fs/se

[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.

Re: [f2fs-dev] [PATCH v2 1/4] f2fs: convert f2fs_mpage_readpages() to use folio

2024-04-23 Thread patchwork-bot+f2fs
Hello: This series was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim : On Mon, 22 Apr 2024 14:24:14 +0800 you wrote: > Convert f2fs_mpage_readpages() to use folio and related > functionality. > > Signed-off-by: Chao Yu > --- > v2: > - fix compile warning w/o CONFIG_F2FS_FS_COMPRESSION report

[f2fs-dev] Patchwork summary for: f2fs

2024-04-23 Thread patchwork-bot+f2fs
Hello: The following patches were marked "accepted", because they were applied to jaegeuk/f2fs.git (dev): Series: [f2fs-dev,v2,1/4] f2fs: convert f2fs_mpage_readpages() to use folio Submitter: Chao Yu Patchwork: https://patchwork.kernel.org/project/f2fs/list/?series=846491 Lore link: https

Re: [f2fs-dev] [PATCH 1/2] f2fs: fix comment in sanity_check_raw_super()

2024-04-23 Thread patchwork-bot+f2fs
Hello: This series was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim : On Tue, 16 Apr 2024 15:21:07 +0800 you wrote: > Commit d7e9a9037de2 ("f2fs: Support Block Size == Page Size") missed to > adjust comment in sanity_check_raw_super(), fix it. > > Signed-off-by: Chao Yu > --- > fs/f2fs/sup

Re: [f2fs-dev] [PATCH 2/3 v2] f2fs: clear writeback when compression failed

2024-04-23 Thread Daeho Jeong
On Tue, Apr 16, 2024 at 9:50 AM Jaegeuk Kim wrote: > > Let's stop issuing compressed writes and clear their writeback flags. > > Signed-off-by: Jaegeuk Kim > --- > > Now, I don't see any kernel hang for 24hours. > > Change log from v1: > - fix bugs > > fs/f2fs/compress.c | 40 +++

[PATCH 4/6] migrate: Expand the use of folio in __migrate_device_pages()

2024-04-23 Thread Matthew Wilcox (Oracle)
Removes a few calls to compound_head() and a call to page_mapping(). Signed-off-by: Matthew Wilcox (Oracle) --- mm/migrate_device.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/mm/migrate_device.c b/mm/migrate_device.c index a68616c1965f..aecc71972a87 100644

[PATCH 3/6] memory-failure: Remove calls to page_mapping()

2024-04-23 Thread Matthew Wilcox (Oracle)
This is mostly just inlining page_mapping() into the two callers. Signed-off-by: Matthew Wilcox (Oracle) --- mm/memory-failure.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index e065dd9be21e..62aa3db17854 100644 --- a/mm/me

[PATCH 1/6] fscrypt: Convert bh_get_inode_and_lblk_num to use a folio

2024-04-23 Thread Matthew Wilcox (Oracle)
Remove uses of page->index, page_mapping() and b_page. Saves a call to compound_head(). Signed-off-by: Matthew Wilcox (Oracle) --- fs/crypto/inline_crypt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/crypto/inline_crypt.c b/fs/crypto/inline_crypt.c index b4002ae

[PATCH 6/6] mm: Remove page_mapping()

2024-04-23 Thread Matthew Wilcox (Oracle)
All callers are now converted, delete this compatibility wrapper. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/pagemap.h | 1 - mm/folio-compat.c | 6 -- 2 files changed, 7 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index b6f14e9a2d98..941f

[PATCH 2/6] f2fs: Convert f2fs_clear_page_cache_dirty_tag to use a folio

2024-04-23 Thread Matthew Wilcox (Oracle)
Removes uses of page_mapping() and page_index(). Signed-off-by: Matthew Wilcox (Oracle) --- fs/f2fs/data.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 5d641fac02ba..9f74c867d790 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@

[PATCH 5/6] userfault; Expand folio use in mfill_atomic_install_pte()

2024-04-23 Thread Matthew Wilcox (Oracle)
Call page_folio() a little earlier so we can use folio_mapping() instead of page_mapping(), saving a call to compound_head(). Signed-off-by: Matthew Wilcox (Oracle) --- mm/userfaultfd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mm/userfaultfd.c b/mm/userfaultfd.c i

[PATCH 0/6] Remove page_mapping()

2024-04-23 Thread Matthew Wilcox (Oracle)
There are only a few users left. Convert them all to either call folio_mapping() or just use folio->mapping directly. Matthew Wilcox (Oracle) (6): fscrypt: Convert bh_get_inode_and_lblk_num to use a folio f2fs: Convert f2fs_clear_page_cache_dirty_tag to use a folio memory-failure: Remove ca

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), > -

Re: [PATCH 1/6] fscrypt: Convert bh_get_inode_and_lblk_num to use a folio

2024-04-23 Thread Eric Biggers
On Tue, Apr 23, 2024 at 11:55:32PM +0100, Matthew Wilcox (Oracle) wrote: > Remove uses of page->index, page_mapping() and b_page. Saves a call > to compound_head(). > > Signed-off-by: Matthew Wilcox (Oracle) > --- > fs/crypto/inline_crypt.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 delet

Re: [PATCH 3/6] memory-failure: Remove calls to page_mapping()

2024-04-23 Thread Sidhartha Kumar
On 4/23/24 3:55 PM, Matthew Wilcox (Oracle) wrote: This is mostly just inlining page_mapping() into the two callers. Signed-off-by: Matthew Wilcox (Oracle) --- mm/memory-failure.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failur