Fix: block_len removed frmo btrfs_get_extent in 6.11-rc1
authorKienan Stewart <kstewart@efficios.com>
Mon, 29 Jul 2024 14:12:47 +0000 (14:12 +0000)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 29 Jul 2024 15:18:36 +0000 (11:18 -0400)
See upstream commit:

    commit e28b851ed9b232c3b84cb8d0fedbdfa8ca881386
    Author: Qu Wenruo <wqu@suse.com>
    Date:   Tue Apr 30 07:53:05 2024 +0930

        btrfs: remove extent_map::block_len member

        The extent_map::block_len is either extent_map::len (non-compressed
        extent) or extent_map::disk_num_bytes (compressed extent).

        Since we already have sanity checks to do the cross-checks between the
        new and old members, we can drop the old extent_map::block_len now.

        For most call sites, they can manually select extent_map::len or
        extent_map::disk_num_bytes, since most if not all of them have checked
        if the extent is compressed.

Change-Id: Ib03fc685b4e876bf4e53afdd28ca9826342a0e4e
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/instrumentation/events/btrfs.h

index 40139deeb13473833002d23dff82bb452d1256a5..a764fb3b61ed6f4cb77792b323ac15b8502173e3 100644 (file)
@@ -191,7 +191,6 @@ LTTNG_TRACEPOINT_EVENT(btrfs_get_extent,
                ctf_integer(u64, start, map->start)
                ctf_integer(u64, len, map->len)
                ctf_integer(u64, block_start, map->block_start)
-               ctf_integer(u64, block_len, map->block_len)
                ctf_integer(unsigned int, flags, map->flags)
                ctf_integer(int, refs, refcount_read(&map->refs))
                ctf_integer(unsigned int, compress_type, extent_map_compression(map))
This page took 0.02695 seconds and 4 git commands to generate.