Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp159633imu; Thu, 8 Nov 2018 06:32:36 -0800 (PST) X-Google-Smtp-Source: AJdET5cy9CbDpT9viUPIbiZptXaYbQhBl2rPnUq4f29gvQ7HZzticMr6Yldp0DCSPsUeAyrRG7Wv X-Received: by 2002:a63:f111:: with SMTP id f17mr3978965pgi.236.1541687556753; Thu, 08 Nov 2018 06:32:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541687556; cv=none; d=google.com; s=arc-20160816; b=Ascr4qJQ99dEprrlVvbEHT2EgVmzq93YuGpNDil/LWlqDzfpG+qUMdQGZ1pqpq6ye6 HxJ1ElkN0F11JoDkk1+B8Im/hpfrl0fUD+Y4SkWmKjxr+31Eo7Uw2Y3evYkzJFQFsVBr hQAjQFt5euBN3at/Oi34ovu9n8U9VBsJzwXG31U9TtDlMG5qWrzQjc0e5a6K+vWB5yV7 xV8H+Lxy+093Ms1zSewX8LZ3D+ogpgjTbA7EPgmBZ1h6Jifkxl4H8vu4IwjbaKj6yVH6 WjIHzaGVqh+5jlfJuvR8uhsUaw7NWUTa0rTD+qDkxSbQofSnehFlZhfyZM41YgwTKS1J DdVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=i7J9POmDy1aMnsoD5++MpDUDVw/3ElLyVUFqYk8oDP8=; b=PIl0BruLpzzi1XX1hRjkjqOB5e/DPBE8UH1nIALUCojzGoaAq7sJ0SyNKuox3ukfoP i8B5QdXiSjL6VdtAbDFEKoAHzC+4bhvzKohEnbhl0VSwyiT8Xjpk0dTdQeZDP375E5dq DUmAT3w15nYhkob/EPcfNll8KZ2kSzGz/seR5tHQYTc96qq4cSOeC/k3qreXYbDbKVic tx6oaYb4r8kU1mC7MsuAcjRpSRX6QciEDB/oBUkrudHq7k+mJpZ3uM65CQZ/QqyZAyYj qRgRS7RV2aoBNHbvUCZzDpr8k5BQN6iHgYqMvD+ZJTqZbMUIg0sfLgJYAj7vYa32h7x6 8oRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l68-v6si4821076pfl.56.2018.11.08.06.32.20; Thu, 08 Nov 2018 06:32:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726788AbeKIAHl (ORCPT + 99 others); Thu, 8 Nov 2018 19:07:41 -0500 Received: from lithops.sigma-star.at ([195.201.40.130]:59702 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726417AbeKIAHl (ORCPT ); Thu, 8 Nov 2018 19:07:41 -0500 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 7FCAE609F83B; Thu, 8 Nov 2018 15:31:54 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id yv7Il87dh3tE; Thu, 8 Nov 2018 15:31:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 37F056094C32; Thu, 8 Nov 2018 15:31:54 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ku-E7VpfV_2b; Thu, 8 Nov 2018 15:31:54 +0100 (CET) Received: from blindfold.localnet (unknown [82.150.214.1]) by lithops.sigma-star.at (Postfix) with ESMTPSA id EF81B6089E20; Thu, 8 Nov 2018 15:31:53 +0100 (CET) From: Richard Weinberger To: Boris Brezillon Cc: linux-mtd@lists.infradead.org, juergen.lachmann@harman.com, linux-kernel@vger.kernel.org, thomas.roeder@harman.com Subject: Re: [PATCH 2/2] ubi: Expose the bitrot interface Date: Thu, 08 Nov 2018 15:31:53 +0100 Message-ID: <3899237.k0VKClGc8u@blindfold> In-Reply-To: <20181108152642.03178c6c@bbrezillon> References: <20181107221619.32498-1-richard@nod.at> <20181107221619.32498-2-richard@nod.at> <20181108152642.03178c6c@bbrezillon> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Donnerstag, 8. November 2018, 15:26:42 CET schrieb Boris Brezillon: > On Wed, 7 Nov 2018 23:16:19 +0100 > Richard Weinberger wrote: > > > +/** > > + * ubi_bitflip_check - Check an eraseblock for bitflips and scrub it if needed. > > + * @ubi: UBI device description object > > + * @pnum: the physical eraseblock to schedule > > + * @force_scrub: force scrubbing if non-zero, schedule erase otherwise > > Are you sure about the "schedule erase otherwise"? I'd say force_scrub > only influence when the scrub operation is done: either unconditionally > or depending on the result of ubi_io_read(). True. As often, code and documentation diverged a little. Thanks, //richard