diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-05-02 15:19:33 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-05-30 19:01:44 +0200 |
commit | c5794e51784a0a96dd82e8f955570a7eccf27e5d (patch) | |
tree | 4415984aa73ae253d024fe7a52eb4cbc85e33448 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 1c8d0175df47364aa55c568b65ed7a3aee5b9a6d (diff) |
btrfs: Factor out write portion of btrfs_get_blocks_direct
Now that the read side is extracted into its own function, do the same
to the write side. This leaves btrfs_get_blocks_direct_write with the
sole purpose of handling common locking required. Also flip the
condition in btrfs_get_blocks_direct_write so that the write case
comes first and we check for if (Create) rather than if (!create). This
is purely subjective but I believe makes reading a bit more "linear".
No functional changes.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions