Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1670979rdb; Mon, 2 Oct 2023 18:16:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEfZKzGpu4XfB1TJcHCLGjmQcczq4/KrUwvoU6bZpQIsTlGO14hbhTx44AUUX4uMJK3Mwu8 X-Received: by 2002:a05:6870:3101:b0:1c0:d0e8:8ff9 with SMTP id v1-20020a056870310100b001c0d0e88ff9mr14060321oaa.16.1696295800003; Mon, 02 Oct 2023 18:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696295799; cv=none; d=google.com; s=arc-20160816; b=vWw9Uc14YGLCUutV9HOauZukZsxVw86N7O9tiEy5wl1S88JIvhH6tjaFAWWCm5nKbB bKV4FAwb2IqPI/anNdkxrfNAYwMC/T+q1r3VO4G8R5M5D3BUa1YStFOvdDLhIKsyYWew w5Zy47GHPqu1/qBxnVFOVrJIs+kJ6ttz73l0mBB5x7y/GBR7ESkEiKuMzTy7ctfGrPvP VYTHI1O59lOsnzQjRJyKjlQytJTeisPdl9YcpsDXr7rNru3Xh79lH8BHbw7Gi+uBhnKz CIyl8rGKO5FtYQBx7Naxs3bs0LMhB9E1XKOIU1q/LMfMS92nIJh+g7sVjntRaHd9OWPp q4Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BB3iEMAprkU5w0PW0FKGJedlQe7dl0je9yUM666sRNU=; fh=aLvFAmyj3t9eWJU+PsFUAd89R+u6Ho3CsQ3ZmqoH0wg=; b=rjdrN4aSqSKkEwrMc+vaFSo9KlOTAOXnUzq2K232KXREOs/lArneADJfxzCzkhsejo G1QFMztytovl5uOth5DNeqNZ4tUcWg92Rwf6PR3Or9jXaY0ygr88rbl+Hx8+WIE/fuV3 t14asoR0RDI1giRC9R6samdoRIXkfNd78jpAaiKxJ2B3xsYDNElqHZzZUWK23h/w/yE/ evM9dQzWybIw4KZnaWfZPYcubZ9Th2Yi1X9oLW9p/mcKWkrnXRVwyxQgM4wbcQbMq/6V b2UVG7rSojra1sBcXK4QDpMyULBScKMIiJDfVGUwRwcJMbECS/mBpXCWD8RE66pUNI1n qPLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fromorbit-com.20230601.gappssmtp.com header.s=20230601 header.b=2l9DQ2ca; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o15-20020a656a4f000000b0056c297d1640si262475pgu.528.2023.10.02.18.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 18:16:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@fromorbit-com.20230601.gappssmtp.com header.s=20230601 header.b=2l9DQ2ca; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id F166D80D7E4E; Mon, 2 Oct 2023 18:16:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238924AbjJCBQh (ORCPT + 99 others); Mon, 2 Oct 2023 21:16:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238950AbjJCBQg (ORCPT ); Mon, 2 Oct 2023 21:16:36 -0400 Received: from mail-vk1-xa2d.google.com (mail-vk1-xa2d.google.com [IPv6:2607:f8b0:4864:20::a2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58C90C6 for ; Mon, 2 Oct 2023 18:16:32 -0700 (PDT) Received: by mail-vk1-xa2d.google.com with SMTP id 71dfb90a1353d-49d0d90a7ddso188632e0c.0 for ; Mon, 02 Oct 2023 18:16:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20230601.gappssmtp.com; s=20230601; t=1696295791; x=1696900591; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=BB3iEMAprkU5w0PW0FKGJedlQe7dl0je9yUM666sRNU=; b=2l9DQ2caNkgwt4KBMb3fa0dTqG31I9wCJaeyp2u577goNIthX5eM2eFph50kCnn5je jnhgmr4v3cht6a9/ScikbRMElDKAhq21NjSDiICouLyQ6c7cIdWTUR/kN0uDRCNACzod 9IxjtXbGhHLQrOJ7fccrAMU2xr1Y/piifR0F6kDmBYttJsSx1E93hl/ZA38BUxPQHIwx NAjmhGUhJpP9MRe4KTkmJYVFLucA8+0bK8cjdLdnewceGkucZaYy7JplJW2fhsTgTrj9 zn400jcIxVQH8sR7waSziz7eaQ/O7MScr8g8/+vFPGCzr1WDCJQhVL8e/0OWHWra62Ln r6oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696295791; x=1696900591; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BB3iEMAprkU5w0PW0FKGJedlQe7dl0je9yUM666sRNU=; b=MQf6tJufvDOLvtdNfDJU+wHOwj3rgrzSV1ftboBgqXpZCKJUh8gTRey2gbbNeN3+wj lTX459Z6p6KnoI100ThrH9vOL6tdx31XUQek6sfKYesMY7HH+ns7HX7JEjJDAxQQnOf2 TIRmVRt4Hb2+Vjt01CbD9nLCX1tdi3UGNIVHfyvEooJt8UGVhri2kPPbzvEpW7XvolwI UWzmTNHcf6O/HBwzgCk2mraXdsk1vLwQ30Ia14Wd8Hj0/R13FrnTEz6Fyt/QG+HLFT/Z n4JJRe8pkNh3VTY3XVmV0/rmsAPbYqPw2pC1OTrDHB5XgVAG96WEpLVfezeZTnTvri62 cC8A== X-Gm-Message-State: AOJu0YwfOO7qXPfLB0P3iDrQq29/OFf9waeSTJQ5gsYcQt618SfiUlAL 7C+ePt0y2+LF2ihrXhEqNYYvpQ== X-Received: by 2002:a1f:4ac1:0:b0:49a:b737:4dfa with SMTP id x184-20020a1f4ac1000000b0049ab7374dfamr9143255vka.4.1696295791419; Mon, 02 Oct 2023 18:16:31 -0700 (PDT) Received: from dread.disaster.area (pa49-180-20-59.pa.nsw.optusnet.com.au. [49.180.20.59]) by smtp.gmail.com with ESMTPSA id 11-20020a17090a004b00b00273fc850342sm7572762pjb.20.2023.10.02.18.16.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 18:16:30 -0700 (PDT) Received: from dave by dread.disaster.area with local (Exim 4.96) (envelope-from ) id 1qnU1S-008hIN-36; Tue, 03 Oct 2023 12:16:26 +1100 Date: Tue, 3 Oct 2023 12:16:26 +1100 From: Dave Chinner To: John Garry Cc: axboe@kernel.dk, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, jejb@linux.ibm.com, martin.petersen@oracle.com, djwong@kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, chandan.babu@oracle.com, dchinner@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com, linux-api@vger.kernel.org Subject: Re: [PATCH 11/21] fs: xfs: Don't use low-space allocator for alignment > 1 Message-ID: References: <20230929102726.2985188-1-john.g.garry@oracle.com> <20230929102726.2985188-12-john.g.garry@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230929102726.2985188-12-john.g.garry@oracle.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 02 Oct 2023 18:16:39 -0700 (PDT) On Fri, Sep 29, 2023 at 10:27:16AM +0000, John Garry wrote: > The low-space allocator doesn't honour the alignment requirement, so don't > attempt to even use it (when we have an alignment requirement). > > Signed-off-by: John Garry > --- > fs/xfs/libxfs/xfs_bmap.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c > index 30c931b38853..328134c22104 100644 > --- a/fs/xfs/libxfs/xfs_bmap.c > +++ b/fs/xfs/libxfs/xfs_bmap.c > @@ -3569,6 +3569,10 @@ xfs_bmap_btalloc_low_space( > { > int error; > > + /* The allocator doesn't honour args->alignment */ > + if (args->alignment > 1) > + return 0; > + How does this happen? The earlier failing aligned allocations will clear alignment before we get here.... -Dave. -- Dave Chinner david@fromorbit.com