Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp238692ybl; Tue, 20 Aug 2019 19:06:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6Sj1mCM3cxNXY5iY/rLGZSMVF7N9MZ2NRNj1Twpru0Spp3+Ft576IEa/v3oftaAXR74u7 X-Received: by 2002:a17:902:2ea2:: with SMTP id r31mr31893531plb.200.1566353160972; Tue, 20 Aug 2019 19:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566353160; cv=none; d=google.com; s=arc-20160816; b=q8UYF7F6k3b3I4nbciUZZN2ZfkfUq8UHeqoKJ5Z0WoaTWR3orEq37vYY93cF1YIxgX 5Bo+FbtKbvb12wAzh4ZOELJXWb1uodrcA9OgvvvkhPbcyEedzN5+0a8AfEiHpXbrCWGy 0aa3II7xTgLwZWF55xDkRw4cGtLg9lWagFb1s0fYAkNI4o19KA/xumjoewQtu9yqP98i 1tDGBYw7xcixum/0/GNgOyLv7it+8V+FzD1fZ/QZpJZtwZMwai03WT60tuUhGsUXpNZZ 761Lj+HnAsPAtSjU1faeMtV55LzAFIp2rIYTd5P9AJgnmyX7RNuJynubI/guPNsaqZwc Ei5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SGtyDfOk7ztf7e1zq8UPqa3xUIMnaYAeWahTWcEr7d4=; b=msIr0TgNZ6j/+Tr/r5J2vluupTj4lOUYj4wdB2LrqBlVzRZggdsixy3JS7v/ns29HA I8rm98m0QguR+b6RBq93Nzxbx1VWrD4TnzEbvl5bBOQwNmBIdYz7PxIMEV+7KKP9nHLT A2qKj63ufSdvJ0s/v0R+Twv/3H10Kx2sasyAYDFCv69nzuOQFr9Am5Wcx/uqp66ebb1z Efccmd4fW+mEN2/3Yfuzn7QGbSUK7NqPmEoFmGMQ5HsJJ2mgJUQGEOZhEf0YBIT1+JOl 2l62fbfLajKEj2wGOv8IsdjgGvIpxoBMq0g1dcinyiFSORiK8SAcNtF4aGmbFPZFz+l1 NgPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=MQBLmHoe; 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 b61si13611196plb.401.2019.08.20.19.05.45; Tue, 20 Aug 2019 19:06:00 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=MQBLmHoe; 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 S1727037AbfHUBtR (ORCPT + 99 others); Tue, 20 Aug 2019 21:49:17 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42616 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726372AbfHUBtR (ORCPT ); Tue, 20 Aug 2019 21:49:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=SGtyDfOk7ztf7e1zq8UPqa3xUIMnaYAeWahTWcEr7d4=; b=MQBLmHoexH6YgdK4vldQKz4da 8RAZW2Yi8DxJxQAlpwgczYaEaHM1c41vT1AnkpoCnNqXbGnGTNghSk0fVikznf0kIEi0v+5N5r8g1 /6oblkV7iXrJ3a45Axj84aDQZSNiq8kQRjY+HUCF8V1Py56nJy0hBCl9/lpFyn+yndcDaRZqJkzVt bIi8Pv29Kk3FsfaRxdzwIJpj8AfPIsMMPyFdhswi9/+xmIhUaAbFj+F5czW5zAlG2znKGKTxCbpT/ UF3RHjXmL4RitId7QozMvfJ4mmRlqlKtKIA6x7b3LDsgzeXJblkyLmEfssdO0Km6aGAzq3az5/zkW SJ4UIFkeA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1i0FkA-0003gm-R5; Wed, 21 Aug 2019 01:48:58 +0000 Date: Tue, 20 Aug 2019 18:48:58 -0700 From: Christoph Hellwig To: Vlastimil Babka Cc: Christoph Hellwig , dsterba@suse.cz, Christophe Leroy , erhard_f@mailbox.org, Chris Mason , Josef Bacik , David Sterba , Andrew Morton , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-btrfs@vger.kernel.org, linux-mm@kvack.org, stable@vger.kernel.org, Dave Chinner Subject: Re: [PATCH] btrfs: fix allocation of bitmap pages. Message-ID: <20190821014858.GA9158@infradead.org> References: <20190817074439.84C6C1056A3@localhost.localdomain> <20190819174600.GN24086@twin.jikos.cz> <20190820023031.GC9594@infradead.org> <6f99b73c-db8f-8135-b827-0a135734d7da@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6f99b73c-db8f-8135-b827-0a135734d7da@suse.cz> User-Agent: Mutt/1.11.4 (2019-03-13) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 20, 2019 at 01:06:25PM +0200, Vlastimil Babka wrote: > > The whole point of copy_page is to copy exactly one page and it makes > > sense to assume that is aligned. A sane memcpy would use the same > > underlying primitives as well after checking they fit. So I think the > > prime issue here is btrfs' use of copy_page instead of memcpy. The > > secondary issue is slub fucking up alignments for no good reason. We > > just got bitten by that crap again in XFS as well :( > > Meh, I should finally get back to https://lwn.net/Articles/787740/ right Yes. For now Dave came up with an idea for a workaround that will be forward-compatible with that: https://www.spinics.net/lists/linux-xfs/msg30521.html