Linux-f2fs-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [f2fs-dev] [PATCH] f2fs: pin files do not require sbi->writepages lock for ordering
@ 2026-01-15 16:47 Yongpeng Yang
  2026-01-20 12:37 ` Chao Yu via Linux-f2fs-devel
  2026-01-22 23:50 ` patchwork-bot+f2fs--- via Linux-f2fs-devel
  0 siblings, 2 replies; 3+ messages in thread
From: Yongpeng Yang @ 2026-01-15 16:47 UTC (permalink / raw)
  To: Chao Yu, Jaegeuk Kim; +Cc: Yongpeng Yang, Yongpeng Yang, linux-f2fs-devel

From: Yongpeng Yang <yangyongpeng@xiaomi.com>

For pinned files, the file mapping is already established before
writing, and since the writes are in IPU, there is no need to acquire
the sbi->writepages lock to guarantee write ordering.

Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com>
---
 fs/f2fs/data.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index f32eb51ccee4..5b09b13289b7 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -3456,6 +3456,8 @@ static inline bool __should_serialize_io(struct inode *inode,
 	if (IS_NOQUOTA(inode))
 		return false;
 
+	if (f2fs_is_pinned_file(inode))
+		return false;
 	if (f2fs_need_compress_data(inode))
 		return true;
 	if (wbc->sync_mode != WB_SYNC_ALL)
-- 
2.43.0



_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [f2fs-dev] [PATCH] f2fs: pin files do not require sbi->writepages lock for ordering
  2026-01-15 16:47 [f2fs-dev] [PATCH] f2fs: pin files do not require sbi->writepages lock for ordering Yongpeng Yang
@ 2026-01-20 12:37 ` Chao Yu via Linux-f2fs-devel
  2026-01-22 23:50 ` patchwork-bot+f2fs--- via Linux-f2fs-devel
  1 sibling, 0 replies; 3+ messages in thread
From: Chao Yu via Linux-f2fs-devel @ 2026-01-20 12:37 UTC (permalink / raw)
  To: Yongpeng Yang, Jaegeuk Kim; +Cc: Yongpeng Yang, linux-f2fs-devel

On 1/16/2026 12:47 AM, Yongpeng Yang wrote:
> From: Yongpeng Yang <yangyongpeng@xiaomi.com>
> 
> For pinned files, the file mapping is already established before
> writing, and since the writes are in IPU, there is no need to acquire
> the sbi->writepages lock to guarantee write ordering.
> 
> Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com>

Reviewed-by: Chao Yu <chao@kernel.org>

Thanks,


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [f2fs-dev] [PATCH] f2fs: pin files do not require sbi->writepages lock for ordering
  2026-01-15 16:47 [f2fs-dev] [PATCH] f2fs: pin files do not require sbi->writepages lock for ordering Yongpeng Yang
  2026-01-20 12:37 ` Chao Yu via Linux-f2fs-devel
@ 2026-01-22 23:50 ` patchwork-bot+f2fs--- via Linux-f2fs-devel
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+f2fs--- via Linux-f2fs-devel @ 2026-01-22 23:50 UTC (permalink / raw)
  To: Yongpeng Yang; +Cc: jaegeuk, yangyongpeng, linux-f2fs-devel

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@kernel.org>:

On Fri, 16 Jan 2026 00:47:50 +0800 you wrote:
> From: Yongpeng Yang <yangyongpeng@xiaomi.com>
> 
> For pinned files, the file mapping is already established before
> writing, and since the writes are in IPU, there is no need to acquire
> the sbi->writepages lock to guarantee write ordering.
> 
> Signed-off-by: Yongpeng Yang <yangyongpeng@xiaomi.com>
> 
> [...]

Here is the summary with links:
  - [f2fs-dev] f2fs: pin files do not require sbi->writepages lock for ordering
    https://git.kernel.org/jaegeuk/f2fs/c/9612a4224830

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html




_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-22 23:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-15 16:47 [f2fs-dev] [PATCH] f2fs: pin files do not require sbi->writepages lock for ordering Yongpeng Yang
2026-01-20 12:37 ` Chao Yu via Linux-f2fs-devel
2026-01-22 23:50 ` patchwork-bot+f2fs--- via Linux-f2fs-devel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox