Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2194195pxu; Sun, 6 Dec 2020 23:10:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJw90Z3OjkI73JMH3N0ajK08Hl+LCoBdN4zUc8C+qN3l674XtUWxq9p3iwWC8o9sxxpgyR2j X-Received: by 2002:a17:906:3153:: with SMTP id e19mr18394267eje.17.1607325053927; Sun, 06 Dec 2020 23:10:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607325053; cv=none; d=google.com; s=arc-20160816; b=geuB9D+hAGdGQanAinc2b/Hn91srWLU9I0cu95cYYkvY57Zt/eH8iWm3bgc0ldlnc3 MX2UY4DgF9+4sL8vqe46Yw1gol/8TmhymOGfuTLjn7wkR/7FuksigGWstJBp65boMf/6 L1vBuaLY6N5a04X9VzT4xX2ywIi5HtMyJYmlL+MobFqMHFCO3uJ/zInQZATGVM+1ZqsL LMWT406Hv30H1ban/ao6jtpokccQWiJRq0flMlc55b8w8ZYxuKd+dr6dpdnpcVblSuku mxhPOnDgPc52a5/+bLtKBdR5ngXwhM97+CO6iUgimzLP3l8nUaSCXkktV5KxOOl9kiay nVFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ff1OufiNXU/nhZ1qZrLmddIxJcnbN1qhH9icxyxsWP0=; b=yZUMrhopA2tZB1KDG2xjEpEF45ZFgpw5JXv4+wEDmGj2PMPJzl+leOqC+u2jF5/EEN b2idMWU5R7WZjrK/uxjuh5ZM5X+V50w03eiQhnsxjhSyeOZtJpkcnrAmetku2+oKWxJh s+pAeiYS7kmYjqwRUhjdsvWOZVIRh41q4cAyGt/iofP2sbzpmrP2UZPwEf+OTvLQi4F6 LdoxeEe2m/Vk779iwzCGRB2n+KMT7nDMKE3wb2YegWE3WywpIgHHy3aR5pIL5galGBWH Uo5D1pjm53OOH9tu6sZ0PFljmgvLftpQBCiyrfrjnhZqyp5hJTH5l9SyAniu2Bc70l+3 vaGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si6019214ejd.551.2020.12.06.23.10.30; Sun, 06 Dec 2020 23:10:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725981AbgLGHIG (ORCPT + 99 others); Mon, 7 Dec 2020 02:08:06 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:9389 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbgLGHIG (ORCPT ); Mon, 7 Dec 2020 02:08:06 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CqDrY1NgPz79bf; Mon, 7 Dec 2020 15:06:53 +0800 (CST) Received: from DESKTOP-8N3QUD5.china.huawei.com (10.67.101.227) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Mon, 7 Dec 2020 15:07:17 +0800 From: Guohua Zhong To: CC: , , , , , , , , , , Subject: Re: Re: [PATCH v2] phram: Allow the user to set the erase page size. Date: Mon, 7 Dec 2020 15:07:15 +0800 Message-ID: <20201207070715.15016-1-zhongguohua1@huawei.com> X-Mailer: git-send-email 2.21.0.windows.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.101.227] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 7, 2020 at 14:56 AM Guohua Zhong wrote: > >> Permit the user to specify the erase page size as a parameter. >> This solves two problems: > >> - phram can access images made by mkfs.jffs2. mkfs.jffs2 won't >> create images with erase sizes less than 8KiB; many architectures >> define PAGE_SIZE as 4KiB. > >> - Allows more effective use of small capacity devices. JFFS2 >> needs somewhere between 2 and 5 empty pages for garbage collection; >> and for an NVRAM part with only 32KiB of space, a smaller erase page >> allows much better utilization in applications where garbage collection >> is important. > >> Signed-off-by: Patrick O'Grady >> Reviewed-by: Joern Engel >> Link: https://lore.kernel.org/lkml/CAJ7m5OqYv_=JB9NhHsqBsa8YU0DFRoP7C+W10PY22wonAGJK=A@mail.gmail.com/ >> [Guohua Zhong: fix token array index out of bounds and update patch for kernel master branch] >> Signed-off-by: Guohua Zhong >> Reported-by: kernel test robot > > Looks good to me, except the authorship. > If I understand correctly, you took this old patch and resend it. > Please make sure that the "From:"-Line contains the original author. > You can fix this up using git commit --amend --author=. > The git format-patch will create a correct patch. Sorry, I am not clear this rule before. But I found the same issue independently. It looks good after changging the erase size for phram driver. Then when I try to send the patch, I found that Patrick O'Grady has already send a patch which has not been merged as the link below https://lore.kernel.org/lkml/CAJ7m5OqYv_=JB9NhHsqBsa8YU0DFRoP7C+W10PY22wonAGJK=A@mail.gmail.com/ So I resend a patch with some change and fix for mainline kernel with the old patch link of Patrick O'Grady. If I need to change the authorship, I will resend this patch for V3 with authorship of Patrick O'Grady. -- Thanks, //guohua