Commit ae21c0c
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>1 parent b799474 commit ae21c0c
2 files changed
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
980 | | - | |
| 980 | + | |
| 981 | + | |
981 | 982 | | |
982 | 983 | | |
983 | 984 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1264 | 1264 | | |
1265 | 1265 | | |
1266 | 1266 | | |
1267 | | - | |
1268 | 1267 | | |
1269 | 1268 | | |
1270 | 1269 | | |
| |||
1288 | 1287 | | |
1289 | 1288 | | |
1290 | 1289 | | |
1291 | | - | |
| 1290 | + | |
1292 | 1291 | | |
1293 | 1292 | | |
1294 | 1293 | | |
1295 | 1294 | | |
1296 | 1295 | | |
1297 | 1296 | | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
| 1297 | + | |
1301 | 1298 | | |
1302 | 1299 | | |
1303 | 1300 | | |
| |||
3046 | 3043 | | |
3047 | 3044 | | |
3048 | 3045 | | |
3049 | | - | |
3050 | 3046 | | |
3051 | 3047 | | |
3052 | 3048 | | |
| |||
3072 | 3068 | | |
3073 | 3069 | | |
3074 | 3070 | | |
3075 | | - | |
3076 | | - | |
3077 | | - | |
| 3071 | + | |
3078 | 3072 | | |
3079 | 3073 | | |
3080 | 3074 | | |
| |||
0 commit comments