fix: btrfs: move ->parent and ->ref_root into btrfs_delayed_ref_node (v6.10)
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 27 May 2024 17:13:15 +0000 (13:13 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 28 May 2024 15:50:33 +0000 (11:50 -0400)
See upstream commit:

  commit cf4f04325b2b27efa5697ba0ea4c1abdee0035b4
  Author: Josef Bacik <josef@toxicpanda.com>
  Date:   Fri Apr 12 22:57:13 2024 -0400

    btrfs: move ->parent and ->ref_root into btrfs_delayed_ref_node

    These two members are shared by both the tree refs and data refs, so
    move them into btrfs_delayed_ref_node proper.  This allows us to greatly
    simplify the comparison code, as the shared refs always only sort on
    parent, and the non shared refs always sort first on ref_root, and then
    only data refs sort on their specific fields.

Change-Id: Ib7c92cc4bb8d674ac66ccfa25c03476f7adaaf90
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/instrumentation/events/btrfs.h

index 6ede7c84979639877598ea7c46ce8a5da2176acb..88709cfe04d58f8665a95f7e93c01170bd304155 100644 (file)
@@ -971,8 +971,8 @@ LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_tree_ref,
                ctf_integer(u64, bytenr, ref->bytenr)
                ctf_integer(u64, num_bytes, ref->num_bytes)
                ctf_integer(int, action, ref->action)
-               ctf_integer(u64, parent, ref->tree_ref.parent)
-               ctf_integer(u64, ref_root, ref->tree_ref.root)
+               ctf_integer(u64, parent, ref->parent)
+               ctf_integer(u64, ref_root, ref->ref_root)
                ctf_integer(int, level, ref->tree_ref.level)
                ctf_integer(int, type, ref->type)
                ctf_integer(u64, seq, ref->seq)
@@ -1216,8 +1216,8 @@ LTTNG_TRACEPOINT_EVENT_CLASS(btrfs_delayed_data_ref,
                ctf_integer(u64, bytenr, ref->bytenr)
                ctf_integer(u64, num_bytes, ref->num_bytes)
                ctf_integer(int, action, ref->action)
-               ctf_integer(u64, parent, ref->data_ref.parent)
-               ctf_integer(u64, ref_root, ref->data_ref.root)
+               ctf_integer(u64, parent, ref->parent)
+               ctf_integer(u64, ref_root, ref->ref_root)
                ctf_integer(u64, owner, ref->data_ref.objectid)
                ctf_integer(u64, offset, ref->data_ref.offset)
                ctf_integer(int, type, ref->type)
This page took 0.027182 seconds and 4 git commands to generate.