Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2755308pxj; Mon, 31 May 2021 09:56:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJDDRVZ4TtGvZ5WByFnK8nyq1QzjJciUIWGB1eU24ANvx9XNLlXbvNmahQVppi0nkkOMP3 X-Received: by 2002:a05:6402:5a:: with SMTP id f26mr26788454edu.306.1622480196490; Mon, 31 May 2021 09:56:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622480196; cv=none; d=google.com; s=arc-20160816; b=Zy88AaRj4Nn0mlvEP/quuWWrjYJQniMK+coxy9UQ2WzA7sfpAU96aYsCv2c6VANWgg Bw7z1kzV7TajY1KNbOs+U1RdyXY6VgB6YgzihpMhIqVSZbbBweUxSM32vc9CqllgggwN Bc0my6N2YAIvVIPapWWS4xVGuorcHqn2g7eoMu3+hkdOwILtWoXOql1GIjLrIkvrKCy3 Ca1lhem6H7ABQ3k0168goICyf/3fgf8stj931b985vnfP71qHyZVy3X1IBq6df75fuVm Jbnf18J3f5eF/d1Y1JdyhaErgRDEivCFJCye20yKS9PuX2yxJbke4q8MtKB17KAjjOsx hf4w== 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=oKuTYDB0tDCK1lT7bVxywMYrnTgzJQtkwVhkr9t8su4=; b=NUmbY9NMlqepUrlT4jYRbqRNZN0aGPvfjK28hYghWXAVxCWTuf2JIDgV0z+VcPr774 Do+Hqycr6bacDtEjBNyDZobiBcw2DcPWYDZuR5KA5QHcKSxxNFBvVOPM7uly4zamfd7n E9555gp7VXpjCfQSE6Sk5nn8usdj63rVx/1LjG1HhNDMkE2+vCTaOqAjskS3rtPgonF/ LRV+6HpA1jydXdlF8kwj/aTAevi9bPR7g3uImKURxoJDcOdzRRyIo6SOYbyandP7h7H4 OwQrVerRel9ztrtfYoHv6cyhYwMNPurYpWOQBQ791ROZIxDLhYNVIc8TH4l5vCX+vfzc GrRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vm92NTaX; 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 t17si13180131eju.389.2021.05.31.09.56.14; Mon, 31 May 2021 09:56:36 -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=vm92NTaX; 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 S232753AbhEaQ42 (ORCPT + 99 others); Mon, 31 May 2021 12:56:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:51412 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232679AbhEaPAh (ORCPT ); Mon, 31 May 2021 11:00:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6E385613A9; Mon, 31 May 2021 14:14:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622470480; bh=bxZuVL+AjUPJeQJz/Gn/vN9JjZFxvTIJFN+gbHJDRtA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vm92NTaXNBoDyjbIMR8OIIJsN3k2urwkvYKjKUHbyEDOa6WUafi6wqjSQu5nrvaDm UVwFT5Fx7TZIlU8aOhll35HPAKvZvgJon9RwrkCPYUNCEeavjUPBq4n1986gEY+BbS TqBHvQtRm994jBn1jo16ytIulo1thcNpEFSCa27k= 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.4 070/177] NFSv4: Fix v4.0/v4.1 SEEK_DATA return -ENOTSUPP when set NFS_V4_2 config Date: Mon, 31 May 2021 15:13:47 +0200 Message-Id: <20210531130650.326174060@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@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 @@ -168,7 +168,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; /* Fall through */ default: