diff options
author | 2024-04-15 16:16:23 -0400 | |
---|---|---|
committer | 2024-05-07 21:31:06 +0200 | |
commit | e094f48040cda67622060857ad43dad9e418fbd7 (patch) | |
tree | 3ec00cdc01ff8d9ab4fb8edf2a62bab09245f3b7 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | btrfs: set start on clone before calling copy_extent_buffer_full (diff) | |
download | wireguard-linux-e094f48040cda67622060857ad43dad9e418fbd7.tar.xz wireguard-linux-e094f48040cda67622060857ad43dad9e418fbd7.zip |
btrfs: change root->root_key.objectid to btrfs_root_id()
A comment from Filipe on one of my previous cleanups brought my
attention to a new helper we have for getting the root id of a root,
which makes it easier to read in the code.
The changes where made with the following Coccinelle semantic patch:
// <smpl>
@@
expression E,E1;
@@
(
E->root_key.objectid = E1
|
- E->root_key.objectid
+ btrfs_root_id(E)
)
// </smpl>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ minor style fixups ]
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions