Qu Wenruo
3eaf5f082c
btrfs: extract inlined creation into a dedicated delalloc helper
...
Currently we call cow_file_range_inline() in different situations, from
regular cow_file_range() to compress_file_range().
This is because inline extent creation has different conditions based on
whether it's a compressed one or not.
But on the other hand, inline extent creation shouldn't be so
distributed, we can just have a dedicated branch in
btrfs_run_delalloc_range().
It will become more obvious for compressed inline cases, it makes no
sense to go through all the complex async extent mechanism just to
inline a single block.
So here we introduce a dedicated run_delalloc_inline() helper, and
remove all inline related handling from cow_file_range() and
compress_file_range().
There is a special update to inode_need_compress(), that a new
@check_inline parameter is introduced.
This is to allow inline specific checks to be done inside
run_delalloc_inline(), which allows single block compression, but
other call sites should always reject single block compression.
Reviewed-by: Boris Burkov <boris@bur.io >
Signed-off-by: Qu Wenruo <wqu@suse.com >
Signed-off-by: David Sterba <dsterba@suse.com >
2026-04-07 18:56:01 +02:00
..
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-06 17:49:52 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-04-07 18:56:01 +02:00
2026-02-21 20:03:00 -08:00
2026-03-09 12:34:40 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-25 10:40:02 +08:00
2026-02-21 20:03:00 -08:00
2026-01-29 10:06:59 +01:00
2026-02-21 20:03:00 -08:00
2026-03-27 23:39:10 -04:00
2026-02-22 13:12:04 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-20 14:18:56 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-24 09:14:46 +01:00
2026-02-22 08:26:33 -08:00
2026-03-27 23:34:09 -04:00
2026-02-22 08:26:33 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-25 10:34:23 -08:00
2026-03-26 15:18:45 +01:00
2026-02-27 15:42:14 -05:00
2026-01-02 13:43:41 -05:00
2026-03-18 14:27:11 -07:00
2026-02-21 17:09:51 -08:00
2025-12-01 11:58:06 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 01:02:28 -08:00
2026-02-21 20:03:00 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 20:03:00 -08:00
2026-03-27 12:48:10 +01:00
2026-02-25 10:34:23 -08:00
2026-02-22 08:26:33 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-18 20:50:32 -08:00
2026-04-02 21:04:28 -07:00
2026-02-24 11:13:27 -08:00
2026-02-21 17:09:51 -08:00
2026-03-18 11:41:53 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-27 17:01:40 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-02 21:05:34 -08:00
2026-03-26 14:25:23 +01:00
2026-02-21 20:03:00 -08:00
2026-02-21 20:03:00 -08:00
2025-11-28 12:42:31 +01:00
2026-01-29 09:39:41 -08:00
2025-12-01 13:45:41 -08:00
2026-01-12 14:01:32 +01:00
2026-02-23 16:09:00 -08:00
2026-02-23 11:19:19 +01:00
2026-02-21 17:09:51 -08:00
2026-01-02 12:04:28 -08:00
2026-02-21 01:02:28 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 20:03:00 -08:00
2025-12-05 13:52:43 -08:00
2026-02-16 13:00:36 -08:00
2026-02-21 17:09:51 -08:00
2026-02-25 10:34:23 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 20:03:00 -08:00
2026-02-25 10:34:23 -08:00
2026-02-09 16:08:40 -08:00
2026-02-21 01:02:28 -08:00
2026-01-16 12:52:04 -05:00
2026-02-21 01:02:28 -08:00
2026-01-14 16:50:37 +01:00
2026-03-20 14:18:56 +01:00
2026-01-13 09:58:01 +01:00
2026-02-21 17:09:51 -08:00
2026-02-09 16:58:28 -08:00
2026-02-12 10:41:34 -08:00
2026-02-09 16:58:28 -08:00
2026-02-21 17:09:51 -08:00
2026-02-12 08:23:53 -08:00
2026-02-09 13:41:34 -08:00
2026-02-21 20:03:00 -08:00
2026-02-21 01:02:28 -08:00
2026-01-12 16:52:09 +01:00
2026-03-27 17:01:36 +01:00
2026-03-19 11:18:01 +01:00
2026-02-25 10:34:23 -08:00
2026-02-27 22:00:11 +01:00
2026-01-12 16:52:09 +01:00
2026-02-09 16:58:28 -08:00
2026-02-25 10:34:23 -08:00
2026-02-21 01:02:28 -08:00
2026-02-21 01:02:28 -08:00
2026-01-12 10:55:45 +01:00
2026-01-12 10:57:34 +01:00
2026-02-21 20:03:00 -08:00
2026-02-21 01:02:28 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-01-16 12:52:04 -05:00
2026-01-16 12:52:04 -05:00
2026-02-21 17:09:51 -08:00
2026-02-21 01:02:28 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-01-16 12:52:03 -05:00
2026-01-16 12:52:03 -05:00