]> 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)
commit66ebb592ea560fb2e10b931e66a5eb6f92011552
tree176500b0f8da36c0ae7f81d2c6fd4fa2c6f0e6d6
parent8b8c6ba7ed8896f3f050d6b69f62f30057e96c96
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