Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1381731rda; Mon, 23 Oct 2023 10:45:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEBRUn83HOqEdNLGAvTGbl063OB9myiu9vyMF/nccRIcUxmVNcDtCNyQPVxkr78aCB9sEsU X-Received: by 2002:a05:6a21:790a:b0:17a:284:97c4 with SMTP id bg10-20020a056a21790a00b0017a028497c4mr249733pzc.61.1698083159479; Mon, 23 Oct 2023 10:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698083159; cv=none; d=google.com; s=arc-20160816; b=tNM/NB4PcO4lzyRHYa0bnhFr3OJPkyVoi6FBi4vpR4faEEAsM+76zxs+LhrHA527+I i2fXnWR/OufPYBdGVifdK1re6rZ8nvvqPIj42cyPLVc3+lEabTgbDO9hJGXTAZdaKKot W27JsIl9fjX2HEq76F6ASzwD5F6PGZDcJTxQuBsv6crMs/wDy8pEQ6vk4PAbbgMwZw/y ZlG6TeC9Kvslpg/LSXWoGv64m1nC7EUTN1z0IfdQSdqyjeD6i+EKVmbwIkyyrmDbQHwG LBki93FgXISKvs1zWN0rhJT1SXSt78POwz2fYBsyr9EtqXu8N4XqWUUqrp/c4E/krZFr F0kw== 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=hqW7p/cEItv7gKtjd/uwtGUMRAVys3/gyJ+t230rVa8=; fh=zbmFDHaOsLL5WiZbU4anY2R28XMAgpc8K8H4Pu1IzXg=; b=DvyZ4KrWHITMxpmY0kPFoBMtQK6ZtMZucnbUelyJ4RIrvH0ox/cz4P4EGgDu9PxOGR mNZL0KI5q6WwtOk4qIcblyDuUV3HOxeWp5R8nRZvTrkXka+L7A8CwA4F7bmztAnJe+GC GN1u+1vx5e4LFWnEErLC3TZS1MjCr9TqK426Dl9awV25jIfUjfxnKaJt8k2BrCXQwgvR DBeVTZg7mRx7Ap8sQC/UYQUIjL1Sr20k6ntcMT6AVD4jT1m4dK1taZRxjGgmd8kFdgtB T7ZdJXY71capDd/E1CipskJts8ZkRTDS9otwN6tzOBGcTXL6VKJAtrCgL8tQCH4eEw0U xfNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id d63-20020a633642000000b005ac13270364si6802975pga.732.2023.10.23.10.45.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 10:45:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id D3786806E165; Mon, 23 Oct 2023 10:45:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233953AbjJWRow convert rfc822-to-8bit (ORCPT + 99 others); Mon, 23 Oct 2023 13:44:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233963AbjJWRou (ORCPT ); Mon, 23 Oct 2023 13:44:50 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A45C310A for ; Mon, 23 Oct 2023 10:44:46 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 4011D6342D26; Mon, 23 Oct 2023 19:44:45 +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 ZwQG_BZb1_Op; Mon, 23 Oct 2023 19:44:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id A6DC66342D29; Mon, 23 Oct 2023 19:44:44 +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 ItP854Hxml7T; Mon, 23 Oct 2023 19:44:44 +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 794E76342D26; Mon, 23 Oct 2023 19:44:44 +0200 (CEST) Date: Mon, 23 Oct 2023 19:44:44 +0200 (CEST) From: Richard Weinberger To: Martin Kurbanov Cc: David Woodhouse , Christian Brauner , Dave Chinner , Yu Zhe , linux-kernel , linux-mtd , kernel Message-ID: <406915015.32119.1698083084288.JavaMail.zimbra@nod.at> In-Reply-To: <3951ac21-a0a4-47b5-be94-edb0140c69a5@salutedevices.com> References: <20231019073838.17586-1-mmkurbanov@salutedevices.com> <20231019073838.17586-3-mmkurbanov@salutedevices.com> <1258129392.18842.1697703134703.JavaMail.zimbra@nod.at> <3951ac21-a0a4-47b5-be94-edb0140c69a5@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: ewMpg4ruzQjVS9d+DleKQJCsQylw7A== X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email 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 (howler.vger.email [0.0.0.0]); Mon, 23 Oct 2023 10:45:34 -0700 (PDT) ----- Ursprüngliche Mail ----- > Von: "Martin Kurbanov" > If you disable the cleanmarker, the found clean block (filled with 0xff) > will be erased again (see fs/jffs2/scan.c#L162). > In my opinion, it is better to perform the block erasure again than to > not work with such a nand flash at all. Doesn't this case many re-erases at each mount time? BTW: I tried your patch in nandsim, jffs2 was unhappy. [ 56.147361] jffs2: notice: (440) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. [ 56.200438] nand: nand_do_write_ops: attempt to write non page aligned data [ 56.201090] jffs2: Write clean marker to block at 0x001f8000 failed: -22 Do you have an idea? Thanks, //richard