Skip to content

f2fs: Fix DIO flags and add ioprio hint

Daniel Lee linux-f2fs-devel lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesIn review
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- f2fs: Apply bio flags to direct I/O
- Changed f2fs_io_flags() to accept a direct inode pointer
- f2fs: use ioprio hint for hot and pinned files
- Removed an unnecessary f2fs_mark_inode_dirty_sync() call

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2f2fs: Apply bio flags to direct I/Ofs/f2fs/data.c fs/f2fs/f2fs.h fs/f2fs/file.c+17 -52 replies
2/2f2fs: use ioprio hint for hot and pinned filesfs/f2fs/f2fs.h fs/f2fs/file.c fs/f2fs/namei.c+29 -43 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] f2fs: Fix DIO flags and add ioprio hint

The first patch corrects an issue where Direct I/O (DIO) writes ignore bio flag hints (e.g., F2FS_IOPRIO_WRITE for REQ_PRIO), making them inconsistent with buffered I/O.

The second patch is to set an I/O priority hint for hot files on creation and pinned files by default.

---
Changes in v2:
- f2fs: Apply bio flags to direct I/O
- Changed f2fs_io_flags() to accept a direct inode pointer
- f2fs: use ioprio hint for hot and pinned files
- Removed an unnecessary f2fs_mark_inode_dirty_sync() call

Daniel Lee (2):
f2fs: Apply bio flags to direct I/O
f2fs: use ioprio hint for hot and pinned files

 fs/f2fs/data.c  | 10 +++++-----
 fs/f2fs/f2fs.h  | 20 ++++++++++++++++++++
 fs/f2fs/file.c  | 14 ++++++++++++++
 fs/f2fs/namei.c | 11 +++++++----
 4 files changed, 46 insertions(+), 9 deletions(-)
Signature · 1 line
2.50.0.rc1.591.g9c95f17f64-goog