1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-20 05:13:55 +00:00
Taotao Chen b799474b9a
mm/pagemap: add write_begin_get_folio() helper function
Add write_begin_get_folio() to simplify the common folio lookup logic
used by filesystem ->write_begin() implementations.

This helper wraps __filemap_get_folio() with common flags such as
FGP_WRITEBEGIN, conditional FGP_DONTCACHE, and set folio order based
on the write length.

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-5-chentaotao@didiglobal.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-07-16 14:48:18 +02:00
..
2025-05-09 23:09:01 +02:00
2025-05-27 15:22:01 -07:00
2025-05-11 17:54:10 -07:00
2025-06-05 08:49:30 -07:00
2025-06-05 08:20:21 -07:00
2025-06-05 08:07:24 -07:00
2025-05-27 15:53:55 -07:00
2025-06-03 16:13:32 -07:00
2025-06-03 08:39:20 -07:00
2025-05-26 11:39:36 -07:00
2025-05-28 15:52:42 -07:00
2025-05-19 08:17:08 -07:00
2025-05-27 20:59:53 -07:00
2025-05-21 13:41:03 +02:00
2025-05-21 13:39:45 +02:00
2025-06-03 07:39:23 -07:00
2025-05-28 15:24:36 -07:00
2025-05-26 08:02:43 -07:00
2025-05-28 15:52:42 -07:00
2025-05-20 05:34:27 +02:00
2025-05-15 20:24:40 +02:00
\n
2025-05-29 10:34:26 -07:00
2025-05-30 08:40:25 -07:00
2025-06-03 08:39:20 -07:00
2025-05-22 11:07:05 +02:00
2025-05-30 10:44:20 -07:00
2025-05-27 08:00:46 -07:00
2025-05-11 17:48:29 -07:00
2025-06-08 10:35:12 -07:00
2025-05-26 08:02:43 -07:00
2025-05-28 15:24:36 -07:00
2025-06-04 09:51:10 +02:00
2025-05-22 20:30:34 +02:00
2025-06-04 11:26:17 -07:00
2025-05-21 16:46:37 +02:00
2025-06-04 11:26:17 -07:00
2025-05-11 17:54:09 -07:00
2025-05-11 17:54:08 -07:00
2025-06-03 07:39:23 -07:00
2025-05-15 04:49:15 +03:00
2025-05-28 14:55:35 -07:00
2025-05-27 20:49:06 -07:00