Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1182263imm; Sun, 2 Sep 2018 12:48:17 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaGDnhNLk+RziP3fkBJty8F+CSmP+yrUMjMr20YIZQl4kOTHuBqEKQobil8FRBkEAcO2TIB X-Received: by 2002:a63:5465:: with SMTP id e37-v6mr23509780pgm.316.1535917697460; Sun, 02 Sep 2018 12:48:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535917697; cv=none; d=google.com; s=arc-20160816; b=rX+Bm9RtjSmAHv/vk05jvDDCP4l+huZOs/zrCMW7Xwena8GVRQHWFiyBoMdfQ4wACk Sb4BzqiuQcCq1N8Eq82xnqsM1AopwMUn6OYAtRR7wDDWvcL1TBZ+vVUCaHSg0qW0Nfw9 3G+9Wz6ws9qi2grdsKal9J98PEdqCcZfaDydigWtNGb+ocEnI3pTmsAzD6UFNg128MwZ iq+i8onvu8F059x/NQTBqTB3rIqscGLWd7Cl/gFYamhT0Vp5qXM/dUiVezcgS5Et46Lp 5qUwQq2xpkLDAKsJn/aUEmP4/WYXIPAPtw3RZQHllkWxcWoQ189JJ7VrCZb4FxoCJGII cpJw== 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 :arc-authentication-results; bh=MuNIwkIU3VGpb8n4Zvsw837430fFwqMslgkjd24tN5A=; b=PDUHfLSDHrdTYDFaX9h35UR9yV6pGU8154sm0qXu3WD/97IG/z0ONnzbRyLtIOWx4V as9cdQL/p2OvNZtbMcn5jxR2xyZVpYx4ckw8IVDOADm/u+olttNRyK8gHdJDkv/l+PUL 3OJmWR/k95sC5/rLlAplTE221fRCin3mfQkUS/OhNN3QqqjOWD+gS/u0aqzw2Y9hFSVA bFEvDifD+w22kkq7jm5trJ4Guh4tUHEsyN1JplYcvEDk5/jNHBa24sQJzSk+leTcwARs bKp+8/3eIyfCwgy/yTgdOwSHCvnnnyL/HLBVTIxqCF/ufhb0wOCoXZo+rCEyQZevYi86 8PGg== 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 a61-v6si17130912plc.80.2018.09.02.12.47.49; Sun, 02 Sep 2018 12:48:17 -0700 (PDT) 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 S1727113AbeICAB6 (ORCPT + 99 others); Sun, 2 Sep 2018 20:01:58 -0400 Received: from lithops.sigma-star.at ([195.201.40.130]:50104 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726978AbeICAB6 (ORCPT ); Sun, 2 Sep 2018 20:01:58 -0400 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 967C86060960; Sun, 2 Sep 2018 21:45:05 +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 bQaiggD5qgUH; Sun, 2 Sep 2018 21:45:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 3FCD2605A933; Sun, 2 Sep 2018 21:45:05 +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 4WW7e6NxkWFB; Sun, 2 Sep 2018 21:45:05 +0200 (CEST) Received: from blindfold.localnet (213-47-184-186.cable.dynamic.surfer.at [213.47.184.186]) by lithops.sigma-star.at (Postfix) with ESMTPSA id DEA0F6060960; Sun, 2 Sep 2018 21:45:04 +0200 (CEST) From: Richard Weinberger To: Sascha Hauer Cc: linux-mtd@lists.infradead.org, David Gstir , kernel@pengutronix.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH 14/25] ubifs: Add authentication nodes to journal Date: Sun, 02 Sep 2018 21:45:04 +0200 Message-ID: <5120826.olsX7Y6fYh@blindfold> In-Reply-To: <20180829143834.wwojzrwmpadxqiqk@pengutronix.de> References: <20180704124137.13396-1-s.hauer@pengutronix.de> <1901352.nUraZMrBkh@blindfold> <20180829143834.wwojzrwmpadxqiqk@pengutronix.de> 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 Mittwoch, 29. August 2018, 16:38:34 CEST schrieb Sascha Hauer: > I assumed that make_reservation would align len anyway. I can't find the > place that led me to that assumption anymore and even if this is true > it's probably safer to just stick to the original len for the > non-authenticated case, so I'll change this and other places to use > the non aligned len. > > BTW could you have a look at ubifs_jnl_change_xattr()? Unlike other > function in this file it explicitly calls make_reservation() with the > length of the last node aligned. Do you have an idea why? Well, this is not the only call site. Other call sites do so implicitly since most UBIFS nodes sizes are aligned to 8. But yes, there are some inconsistencies which need a cleanup. I've scheduled that for the upcoming week. Thanks, //richard