diff options
author | 2019-08-21 10:42:03 +0300 | |
---|---|---|
committer | 2019-09-09 14:59:13 +0200 | |
commit | 3e024846d241b992ded27fdfdb78ea819abaa0cb (patch) | |
tree | 8a9a474cb209fa43ece19905b4638163cbf6d2ba /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: only reserve metadata_size for inodes (diff) | |
download | wireguard-linux-3e024846d241b992ded27fdfdb78ea819abaa0cb.tar.xz wireguard-linux-3e024846d241b992ded27fdfdb78ea819abaa0cb.zip |
btrfs: refactor variable scope in run_delalloc_nocow
Of the 22 (!!!) local variables declared in this function only 9 have
function-wide context. Of the remaining 13, 12 are needed in the main
while loop of the function and 1 is needed in a tiny if branch, only in
case we have prealloc extent. This commit reduces the lifespan of every
variable to its bare minimum. It also renames the 'nolock' boolean to
freespace_inode to clearly indicate its purpose.
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions