diff options
author | Nikolay Borisov <nborisov@suse.com> | 2019-08-21 10:42:03 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2019-09-09 14:59:13 +0200 |
commit | 3e024846d241b992ded27fdfdb78ea819abaa0cb (patch) | |
tree | 8a9a474cb209fa43ece19905b4638163cbf6d2ba /fs/btrfs/extent-tree.c | |
parent | bcacf5f3f92b886431b3a739038cc74b5e7e9403 (diff) | |
download | linux-3e024846d241b992ded27fdfdb78ea819abaa0cb.tar.bz2 |
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 'fs/btrfs/extent-tree.c')
0 files changed, 0 insertions, 0 deletions