summaryrefslogtreecommitdiffstats
path: root/include/trace/events/btrfs.h
diff options
context:
space:
mode:
authorNikolay Borisov2018-06-18 13:13:19 +0200
committerDavid Sterba2018-08-06 13:12:38 +0200
commitbc877d285ca3dba24c52406946a4a69847cc7422 (patch)
treef7d9439fb1887bd693bde80d9e7ffdf170910a14 /include/trace/events/btrfs.h
parentbtrfs: check-integrity: Fix NULL pointer dereference for degraded mount (diff)
downloadkernel-qcow2-linux-bc877d285ca3dba24c52406946a4a69847cc7422.tar.gz
kernel-qcow2-linux-bc877d285ca3dba24c52406946a4a69847cc7422.tar.xz
kernel-qcow2-linux-bc877d285ca3dba24c52406946a4a69847cc7422.zip
btrfs: Deduplicate extent_buffer init code
When a new extent buffer is allocated there are a few mandatory fields which need to be set in order for the buffer to be sane: level, generation, bytenr, backref_rev, owner and FSID/UUID. Currently this is open coded in the callers of btrfs_alloc_tree_block, meaning it's fairly high in the abstraction hierarchy of operations. This patch solves this by simply moving this init code in btrfs_init_new_buffer, since this is the function which initializes a newly allocated extent buffer. No functional changes. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/trace/events/btrfs.h')
0 files changed, 0 insertions, 0 deletions