summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/lttng/lttng-modules/0005-Fix-block_start-removed-from-btrfs_get_extent-in-6.1.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-modules/0005-Fix-block_start-removed-from-btrfs_get_extent-in-6.1.patch')
-rw-r--r--meta/recipes-kernel/lttng/lttng-modules/0005-Fix-block_start-removed-from-btrfs_get_extent-in-6.1.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-modules/0005-Fix-block_start-removed-from-btrfs_get_extent-in-6.1.patch b/meta/recipes-kernel/lttng/lttng-modules/0005-Fix-block_start-removed-from-btrfs_get_extent-in-6.1.patch
new file mode 100644
index 0000000000..da933d2f72
--- /dev/null
+++ b/meta/recipes-kernel/lttng/lttng-modules/0005-Fix-block_start-removed-from-btrfs_get_extent-in-6.1.patch
@@ -0,0 +1,54 @@
1From f2762247871d9340f3cbe7e40f25ceb6dbdb81f1 Mon Sep 17 00:00:00 2001
2From: Kienan Stewart <kstewart@efficios.com>
3Date: Mon, 29 Jul 2024 14:14:24 +0000
4Subject: [PATCH 5/6] Fix: block_start removed from btrfs_get_extent in
5 6.11-rc1
6
7See upstream commit:
8
9 commit c77a8c61002e91d859e118008fd495efbe1d9373
10 Author: Qu Wenruo <wqu@suse.com>
11 Date: Tue Apr 30 07:53:06 2024 +0930
12
13 btrfs: remove extent_map::block_start member
14
15 The member extent_map::block_start can be calculated from
16 extent_map::disk_bytenr + extent_map::offset for regular extents.
17 And otherwise just extent_map::disk_bytenr.
18
19 And this is already validated by the validate_extent_map(). Now we can
20 remove the member.
21
22 However there is a special case in btrfs_create_dio_extent() where we
23 for NOCOW/PREALLOC ordered extents cannot directly use the resulting
24 btrfs_file_extent, as btrfs_split_ordered_extent() cannot handle them
25 yet.
26
27 So for that call site, we pass file_extent->disk_bytenr +
28 file_extent->num_bytes as disk_bytenr for the ordered extent, and 0 for
29 offset.
30
31Upstream-Status: Backport
32
33Change-Id: I2e3245bb0d1f5263e902659aa05848d5e231909b
34Signed-off-by: Kienan Stewart <kstewart@efficios.com>
35Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
36---
37 include/instrumentation/events/btrfs.h | 1 -
38 1 file changed, 1 deletion(-)
39
40diff --git a/include/instrumentation/events/btrfs.h b/include/instrumentation/events/btrfs.h
41index a764fb3b..4ceb8e02 100644
42--- a/include/instrumentation/events/btrfs.h
43+++ b/include/instrumentation/events/btrfs.h
44@@ -190,7 +190,6 @@ LTTNG_TRACEPOINT_EVENT(btrfs_get_extent,
45 ctf_integer(u64, ino, btrfs_ino(inode))
46 ctf_integer(u64, start, map->start)
47 ctf_integer(u64, len, map->len)
48- ctf_integer(u64, block_start, map->block_start)
49 ctf_integer(unsigned int, flags, map->flags)
50 ctf_integer(int, refs, refcount_read(&map->refs))
51 ctf_integer(unsigned int, compress_type, extent_map_compression(map))
52--
532.39.2
54