]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: cleanup to make the function btrfs_delalloc_reserve_metadata more logic
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>
Fri, 1 Mar 2013 11:36:01 +0000 (11:36 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Fri, 1 Mar 2013 15:13:04 +0000 (10:13 -0500)
commit6a30e4eab4fde75eeceb31ad4e141433dad886b8
tree32a05e25761a097e0cdbf0c6bf215c47ef9e96a1
parent3b19263b83c43409685464eba51a441f77321d24
Btrfs: cleanup to make the function btrfs_delalloc_reserve_metadata more logic

The original code is a little confusing and not clear, The right
way to deal with the kernel code like this:
[...]
if (ret)
goto out;
[...]

So i move the common clean_up code to the place labeled with
out_fail, this will be easier to maintain.

Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/extent-tree.c