Received: by 10.213.65.68 with SMTP id h4csp525017imn; Fri, 16 Mar 2018 10:22:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELs4TENCRUG0CJksTgvkl4U4kRfBOhCdDvMqpkeOnPKCmdCbnmu5etkCCw7/ljwSX4VXhih0 X-Received: by 10.98.159.85 with SMTP id g82mr2196413pfe.15.1521220953337; Fri, 16 Mar 2018 10:22:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521220953; cv=none; d=google.com; s=arc-20160816; b=lIfOaeL3MoEBeKeIroguFxIeDmEsyWeSJTPtyxICgQlfN2Ky/fcz6NpacRysYSo0Vv jlLy6yOmGXTmRSxIFAI67CnIn6JwUFHWuKi0jl6lxHWs8Kqg6U0NHPalEynPIvZTDir1 CjykAW2rBnxE7rAPe+qLB05vN5Gyi5gmBvo47+BQm/5jNFrsYLJcqBbibckrW59QF819 y4XVV15DGHaWmEmNjdPtTdKBQVGRUdQ4vEnZWZER2AQACvqKP1xZtWYp6HFcljt5q1Y8 JAIDKid5+z/RJANz/22XiOuWecNOKh+1uBMvANbZTSSREcU3i+XzJkb37RyVs4D9Hb3l yrgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Cr8RtctnGSuDMI9kR+6ldufhQ5+dNMkAtQ9NImPVZhc=; b=LeMnYwEMr8M8XHP9pVzpjE/73PgB0lsihtcgi/QP095u15QwMVTE5cYnZ4o1tAaXp7 CbgVe0o8QDY5eDQlldjev09iegCX9yoE8/8ASKFFs++Lw40fKogQDfJSNQ/n1JiYHyoU 47CnbaC4VA1zC5ne0YRmp4IPp7vBvxwYP50gc/A2omH27TIsboLKM0VMW5mqx/l3f/BR K3Ou4qv0IFhQeWNclGDhzHx3vJtJCL9GFy0SmSOXI7Z+3hfDlMzr6TZbeWiu35h6DU4z s/LKGgWse1GwqieS882KkI/tDAFbN2HzropT1Z30U1ZWzLof2IKQylUz0e6Qa7unRFqm fwXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 184si5829501pfd.345.2018.03.16.10.22.19; Fri, 16 Mar 2018 10:22:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933049AbeCPRU1 (ORCPT + 99 others); Fri, 16 Mar 2018 13:20:27 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36250 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933130AbeCPP3q (ORCPT ); Fri, 16 Mar 2018 11:29:46 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 97FB5FB0; Fri, 16 Mar 2018 15:29:45 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Trond Myklebust Subject: [PATCH 4.4 48/63] NFS: Fix an incorrect type in struct nfs_direct_req Date: Fri, 16 Mar 2018 16:23:20 +0100 Message-Id: <20180316152305.014966435@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152259.964532775@linuxfoundation.org> References: <20180316152259.964532775@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Trond Myklebust commit d9ee65539d3eabd9ade46cca1780e3309ad0f907 upstream. The start offset needs to be of type loff_t. Fixed: 5fadeb47dcc5c ("nfs: count DIO good bytes correctly with mirroring") Cc: stable@vger.kernel.org # v4.0+ Signed-off-by: Trond Myklebust Signed-off-by: Greg Kroah-Hartman --- fs/nfs/direct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/nfs/direct.c +++ b/fs/nfs/direct.c @@ -86,9 +86,9 @@ struct nfs_direct_req { struct nfs_direct_mirror mirrors[NFS_PAGEIO_DESCRIPTOR_MIRROR_MAX]; int mirror_count; + loff_t io_start; /* Start offset for I/O */ ssize_t count, /* bytes actually processed */ bytes_left, /* bytes left to be sent */ - io_start, /* start of IO */ error; /* any reported error */ struct completion completion; /* wait for i/o completion */