]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc75f4253410b89ceb2919ffe958ae4c28b51d6c2
tree176500b0f8da36c0ae7f81d2c6fd4fa2c6f0e6d6
parent0364d877d154e152ee85d993d7c83d658da3b403
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