Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp192792rdb; Thu, 19 Oct 2023 01:12:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFTVahHMjCt7xkX1PimCyAfmHzTccZ6UkmIklEEuXa3xlGUPL/TXi1T3DWNKI+09h8kGvXq X-Received: by 2002:aca:210f:0:b0:3b2:eade:5e81 with SMTP id 15-20020aca210f000000b003b2eade5e81mr1574923oiz.34.1697703149840; Thu, 19 Oct 2023 01:12:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697703149; cv=none; d=google.com; s=arc-20160816; b=rqB2iKlSUs1cIluJ12BRBPRutzUdRaQwHiCyi6LfQlW6Zxzv40XbbOCpcMbU0C2Uvl MrlUrN8s8qtbq3OP4xixeHXwrnPkbnnJoU6SCbScrx8LnKRK5YZMb6mpg9IG4x3zRlHs 4lQ83KNdWqLO3Ogi9Ns+t+KdctKu7zttat4LmxmGyV556Euy/b3ad+TEwr/BVwCpcf8x dCKNc1cakjbqMd5b4LK+OUseKWzVx1fw7WR9uPQE1fr3KDZkLjxf6U0TBNjBvRsPO6q7 tS6sveAWUpfxCBS/lC9KQuuFrkYZmjszq6tfoP3/5KvB/JjOwwaDoT5GCiNRE9kq5c3M 2wpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=6oh4XfnZge6Ab2+qZm78iM3ZcSjCt4voRT9c1wYL6YA=; fh=hlt0LMr8Sx/HKhBWW8KzfkRpwRMgsX6n+6JamX2csiE=; b=AKVdu/EUhdyI1sRcydSFRiyQgK6j+K3cCKBYu0ot3+K3RgTcAp19PvLUG8h78WUdLj /4CYV3C5IeAWQ9qC0VdPguJnmwQEhbaRRWyfjN4CmyKfKbXVQNMTK6zLoZzUwjiaBCwd sZ7eKij2HiXbNHlGr5sfTfHqNz8cCJFLTT+chrlSFfoogxELgtb2Lt1e7BzRPxckRG33 w1F1iml7yJ6FDa5WbdMjjYx2CoaWm+1y56mTvqFJj4iUFyT8EUtUNpdXHyOBbEyWYvfo KCICpkAiML3lOGJkMpK5rDnVvaYoDuiJRBjKq3gWzG2jlFFgOqBuKuu2SExLeDvnXrym h2UA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id t8-20020a634608000000b005a0018ec786si453228pga.854.2023.10.19.01.12.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 01:12:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id A739780C5FB3; Thu, 19 Oct 2023 01:12:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235109AbjJSIMY convert rfc822-to-8bit (ORCPT + 99 others); Thu, 19 Oct 2023 04:12:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232813AbjJSIMW (ORCPT ); Thu, 19 Oct 2023 04:12:22 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DA7FC0 for ; Thu, 19 Oct 2023 01:12:18 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 9939063DCAB8; Thu, 19 Oct 2023 10:12:15 +0200 (CEST) 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 I3-K0hwykdNu; Thu, 19 Oct 2023 10:12:15 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 0466E63DCAAB; Thu, 19 Oct 2023 10:12:15 +0200 (CEST) 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 gzzgvJ53A6kM; Thu, 19 Oct 2023 10:12:14 +0200 (CEST) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id CF8A863DCAA7; Thu, 19 Oct 2023 10:12:14 +0200 (CEST) Date: Thu, 19 Oct 2023 10:12:14 +0200 (CEST) From: Richard Weinberger To: Martin Kurbanov Cc: David Woodhouse , Christian Brauner , Dave Chinner , Yu Zhe , linux-kernel , linux-mtd , kernel@sberdevices.ru Message-ID: <1258129392.18842.1697703134703.JavaMail.zimbra@nod.at> In-Reply-To: <20231019073838.17586-3-mmkurbanov@salutedevices.com> References: <20231019073838.17586-1-mmkurbanov@salutedevices.com> <20231019073838.17586-3-mmkurbanov@salutedevices.com> Subject: Re: [PATCH v1 2/2] jffs2: make cleanmarker support option MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: jffs2: make cleanmarker support option Thread-Index: aAf02iCoSu5LqB4Vzhuut+cQ9jdF6w== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,T_SPF_PERMERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 19 Oct 2023 01:12:28 -0700 (PDT) Martin, ----- Ursprüngliche Mail ----- > Von: "Martin Kurbanov" > This patch support for disable cleanmarker option. This is useful on > some NAND devices which entire OOB area is protected by ECC. Problem > fires when JFFS2 driver writes cleanmarker to some page and later it > tries to write to this page - write will be done successfully, but after > that such page becomes unreadable due to invalid ECC codes. This occurs > because the second write necessitates an update to ECC, but it is > impossible to do it correctly without block erase. Hmm, I miss an explanation why this change is correct and safe. You explain why the OOB area can't be used, okay. But you need to add more details on why you change is safe in terms of filesystem consistency. Beside of that, I don't think this should be kernel config option. Why not a mount option? Thanks, //richard