Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2757359pxj; Mon, 31 May 2021 10:00:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaARXvPXYGFdVwDI5PXKmmDCv6ypwBgcnkmGcLiwmhkBBRc7zZjxg3jZPLzdr8/x0RSDcc X-Received: by 2002:a17:906:1f83:: with SMTP id t3mr24112652ejr.112.1622480415733; Mon, 31 May 2021 10:00:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622480415; cv=none; d=google.com; s=arc-20160816; b=UuZoj1jQhM82u1A7bp2LKHa4iTflhaLauqgVXCNtetCawzWyJWxsPubVIn4fH88RUw h3DhN+Hnfu3X1yZo33ZEAJ875P+ee2Od2XSC1C0Vm4+c6otRVAq979rm+sRGJkkEmedC JemfyWJo9ZkyVBiZYzxw5kaaWgmKqH4dT76PGKxmVsb0luqGbn0IMyxCkXlaca+ikaZ2 DuKRO8ICMNw3Z4FYBvKcQzD0c2HyIqbgh8pTeKjoVXJYn+zUMubltiqc+QB0KLtTP+sI qd0GNvSs4IKaHky/Nx3E7Rv90oDVpMjl/RL+Kdc45PM+03iayoJ0k0BXMH16bf31ilgw k0TA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aZkrCcev0iHuJ5BxP0ylBzmHJ/WWyoBxFafOYdAudC4=; b=B6XIXWxwlxlpWXSS3DyuGHW3D+uPE74bR2hJo9HbeTW2wOsx36wqewkZQbCMLiLhuX XKVw6DVYv8JbqNLmlHNsLnpDwmq5zwivUAs8+7oTxVX1BEEIbfgmdXaqpnhKOMJ4wpzd AbesTdLguNn/ItA7uw7apX75pizh7Ia5giklVhWgaNMztM8jnu15qZ3uFP9Aoq2eA/zT 3EVCjcfZC27SSmMLK4SHAKGZxBHhd5z7OU5OAPQQsuP3GHPskp67CWe5lOybjGeiN/Az /Bn8uuoc/QGdp6vtDv8Sot9hjM2W3CRhmauX9QjAbOILx38zjx6ntNAndWyNLt7zyTqS 3ttA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g2bq8tlC; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si12832840ejp.350.2021.05.31.09.59.51; Mon, 31 May 2021 10:00:15 -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=@linuxfoundation.org header.s=korg header.b=g2bq8tlC; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232102AbhEaQ5P (ORCPT + 99 others); Mon, 31 May 2021 12:57:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:51182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233890AbhEaPAg (ORCPT ); Mon, 31 May 2021 11:00:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8AD9A61396; Mon, 31 May 2021 14:13:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622470415; bh=1aMki5kpXuoAriJoiJsOwCG/HtPJ65E5jUPygFISafw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g2bq8tlCavgtN6u4WUllA3Fkq/93pxcGq9Z1xnoG6+E4SdNrVFbDTyO1Tds6aaIGi +kNi9MWSWNWBO78zjLWAL0oKd5AxVub6WMozc+ELVCi3gxctIN8mQRZ/bQ4JKlCpCj 8QiKrZB7m03Gu1mPcqVWqEtpE846sSYEyWPKgHiE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zhang Xiaoxu , Trond Myklebust Subject: [PATCH 4.14 37/79] NFSv4: Fix v4.0/v4.1 SEEK_DATA return -ENOTSUPP when set NFS_V4_2 config Date: Mon, 31 May 2021 15:14:22 +0200 Message-Id: <20210531130637.199010397@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130636.002722319@linuxfoundation.org> References: <20210531130636.002722319@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhang Xiaoxu commit e67afa7ee4a59584d7253e45d7f63b9528819a13 upstream. Since commit bdcc2cd14e4e ("NFSv4.2: handle NFS-specific llseek errors"), nfs42_proc_llseek would return -EOPNOTSUPP rather than -ENOTSUPP when SEEK_DATA on NFSv4.0/v4.1. This will lead xfstests generic/285 not run on NFSv4.0/v4.1 when set the CONFIG_NFS_V4_2, rather than run failed. Fixes: bdcc2cd14e4e ("NFSv4.2: handle NFS-specific llseek errors") Cc: # 4.2 Signed-off-by: Zhang Xiaoxu Signed-off-by: Trond Myklebust Signed-off-by: Greg Kroah-Hartman --- fs/nfs/nfs4file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/nfs/nfs4file.c +++ b/fs/nfs/nfs4file.c @@ -148,7 +148,7 @@ static loff_t nfs4_file_llseek(struct fi case SEEK_HOLE: case SEEK_DATA: ret = nfs42_proc_llseek(filep, offset, whence); - if (ret != -ENOTSUPP) + if (ret != -EOPNOTSUPP) return ret; default: return nfs_file_llseek(filep, offset, whence);