Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp756857pxf; Wed, 7 Apr 2021 10:45:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNR5n52Ilk/NXvXSsNkAGOAMjVvCpJTeR8uCcftaAXhX4/RANVfWKF+OCCLmvqH7LEI6do X-Received: by 2002:a17:906:1988:: with SMTP id g8mr5007474ejd.307.1617817512182; Wed, 07 Apr 2021 10:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617817512; cv=none; d=google.com; s=arc-20160816; b=DgD0gz8zGLEhIz6GAn5nXbp1DDpp5eWpwaXVonTtNTmGNYDCGd+R83dKXT3aqDoLwk DgrY9HoOLMyCofXAk47FJ5sdhMMAKStA9C4A7I7S1/Fteqpa2iYT0KJ9pvQPdiQrgT7v qvKZVANdeONYO02ryALRE1s3lV3RiIY2KU3uknR3sTJ76QjM8i0kqWK2xOUl5rWQLeeh 5HgWjj/MYZVaQjQJ7re1HtIaUl9LAothsz4ubd/iC8Qg+kJw0p8qz+cQPlABpgFKRvZK G0P9okGJ3AkYo437aHpT+uX+aC7R64Tpe3nJT6E6bdMar11FYXe1VSBoMoqvoRn6KGdH I94g== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=6p+Sqw+2wiM1G9Ia9wdDLxw/Y5+M1qO/dO+F1uZZDGk=; b=jNenXvQvBrVNOCoq/+soTIq6kRzC7tAFjB0sdz4Ne2MW0KR9uZSldC67dDPMBY69s4 qeaXDe3qMQj+B54Qpdp/9ZNjkDWPdcAMf0jkuAB8w8fWJMj4uOjYRhzmu6g4JMEELbrb PTqfNSWbBi0jxhPeYP0zKX0lkI6EOv7Q7hlCc/yl/vNEL6cJGgvOQEedgl/0GuM9Ehak b5RGzAHQxKL+mxLHIZ8BUQEYoj3LlnXge0jhntH/lBbGKgMaWaYYpkhNTSnDHOl2umfS pI35AscJMCmVdOG0uQ+Mi+PjszaKTl+xaIMMxRboPjZuLi5ktWvuSthXsNJSijVnrFFE 0lHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=IXXcWshE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si5746663edi.582.2021.04.07.10.44.48; Wed, 07 Apr 2021 10:45:12 -0700 (PDT) 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; dkim=pass header.i=@mediatek.com header.s=dk header.b=IXXcWshE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242683AbhDGDXr (ORCPT + 99 others); Tue, 6 Apr 2021 23:23:47 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:56165 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231781AbhDGDXp (ORCPT ); Tue, 6 Apr 2021 23:23:45 -0400 X-UUID: a1f7880b9a0441a58af7d8279786b932-20210407 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=6p+Sqw+2wiM1G9Ia9wdDLxw/Y5+M1qO/dO+F1uZZDGk=; b=IXXcWshEAKNEyft7pQP3wF5j9gSHIlyls3bXxSThTBGJKdyPJtvaeeszJi/+kDqKO2WmPXeGk+8AEqbYv21+bBFn2NeSRfCsq1Z43QHsW59LKfuGmWcuhAG1LQkHaKGmU5oB+wTl46ulI5MjfVmvXTx8Jf4Zvwj8fcEZ5jFxu5M=; X-UUID: a1f7880b9a0441a58af7d8279786b932-20210407 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 886263453; Wed, 07 Apr 2021 11:23:30 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 7 Apr 2021 11:23:29 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 7 Apr 2021 11:23:28 +0800 Message-ID: <1617765808.4370.1.camel@mhfsdcap03> Subject: Re: [PATCH v1 1/1] ubifs: only check replay with inode type to judge if inode linked From: Guochun Mao To: Richard Weinberger CC: Matthias Brugger , , , , , Date: Wed, 7 Apr 2021 11:23:28 +0800 In-Reply-To: <20210316085214.25024-2-guochun.mao@mediatek.com> References: <20210316085214.25024-1-guochun.mao@mediatek.com> <20210316085214.25024-2-guochun.mao@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgUmljaGFyZCwNCg0KR2VudGxlIHBpbmcuDQoNCg0KT24gVHVlLCAyMDIxLTAzLTE2IGF0IDE2 OjUyICswODAwLCBndW9jaHVuLm1hb0BtZWRpYXRlay5jb20gd3JvdGU6DQo+IEZyb206IEd1b2No dW4gTWFvI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