Skip to contentSkip to conversation

f2fs: allow direct io of pinned files for zoned storage

PATCH In review Daeho Jeong 3 participants 3 messages Apr 11, 2024 – Apr 14, 2024 F2FS file system

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 f2fs: allow direct io of pinned files for zoned storage

From: Daeho Jeong <[email protected]>

Since the allocation happens in conventional LU for zoned storage, we can allow direct io for that.

---
 fs/f2fs/file.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
fs/f2fs/file.c +2 -1
index 3ee61bc82c6f..c8e086077a48 100644
@@ -833,7 +833,8 @@ static bool f2fs_force_buffered_io(struct inode *inode, int rw)
 	 * for blkzoned device, fallback direct IO to buffered IO, so
 	 * all IOs can be serialized by log-structured write.
 	 */
-	if (f2fs_sb_has_blkzoned(sbi) && (rw == WRITE))
+	if (f2fs_sb_has_blkzoned(sbi) && (rw == WRITE) &&
+	    !f2fs_is_pinned_file(inode))
 		return true;
 	if (is_sbi_flag_set(sbi, SBI_CP_DISABLED))
 		return true;
Signature · 1 line
2.44.0.683.g7961c838ac-goog
#2 lore raw
In reply to Daeho Jeong
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:

Quoted 8 lines · On Thu, 11 Apr 2024 11:37:53 -0700 you wrote:

From: Daeho Jeong <[email protected]>

Since the allocation happens in conventional LU for zoned storage, we can allow direct io for that.

[...]

Here is the summary with links:
- [f2fs-dev,2/2] f2fs: allow direct io of pinned files for zoned storage

    https://git.kernel.org/jaegeuk/f2fs/c/b2cf5a1ff236

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html