Received: by 2002:ab2:7104:0:b0:1f7:f6c3:9cb1 with SMTP id z4csp2440lql; Tue, 7 May 2024 08:16:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX8r8z7OooKzb+Kg/kGbZEWOy4DX6Dl61P8ExZpqQFWpbafIFd5nydrGdw99jkxVHChKgQqO6GvEyngJGN/iGwLdOqinZGv2m3xIPK/EQ== X-Google-Smtp-Source: AGHT+IFech224zSFGH63+sjoG/0D3uTuKzQl8fDcnBp1UNJvm1f/VPrPK9bG2vw74LL2amMpgldy X-Received: by 2002:a05:6a00:2d91:b0:6ed:4b2e:49be with SMTP id d2e1a72fcca58-6f49bd25cabmr135364b3a.2.1715095013028; Tue, 07 May 2024 08:16:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715095013; cv=pass; d=google.com; s=arc-20160816; b=Sv6cMKTnZx+O7YinHeLcR4Ssd9UU9nMO93KEOr+iWQLwr9YleNN9tSB6hwxOLyYg49 2hjuHB6OQR7KEX6OBgiW/hPf4Bk8Za/FHQCT7ws5I0goC96JyrCt3YMbXG+hW0pzO0By hFbzbNUixbqif5ZWfHitx/Z/EcgUnh19IMbpjNC/Saj5hyDqjINQzBG+lq11t0s1lpb8 Ue667pfdoYrzbig/ptDKnEY86NaoLRjWARL5IRSjcBjGPI315VUA0zZqPj3wBv65YB77 bv4oB+piVLtIODyQxCe0/Tb/dT9wEUzaYlbIqBB2TZcBrU+MNso5SnMP7fIElpYIE9Vr hVuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=fqkFN4zmG3dNFhw0/Fbi7fTwOlgiKVyndNc3kjN6Ql4=; fh=2G8vV/twklXuIDat4PvoYTuAifAwKWy0lXEyRgIEHLQ=; b=Z/SeeOoyUNA/hY5W0sAoxbWNisUh3zXjvfjN0tbOOrDuSIG0YwF1LYx2E2A85Yvz2L jO+sCAXUP89DoNXN/JbfHZVlJQqqLtHJNYJX4oRcOf5IjsnHwaPW61G1+A6r/L1PE4uV 9bWZ+90mT8F5wTzU2gXSSS/jgBUoxdUH6ASiVhGnEo7Gkmcp7PDy9/6Y0UYYwV3nrsql 1vt4DDykuHkNeFYypvnM8ipBN5K1R5BZZgMKWyicZInfD0tsWd6mGhMxKnuR8/icZEH6 w0NFYJGnpzNDSDSY7zxt1AJUS5jDX2fbRn3jMPMU3+CWYIj0Ru9FwEnyce9atUDjLGBm ATbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YbFHK9Qb; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-3194-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l8-20020a656808000000b0061cd3a9c01esi5312559pgt.335.2024.05.07.08.16.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 08:16:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3194-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YbFHK9Qb; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-nfs+bounces-3194-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B965228629F for ; Tue, 7 May 2024 15:15:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68D45161333; Tue, 7 May 2024 15:15:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YbFHK9Qb" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE093161914 for ; Tue, 7 May 2024 15:15:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715094949; cv=none; b=hmngXJ31Se+YU3b8kI1aSIDON5X8w1QVtD9pl19RTGljs8+AXubHoUMHWH2SJURy+4z2kdJ7cjvyxOZFuujXnFRfU6DtHZW0inyq2eF5qscdgsmW6tQeFpkv88elWeILXR85mToVVf+lMllyOKx8jn/DZAyQyX2AzcCw031EbLg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715094949; c=relaxed/simple; bh=DJrbVhanHF46wmNheuePa63BzVo0wBaKgt7SYG7AoUY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=LSST4YU12VlxALACwMbaQ066H6ytRE8/mPB6uVDLlWxO15/RSGJSbRwyxNsmPUYE2wNaVxXBNpKmNf9qC8QTtQ5eM3QxC6rFU76e7a0Vt2H4GseTbFSwBAmbdYA5UhqGeDWg6E6aUOexIViP1zbkqY42c8dnHHiTv/54GxDk0P4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YbFHK9Qb; arc=none smtp.client-ip=209.85.166.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-io1-f52.google.com with SMTP id ca18e2360f4ac-7dee034225eso25150039f.2 for ; Tue, 07 May 2024 08:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715094947; x=1715699747; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fqkFN4zmG3dNFhw0/Fbi7fTwOlgiKVyndNc3kjN6Ql4=; b=YbFHK9QbzXGApSi9v02eiR5Y/QAQPgr53yzYFDX9rogSDkg1DZQ4XGfBxWhYV6bsDj /HsvPZOoBHtzUwYHeev4jbACbVrW5lxRE6q14aQ0AMzf6UR1GVK4HcC9/pkJYwdHxLb7 R0nrm2m8PJ9l67u05rva5dxWTOGKJ0lrK+4EDT8hNgcSsm0EkTPRQ0L6mMalljxmb81Z L/gtXonjq4T1ywBLnx1s6HdDabn5/7/smJ33yMXQo9IT5gY2G9jDqr0A+Og8dfNwcGiM wxsOK8AlF/2b+TlDhLGiOFPv2ZRDg/Jh42LAUb44RkGjZVUOZLmZExQPOKIYi0Z+KP+C uV/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715094947; x=1715699747; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fqkFN4zmG3dNFhw0/Fbi7fTwOlgiKVyndNc3kjN6Ql4=; b=ZE/uxMu9yrcMZ8FrtoFp0B3b9h0p0xHUgn7T8zIovSzbFShod4UfPf8wnaqi+v60jj R+ObPZ5pFE6egDWGMTfoo7u2+0t/kMBwIXtyut3Fu86GhsE3qQeBShKEK65ZmLbex6Vg R9tyOwYHI2A6yiTXEbAX2uAGNAjywJiJq277ygmByxwrW1UQrLTGgp9n74gybhda0lp3 5IB0yl1rnhE+msddro82A2l2syE6gEi2s5Fn8S8v5Owd0k6Y0iddcyqevYgVEya26yc3 Om8Zs1Uv526nB6J3Wa8NG5/e61AOKrczjl7IQL5Y5EzE0rzt656EYltvZBEosax58knY Fb0w== X-Gm-Message-State: AOJu0Yy8gHDTDBAldU2evAvpYj3ainBnC4C2yxu57Rii9BVQZeIA/+MB eRWxSxCl3XjgjyaKeJWEcWy3ZTE5K/lt8FADEkPVxRXDWoB7LpxW0Hr2nQ== X-Received: by 2002:a5d:8454:0:b0:7de:e04b:42c3 with SMTP id w20-20020a5d8454000000b007dee04b42c3mr13573030ior.0.1715094946993; Tue, 07 May 2024 08:15:46 -0700 (PDT) Received: from kolga-mac-1.attlocal.net ([2600:1700:6a10:2e90:d0a5:c6e3:4e72:2c07]) by smtp.gmail.com with ESMTPSA id k9-20020a056638140900b00487c16a1ea0sm3005908jad.35.2024.05.07.08.15.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 08:15:46 -0700 (PDT) From: Olga Kornievskaia To: trond.myklebust@hammerspace.com, anna.schumaker@netapp.com Cc: linux-nfs@vger.kernel.org Subject: [PATCH 1/1] pNFS/filelayout: fixup pNfs allocation modes Date: Tue, 7 May 2024 11:15:45 -0400 Message-Id: <20240507151545.26888-1-olga.kornievskaia@gmail.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Olga Kornievskaia Change left over allocation flags. Fixes: a245832aaa99 ("pNFS/files: Ensure pNFS allocation modes are consistent with nfsiod") Signed-off-by: Olga Kornievskaia --- fs/nfs/filelayout/filelayout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c index cc2ed4b5a4fd..85d2dc9bc212 100644 --- a/fs/nfs/filelayout/filelayout.c +++ b/fs/nfs/filelayout/filelayout.c @@ -875,7 +875,7 @@ filelayout_pg_init_read(struct nfs_pageio_descriptor *pgio, req->wb_bytes, IOMODE_READ, false, - GFP_KERNEL); + nfs_io_gfp_mask()); if (IS_ERR(pgio->pg_lseg)) { pgio->pg_error = PTR_ERR(pgio->pg_lseg); pgio->pg_lseg = NULL; @@ -899,7 +899,7 @@ filelayout_pg_init_write(struct nfs_pageio_descriptor *pgio, req->wb_bytes, IOMODE_RW, false, - GFP_NOFS); + nfs_io_gfp_mask()); if (IS_ERR(pgio->pg_lseg)) { pgio->pg_error = PTR_ERR(pgio->pg_lseg); pgio->pg_lseg = NULL; -- 2.39.1