Re: [PATCH] btrfs: remove the useless value assignment in btrfs_defrag_file

From: David Sterba
Date: Mon Nov 16 2020 - 10:15:44 EST


On Sat, Nov 14, 2020 at 05:06:21PM +0800, xiakaixu1987@xxxxxxxxx wrote:
> From: Kaixu Xia <kaixuxia@xxxxxxxxxxx>
>
> The variable ret is overwritten by the following variable defrag_count
> and this assignment is useless, so remove it.

This could be actually pointing to a bug, please explain why you think
it's correct to remove it and not to return EAGAIN.