Re: [PATCH v2] btrfs: remove unused condition check in btrfs_page_mkwrite()

From: David Sterba
Date: Tue Dec 03 2019 - 13:29:42 EST


On Tue, Dec 03, 2019 at 04:59:25PM +0800, Yunfeng Ye wrote:
> The condition '!ret2' is always true. commit 717beb96d969 ("Btrfs: fix
> regression in btrfs_page_mkwrite() from vm_fault_t conversion") left
> behind the check after moving this code out of the goto, so remove the
> unused condition check.
>
> Signed-off-by: Yunfeng Ye <yeyunfeng@xxxxxxxxxx>
> Reviewed-by: Omar Sandoval <osandov@xxxxxx>

Added to misc-next, thanks.