Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1682362pxu; Thu, 8 Oct 2020 19:03:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTBIZvXoVCSYCZe95h2hH7jU9x5N+VNSIlKtJyw7H+hB5EaN9PDR6r6lJVu/nzrOGa9TMf X-Received: by 2002:a17:906:f90a:: with SMTP id lc10mr12252684ejb.272.1602208992973; Thu, 08 Oct 2020 19:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602208992; cv=none; d=google.com; s=arc-20160816; b=gWdp1j98u7KP3wwt3WLIZGiLCz9HdYkDb0i30yD9YFwYGtd21QOGSJ2dR07nG3/XT5 BDAIVhj5ec6logYoZ57vItXzNEpO6ehPyZXZ33Sc/PBJAJRokc+xGnBAWl7i/DCO/xHZ 4miYO5TWV2v2o8cGCCfe8AJ/3g6vwWFmRmh+j2rkDjKxu7kYW+opCMqQCrD4E7iMklG0 DkFzRqGVeITP/JFWr3DvbZyzXF1YdtZlbsteilGCklmyrzKQdzg9O+HFMBKPFNf7V7HO fPOvMRPbHaG5F9f8ZByol9CeYN+ipMpOKHU7hYDWCOSDj+zoPsHHaFNAt0VRtMWjLCl1 Z4FQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ws/CcdJtoRFIeBCNv7OUwWx3oY2xbofAR3jO/I3iEnw=; b=HJ1RGloex/6M6Wp8VZ46i9rsBsw2swg0sn0gR7T5ef9fuaLjhfTrKGiEGjiWZYSbXT v/FVERx+So/r3ResbrSe6Ln6Z61AirIvKHVoOTvQQeizUqiV/vXhHUfoShHKP3MAH3Hj 4at6+K+j7BjbL3fwm7vCEFhFBpkmLD+EZ7XtP7mAL7VC+j5Ni+APTqffqDHz3YCMisJY cU8LTrfXiayHeZuBX/rvgNJacHmhlAUweRxAtqUh+YgAJiZIzYcTIK7tbXB9Q68q0OG4 jbm+zWd4rWdC8lJZPtJW09YOEMvbUp+D80pfBO+AOAfHDHWzBOZmbgcigTnBK3zuM0e7 cVyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=s5KO77zH; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu15si4929166ejb.548.2020.10.08.19.02.49; Thu, 08 Oct 2020 19:03: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=@kernel.org header.s=default header.b=s5KO77zH; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726567AbgJHWLd (ORCPT + 99 others); Thu, 8 Oct 2020 18:11:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:57054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725852AbgJHWLd (ORCPT ); Thu, 8 Oct 2020 18:11:33 -0400 Received: from localhost (unknown [104.132.1.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7F6EE22241; Thu, 8 Oct 2020 22:11:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602195092; bh=5cwnMyQhKUP3d82WK3IQRFD3LayprBJ/26VCNg9TYjI=; h=From:To:Cc:Subject:Date:From; b=s5KO77zHEHTrjhoGLQRAFkidlXW0qvk0fmxgztaroiU7PbCWpTewDIobEef1OeBOj FP7rjSApa4gqsoLNwDRlqvVo44nsfu4NKriQDnL2cHMxK4TSMHc+uWABfbjQSxqnMk GpYECZNvpdpQb093O8Vcb+y0r435FywMC/+yh/Lw= From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com Cc: Jaegeuk Kim , Nicolas Chauvet , Chao Yu Subject: [PATCH] f2fs: fix memory alignment to support 32bit Date: Thu, 8 Oct 2020 15:11:31 -0700 Message-Id: <20201008221131.925195-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.28.0.1011.ga647a8990f-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In 32bit system, 64-bits key breaks memory alignment. This fixes the commit "f2fs: support 64-bits key in f2fs rb-tree node entry". Reported-by: Nicolas Chauvet Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 713ab95223ef6..ce79b9b5b1eff 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -617,7 +617,7 @@ struct rb_entry { unsigned int len; /* length of the entry */ }; unsigned long long key; /* 64-bits key */ - }; + } __packed; }; struct extent_info { -- 2.28.0.1011.ga647a8990f-goog