Received: by 10.213.65.68 with SMTP id h4csp423281imn; Tue, 13 Mar 2018 08:36:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELs5qtBJ0wb3MrtCeofEE22WI8JQO+zVZcVTuXai6ZrKiounUapBLuI8tTrWr41H8fwtplao X-Received: by 10.98.31.79 with SMTP id f76mr1046234pff.60.1520955362182; Tue, 13 Mar 2018 08:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520955362; cv=none; d=google.com; s=arc-20160816; b=kHUO7Wrci+FLHBlBq85Mq3dEkcNRl67iy6Vs1YxEFa4OY/BEi+GYvOW6VGKZo8pll+ PJh1DSYOmlPZTgeHTUrDt1LIA7khplQEskJ1SUk85gVBgAcHMr3QLo/f8zqpe0s9RioH upXNhiHdJlIBdjp1v/oea8nAX7KOQecitgualnfblSGbDJsurhSeIEFC4xDP0WzBfXfY e+Giz1/mScTnFltJejrc81H+IyZLo5bHqcSdsj1QWp/yiMnlYPtNousvLlgEEcpjZ//o jk8rfhDSfb4kMuekTAjUH1G7KudYYlM29twYsRMythDfIz+2o7ghvkS3mHeA6R3FP/CH EtMA== 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=EaZpJmyCq+HMbushBmTIzZuP/FhEfU+7QHIfI3wiJ2c=; b=Ask9sA9C7hxO5cH7HdZDdFyqzoOowNRT8HxnHq8RU+pDe53tXmYMCIqdG1qD33F+wM qYpreH20hU0/GoBXY5VFOaxhPXSXHerjE9q89KLoQMcGoF3+YOjQ34YOr9dH8QekD1WC fsNWWyjXbnNXBVVpbAJOrWOJ0EPFTE+L/OBqSzgarFwUv6izSPYsHRCTt9JM5Y9bP3h3 DSaqibY5ylTlhUWNp/aZrR26lj6zd/6bPy9coFP9mzwl6G1d+zyAYmKsz52LArv2HTdK 0zSoeoLemQB5wjfqRmRAz+56ir8eZ/0ls4nH01G8os1OfnP4fFODZHmX7FXAKth0Cr96 Kecg== 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 v12-v6si289284plo.170.2018.03.13.08.35.46; Tue, 13 Mar 2018 08:36:02 -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 S933763AbeCMPeY (ORCPT + 99 others); Tue, 13 Mar 2018 11:34:24 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:32796 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933751AbeCMPeV (ORCPT ); Tue, 13 Mar 2018 11:34:21 -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 6959D1032; Tue, 13 Mar 2018 15:34:20 +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.15 144/146] NFS: Fix an incorrect type in struct nfs_direct_req Date: Tue, 13 Mar 2018 16:25:11 +0100 Message-Id: <20180313152331.207311961@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@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.15-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 */