Received: by 10.213.65.68 with SMTP id h4csp439392imn; Tue, 13 Mar 2018 09:05:40 -0700 (PDT) X-Google-Smtp-Source: AG47ELsjdzPZxsm1/fPKRquotkyTyT1XHTEXSIESSmpSv/xGH89GFWKsCoIpYdTchYR/rdI9MiQz X-Received: by 10.167.129.67 with SMTP id d3mr1130704pfn.108.1520957140007; Tue, 13 Mar 2018 09:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520957139; cv=none; d=google.com; s=arc-20160816; b=aGlz1PdRWfB45y2sCDWlisJfpMHFAk200zsSOGCJ3mRuCl9iq4wyYGPZwLgzua7h1a 2byiHHkMYcYXILoKHkOPi4klaYS8ukYavjNTjgVNAc+ej+4JmbfqdIDEscFl6MGVNpFL 8LIytCpVzhKyV70LEEjD4u9AWqqtmEYCPfNyo7QTeyHC8HnHQvcZIalU9ozvCGJv0e0w UXM51hVR0lLC/LsSNSKbL/tV/JfMQruEmrJZc2KdkoQzaslDZZl2BrOnBiKLv95g09EE r707dyPrLeX3CZrqkeyzimhKOLUvNDa/4yyWNenEGdQQOR5lcvm1Pax5a6jf2aqwC+1e WStA== 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=v6Gp4k19qwebfVqjXf0zSeDYGPyifnckjDj06Yn2X4U=; b=ZV69jrFQq1QtjCKGHRabD0IVJrig9z6NpFDseaOqzNhU2FWHRbttOfsvL8bRPECubu 4eyPd3U01TlABCJhhc2Wt6zi3M2n4ksd+oETZ1U7JKf/hnap5TFhkCNZKfHPvJJMKq/8 lqc5lkRvhaUfLxAkkiBY7/+8QQc8r6qEWycioaKZ3r6l2y/IfBXphGxz0jyPfnOXZcVm mNnZBfggzE7RAW1KlwjSY/whTLj4+ZHiv8EoZqxxAfjcMDhgU9nY0vrFwlybNdWVgswX dKyY7WBXGfXdjXA3A5GcaEbGRKxeIdFSF/2KDnfT1LJNukgdMEMU1ric5p2Qw8wGMoQL yHbw== 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 e12-v6si306175plj.126.2018.03.13.09.05.25; Tue, 13 Mar 2018 09:05:39 -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 S934293AbeCMPhB (ORCPT + 99 others); Tue, 13 Mar 2018 11:37:01 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33744 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752158AbeCMPg4 (ORCPT ); Tue, 13 Mar 2018 11:36:56 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 154E7120F; Tue, 13 Mar 2018 15:36:55 +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.14 043/140] NFS: Fix an incorrect type in struct nfs_direct_req Date: Tue, 13 Mar 2018 16:24:06 +0100 Message-Id: <20180313152501.006471826@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@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.14-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,10 +86,10 @@ 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 */ max_count, /* max expected count */ bytes_left, /* bytes left to be sent */ - io_start, /* start of IO */ error; /* any reported error */ struct completion completion; /* wait for i/o completion */