Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2755413pxj; Mon, 31 May 2021 09:56:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdNMCzda6YMdvbvqAKm/wLHG0GNPsXdjUPBQF81dajDToYymHZ0ykUL+nNjbGCGsDoCjL0 X-Received: by 2002:a05:6402:2713:: with SMTP id y19mr25920554edd.59.1622480205981; Mon, 31 May 2021 09:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622480205; cv=none; d=google.com; s=arc-20160816; b=ETrTJKvWHbhxrx1NU8rKMZHj+7CkexD46zXtTu0SVQQ6xqhDlq+iUJcTfwDVpugDXb KKw75ndxWlCfvZ4+2lIR2gLN5AkRQ25jo/0SHN7UidD0uqoIlBvcpeteWYvRXNa6r2Ey vA2p9F7BHPYlwkZBfTzviN893Hfi9f/nm/1a0R60iWZXmAse+8HGRWAb2NctA3Bxlwpt Q+/YsSjFhAIRbyhzw5lJrA2WBf+L44IpULkdJrmEPQKPkyQnHLSnmitl10f02PPkVCha S42u8oR8sinpXpb/1DlFkwrUa/0UMRgc8HSRk5hiOat22stEDrVATd+ncyfgDQLNWK0+ Jx7A== 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=y+9u6ZCGFMqxEDjZKyx71TaAVUd6g6lSHS3elEbE0ys=; b=SbHpB3fCY3Rfhr7XO/sBHvG277Es2w5HleZDUY52C7zTY3OUesDtOUy22Z64nQjzip S18l7Yi4miA+aRrW0IOiKcuBZ4A5zBCmR4i4UHbjNBCa10IeBiDppaaVqtxKdknNArn3 smEGfrhUVq28r15CExXZCMWZN5J/6uASuRrALyQJJYmG7lQBexqjevEwjLUq6VZ2kJ78 b3A8HnHZ22wC99U7NA27eBmQrbJYAEPalWOk0dlm/DbSk5lOuwKegzc6QVfa8yGO6izu fsrFUoECOL0C2I0oQdTkQpDj7UlieD3haZJLmBVd8gugWRWsCuX2s7mmRjOlnYsqrLKq tmOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tWOXzZ2P; 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 v6si13887250edc.364.2021.05.31.09.56.23; Mon, 31 May 2021 09:56:45 -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=tWOXzZ2P; 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 S232490AbhEaQ4t (ORCPT + 99 others); Mon, 31 May 2021 12:56:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:51350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233875AbhEaPAg (ORCPT ); Mon, 31 May 2021 11:00:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EBE4C6124B; Mon, 31 May 2021 14:13:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622470412; bh=CkBX6dDb2qCvTwr5HBZitee88T2Xacmboqzj1RmD66k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tWOXzZ2PJ6RRUCHx9FCwOCaYghg5NMeOGUrCnZ3rGc3RXb9zH7oXaxKY0govqRd1J SPtiqU+XHzT8Jj137UjnLeSZBN4wrH7Q13543qtrIXkru2v3+ofl1dK0b5hfXxviUg IsaWvbOyoGEhjFhOI1JASPSi9IAFAZ96xA7Adsso= 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.19 065/116] NFSv4: Fix v4.0/v4.1 SEEK_DATA return -ENOTSUPP when set NFS_V4_2 config Date: Mon, 31 May 2021 15:14:01 +0200 Message-Id: <20210531130642.364230432@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130640.131924542@linuxfoundation.org> References: <20210531130640.131924542@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; /* Fall through */ default: