Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2754896pxj; Mon, 31 May 2021 09:55:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzn2G8CaD8tsJbwcw6r2fQUjzzcjsYyVPtk5J2ZAFyzEZ/sf7F6H/1lc5HgLMxzFXN7ORBf X-Received: by 2002:a17:906:9715:: with SMTP id k21mr15741965ejx.553.1622480151450; Mon, 31 May 2021 09:55:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622480151; cv=none; d=google.com; s=arc-20160816; b=UXQ9e3gCqK4vDTCqRe2dtF8WWFaKh92jPl4VtrC0M1+nxzhEBHwrnue7xrePdjENbV DOBwjTk0M9qZP2fmMqxLJy9rUTXnRxsaVyfQ6KL6n6vVQA5X6iDORICq5qiiMSfZ/3D8 AAWzIw47OG+BZlSstk8knHuk3dkfRj9ONRCLL1zpWcHWFw1/QvKe/U70MXw1SMtsB4w/ 5OhSlBkfPfYJP/nwV3URSoiItZ3mmdNryT9hmPV8WN4j8zKBsGObeQxhFocP6YpKkVrm aJt2pX/vOXq6UVNEAv6kK/NoDb9OJl9zXPo/9vGABvc9EQxVfXtDBRR+BQkgJ9nFyV89 +7tQ== 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=pNl56AbkS0ZXV3yFnKcVaPLB59P+cq1+GonszjTfXeI=; b=CsUMKheKtQrx/mtylgYT/m/oHSf+9c+pTCvD+aB4WrlOJqV2UUIH9ApkA5+d8mwMZe fLFztP6nWs/a3az08Grg6pwA4S8yNZB3hQC68DiwhHbJv4D2HaPF+S6R+ElbB8KdFdJs mtkMm9WxMbh36Jnevidwj/6ZvgO/0/3wTQumnmq6GBRUu9IQLlfyWMIjQ5u3xyF96Z5R kZHZZP4Bcr1klD7s/TLq4MKUhimkQ2K3ObiHZFROVpgtd+lhTjWCJr+czUA7eXx4yRbW 5Rgb3u41wnCKK4DwfN/H/o8gAZfYlDM+coICSm6PpCRF92V7JeqAIKGH71o1nk5p9xm1 dHdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x5w1Ug6a; 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 bg8si13849797ejb.508.2021.05.31.09.55.28; Mon, 31 May 2021 09:55:51 -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=x5w1Ug6a; 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 S232055AbhEaQz1 (ORCPT + 99 others); Mon, 31 May 2021 12:55:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:51180 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234136AbhEaPAj (ORCPT ); Mon, 31 May 2021 11:00:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B3CC761370; Mon, 31 May 2021 14:14:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622470477; bh=zC4OPIc9eEpXm+Ok5oEw0HDZKkn58dj2vDLqSK7D6A0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x5w1Ug6aKcKrApNqHSucvC15vCsc/7mftxVrnlTdSfjzpDWgBNA4KWLgeTJvk2Eie 9GdjpVpb4N7Hw74VRKPXSX1/s6pR4ahvKWlActoFCNL3G2gNhUHxJxQmmPGX7/qHa3 L63FU1F7cMmqrPsuOmqEx7npI/ysJCKRVAxVuIgE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Zhang Xiaoxu , Trond Myklebust Subject: [PATCH 5.10 095/252] NFSv4: Fix v4.0/v4.1 SEEK_DATA return -ENOTSUPP when set NFS_V4_2 config Date: Mon, 31 May 2021 15:12:40 +0200 Message-Id: <20210531130701.202663576@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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 @@ -211,7 +211,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; fallthrough; default: