]> asedeno.scripts.mit.edu Git - linux.git/commit
btrfs: Factor out common delayed refs init code
authorNikolay Borisov <nborisov@suse.com>
Tue, 24 Apr 2018 14:18:17 +0000 (17:18 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:30 +0000 (18:07 +0200)
commitcb49a87b2a4edb469e4d295eca4b1d106f64083e
tree38581abfb8223188306f135d2bef224591e6706b
parent891f41cb27cf5036e88053bb0ef688f98fcc945b
btrfs: Factor out common delayed refs init code

THe majority of the init code for struct btrfs_delayed_ref_node is
duplicated in add_delayed_data_ref and add_delayed_tree_ref. Factor out
the common bits in init_delayed_ref_common. This function is going to be
used in future patches to clean that up. 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>
fs/btrfs/delayed-ref.c