summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-04-24 17:18:20 +0300
committerDavid Sterba <dsterba@suse.com>2018-05-28 19:07:31 +0300
commit70d640004ab5c2597084f6463dd39b36f4f026f8 (patch)
tree141473dd9562441638807b93c9963c6676a710cf /.gitattributes
parentc812c8a857a00acae78341d5d4702eb8d7d02661 (diff)
downloadlinux-70d640004ab5c2597084f6463dd39b36f4f026f8.tar.xz
btrfs: Open-code add_delayed_tree_ref
Now that the initialization part and the critical section code have been split it's a lot easier to open code add_delayed_tree_ref. Do so in the following manner: 1. The comming init code is put immediately after memory-to-be-initialized is allocated, followed by the ref-specific member initialization. 2. The only piece of code that remains in the critical section is insert_delayed_ref call. 3. Tracing and memory freeing code is put outside of the critical section as well. The only real change here is an overall shorter critical section when dealing with delayed tree refs. From functional point of view - the code is unchanged. 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 '.gitattributes')
0 files changed, 0 insertions, 0 deletions