Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3276907pxb; Fri, 5 Nov 2021 12:48:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyppTF7w24NNBX4krn309i/wnhAyOXle8T+vrqIT7B9ymAmqZL7tWLFXAR+ZwdRZ82uOpM X-Received: by 2002:a05:6402:184c:: with SMTP id v12mr58454444edy.242.1636141689841; Fri, 05 Nov 2021 12:48:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636141689; cv=none; d=google.com; s=arc-20160816; b=gbCM5Qllmvmms5KbHofed+vWrzEEscNDOdkvb8gCe6ytR2yJ7wtLWvkZS3CTfY2pTD +F3RyaHC2wap3VJu8WW4B+dsalXTfrxBD3Kf69CQMSDw2ivDNhcEns3VoiLtfZ6GCALc nEXzHgxwW1AMsaDLWAZlyt+x9+drOZpyT7ksHc1Pd+UjedpEDQit/fx7SXlcPqXgPI2U E+G1lzpQSCDJFbhSLNoDH6I7vDDJgW8bcpPTQ1/UF2LMlpZ5omhrgFff7J+wV0fxpU7a uFAzy1+sGdaYvKA91R1Kw+MRodQSuATtYJEanczSAtDEVPrpFbXD0d6SyaJq7V4I2j+I ENyQ== 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:to:from:dkim-signature; bh=6bMG7ItG9fxwQ0+h4/NVwmIvyAq7VAx6mV3FmhqJ0EI=; b=agikZzYJQPj61F0hy/WRiCbDBAGxqNNbzrGAhGdGlmfI1+nvAoAwpQvfndtDZV9luF 1VQ5mm8sHee9AsL4NhLG26BhfVT2qQQf3PFqx4CFsdKZ/t3tqFMovKVazPDEIsdt163H 7PQB0193CBgAO8NC3l+77L6Ly67hnxPj1+6S5Aq4ItFTGEI/WkDhi6H3fM+EoSoj4Iy4 WRF+XZsExsD8Srvz/1CWq6+YuExJ7YyQLtOKvFaWslq5w9d2IurGBhNmx8wLn4Mdg1sB 8LwgvFIyu/wryYF4qeIszag6lH5WBWbSVKJyGGRC3zQMEqpki6zbz864OM1XddxsVOlS +hbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XS5m0qtE; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 r21si12298360edb.376.2021.11.05.12.47.33; Fri, 05 Nov 2021 12:48:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=k20201202 header.b=XS5m0qtE; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 S232771AbhKESrZ (ORCPT + 99 others); Fri, 5 Nov 2021 14:47:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:52674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232704AbhKESrY (ORCPT ); Fri, 5 Nov 2021 14:47:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 02A696023D for ; Fri, 5 Nov 2021 18:44:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636137884; bh=co9BSL7kA8ek+s+k1S9N+LJHMfm0GdaHpCORj4LAzTU=; h=From:To:Subject:Date:From; b=XS5m0qtEg/loyGpfYzlI9EsEPp4RqxX4AVLQGOPQik9QH82noL5s2CLQcx8InPy7/ fQtWzTbbI19demuGDDsye0BlFvg9hNwNqKZaFd1xaLp8nAkrIhd7p3hvRs0MHbUgUm QM2wDMIlZTQn9tFBIb88edgRWMbJ9k2D2U27mbBqwwhhqOjKAQK5Eh4JJELQfdjC09 px2NQKKioC4KOAUDmP0qFTyOGjFlnvAkNgduCoA6WjV5e66DJ8vjk3optOPrnYuzmR KxHl7RFDe/oH65jGylZ2v1jfMbmAjsUd8xfBxr7OLkhApxqgbZ6WY4nU3eJEA8hNW8 cNyY9uVb6awhg== From: trondmy@kernel.org To: linux-nfs@vger.kernel.org Subject: [PATCH] NFSv4.2: alloc_file_pseudo() takes an open flag, not an f_mode Date: Fri, 5 Nov 2021 14:38:15 -0400 Message-Id: <20211105183816.328639-2-trondmy@kernel.org> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Trond Myklebust Signed-off-by: Trond Myklebust --- fs/nfs/nfs4file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/nfs4file.c b/fs/nfs/nfs4file.c index f9f50fe1f3a4..208dcae68f58 100644 --- a/fs/nfs/nfs4file.c +++ b/fs/nfs/nfs4file.c @@ -351,7 +351,7 @@ static struct file *__nfs42_ssc_open(struct vfsmount *ss_mnt, goto out_free_name; } - filep = alloc_file_pseudo(r_ino, ss_mnt, read_name, FMODE_READ, + filep = alloc_file_pseudo(r_ino, ss_mnt, read_name, O_RDONLY, r_ino->i_fop); if (IS_ERR(filep)) { res = ERR_CAST(filep); -- 2.33.1