Received: by 10.213.65.68 with SMTP id h4csp514397imn; Fri, 16 Mar 2018 10:04:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELv4dVMP5lcXyaM5MW10xHxxCJNoAsKY3cjsDbm07jrOmYvcG7kN3FNo7O9WNkmMvGTz50Cs X-Received: by 2002:a17:902:d202:: with SMTP id t2-v6mr2975972ply.216.1521219873417; Fri, 16 Mar 2018 10:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521219873; cv=none; d=google.com; s=arc-20160816; b=N4/0cSsN7jIopnqILcCIsNh3nKVr9WIBXU83VScxh9ktUqNtWIJwap2EEQpjve+Gxx JPOns9tN6qEYh+V2hj7IsUF1fFZYli7XzhRSZO+0Bkv6zt49G/U7zGMOIDM2laEZpyi1 eyYEs3oZaJ8+T1wwhdJEv20/IdVdOxlrwQE3R4xdGS2c/xd9nobYaXCWCO/SxbCB4w33 WkhIVY6VGh2rQQGATtV+Ow+zeZMdb07E9EoFlTMmY50rIVAjg+tDQpgzeIYMWbFmEWxW VFM+DJVn+7rjrL+sayd6qhNeVcHBLhSycx5oiSpCFUVEdPUCoS8NFogJqUhFMZJmiB66 0GZQ== 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=zYfcbHMPYVeny4mIBJbJ33JK7Mvj35Ac81Gyhyur1RI=; b=Rq7SMey1EdgRh89i8Io8i2FjfAnV3q7+v7m0NAsnyJKyIri25gD2tFMZnVAjja4QbW DxxK2Aj/+T/CjgQrGqFSl7wSiyAqM5HkH5k0+5BI0S+FFWL4oJpgxUYGMvECsxDSqL8D AkaJgtiZFVh18xPPa6ghPzD6KTkYpIRw3JTE9NqoIzQVqHB4eYypvM5Q2DOX1HzvKPzT b8+nLs0ApuIbF9nw9RnKmjj2XK/Rv/YrSEQbDlfbo2WG54vRlDI1vyLYLP+EV5Ak6kfl HUlqQflhRRoWrMjMhLd56dIj31ITksL0OX5B7vE1A7t74kbmaxpQcBZsR+xrvsVUgG/8 GV/Q== 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 a100-v6si6497171pli.483.2018.03.16.10.04.19; Fri, 16 Mar 2018 10:04: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 S933028AbeCPRBO (ORCPT + 99 others); Fri, 16 Mar 2018 13:01:14 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38102 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933601AbeCPPcn (ORCPT ); Fri, 16 Mar 2018 11:32:43 -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 7C1B411EE; Fri, 16 Mar 2018 15:32:42 +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.9 67/86] NFS: Fix an incorrect type in struct nfs_direct_req Date: Fri, 16 Mar 2018 16:23:30 +0100 Message-Id: <20180316152321.893041583@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152317.167709497@linuxfoundation.org> References: <20180316152317.167709497@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.9-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 */