]> git.baikalelectronics.ru Git - kernel.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)
commitab794187438fb70e9dae95bf233f488a22e676a9
tree38581abfb8223188306f135d2bef224591e6706b
parentc5e9f1af3f05ef7ab06d19e90fc4e256e60643b5
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