btrfs: Refactor update_space_info
authorNikolay Borisov <nborisov@suse.com>
Mon, 22 May 2017 06:35:50 +0000 (09:35 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:26:00 +0000 (18:26 +0200)
commitd2006e6d28ae2182db9f12dc686cfca78e878f52
tree176500b0f8da36c0ae7f81d2c6fd4fa2c6f0e6d6
parent2be12ef79fe9f5333cb9fadc85ef20b6832a56d7
btrfs: Refactor update_space_info

Following the factoring out of the creation code udpate_space_info can
only be called for already-existing space_info structs. As such it
cannot fail.  Remove superfluous error handling and make the function
return void.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c