]> git.ipfire.org Git - thirdparty/linux.git/commit
ext4: support uncached buffered I/O
authorTaotao Chen <chentaotao@didiglobal.com>
Wed, 16 Jul 2025 09:36:09 +0000 (09:36 +0000)
committerChristian Brauner <brauner@kernel.org>
Wed, 16 Jul 2025 12:48:18 +0000 (14:48 +0200)
commitae21c0c0ac56aa734327e9c8b7dfef4270ab54d4
tree0ec8d85041debe49759630d4124c2dd3c164dcab
parentb799474b9aeb46ec698874d4de1a799de8b5f64f
ext4: support uncached buffered I/O

Set FOP_DONTCACHE in ext4_file_operations to declare support for
uncached buffered I/O.

To handle this flag, update ext4_write_begin() and ext4_da_write_begin()
to use write_begin_get_folio(), which encapsulates FGP_DONTCACHE logic
based on iocb->ki_flags.

Part of a series refactoring address_space_operations write_begin and
write_end callbacks to use struct kiocb for passing write context and
flags.

Signed-off-by: Taotao Chen <chentaotao@didiglobal.com>
Link: https://lore.kernel.org/20250716093559.217344-6-chentaotao@didiglobal.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ext4/file.c
fs/ext4/inode.c