提交 b69d1ee9 编写于 作者: N Nikolay Borisov 提交者: David Sterba

btrfs: remove done label in writepage_delalloc

Since there is not common cleanup run after the label it makes it
somewhat redundant.
Reviewed-by: NJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: NNikolay Borisov <nborisov@suse.com>
Reviewed-by: NDavid Sterba <dsterba@suse.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 fd7fb634
...@@ -3446,8 +3446,7 @@ static noinline_for_stack int writepage_delalloc(struct btrfs_inode *inode, ...@@ -3446,8 +3446,7 @@ static noinline_for_stack int writepage_delalloc(struct btrfs_inode *inode,
* started, so we don't want to return > 0 unless * started, so we don't want to return > 0 unless
* things are going well. * things are going well.
*/ */
ret = ret < 0 ? ret : -EIO; return ret < 0 ? ret : -EIO;
goto done;
} }
/* /*
* delalloc_end is already one less than the total length, so * delalloc_end is already one less than the total length, so
...@@ -3479,10 +3478,7 @@ static noinline_for_stack int writepage_delalloc(struct btrfs_inode *inode, ...@@ -3479,10 +3478,7 @@ static noinline_for_stack int writepage_delalloc(struct btrfs_inode *inode,
return 1; return 1;
} }
ret = 0; return 0;
done:
return ret;
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册