Received: from HIOEXCMBX07-PRD.hq.netapp.com (10.122.105.40) by
 HIOEXCMBX05-PRD.hq.netapp.com (10.122.105.38) with Microsoft SMTP Server
 (TLS) id 15.0.1156.6 via Mailbox Transport; Wed, 18 May 2016 17:40:46 -0700
Received: from VMWEXCHTS04-PRD.hq.netapp.com (10.122.105.32) by
 hioexcmbx07-prd.hq.netapp.com (10.122.105.40) with Microsoft SMTP Server
 (TLS) id 15.0.1156.6; Wed, 18 May 2016 17:40:46 -0700
Received: from mx143.netapp.com (10.120.60.85) by
 VMWEXCHTS04-PRD.hq.netapp.com (10.122.105.32) with Microsoft SMTP Server
 (TLS) id 15.0.1156.6; Wed, 18 May 2016 17:40:45 -0700
IronPort-PHdr: 9a23:iWxGHBN+8uUH7FtYeA4l6mtUPXoX/o7sNwtQ0KIMzox0KPTyrarrMEGX3/hxlliBBdydsKIVzbGP+Pq+EUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ35XxjLn5ocObSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6LoJvvRNWqTifqk+UacQTHF/azh0t4XXskz/VwyJ6jM5Q2YSnxBVGBSNuA3gWZH99C7rte5w0jSBIeX4XKtyRDWlqaFsHkzGkiACYgUl/XnXh8o4tqVHoA2soxg3l5XaeqmePfx0OKrAYNxcQnBOGM9MAX8SSrigZpcCWrJSdd1TqJPw8h5X9UOz
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A8DrAQAACz1X/wA5ASSIgAEAAl0cAYJwASmBVKVNAQEDAQaUIgENgXUShX+BQDgUAQEBAQEBAQFkJ4ItgkMTBgEBNwE7NE6IQ7BthSgBAQWNDwEBAQcfCIQbgUKMHAtAgkaTNoR6jhYKjxqPSR4BAUKBeYIGKjKIBgEBAQ
X-IPAS-Result: A8DrAQAACz1X/wA5ASSIgAEAAl0cAYJwASmBVKVNAQEDAQaUIgENgXUShX+BQDgUAQEBAQEBAQFkJ4ItgkMTBgEBNwE7NE6IQ7BthSgBAQWNDwEBAQcfCIQbgUKMHAtAgkaTNoR6jhYKjxqPSR4BAUKBeYIGKjKIBgEBAQ
X-IronPort-AV: E=Sophos;i="5.26,331,1459839600"; 
   d="scan'208";a="115278843"
X-Amp-Result: Clean
X-Amp-File-Uploaded: False
X-SBRS: None
Received: from ozlabs.org ([IPv6:2401:3900:2:1::2])
  by mx143.netapp.com with ESMTP/TLS/ADH-AES256-GCM-SHA384; 18 May 2016 17:40:46 -0700
Received: from authenticated.ozlabs.org (localhost [127.0.0.1])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by ozlabs.org (Postfix) with ESMTPSA id 3r9C0Q6tTgz9t6Y;
	Thu, 19 May 2016 10:40:38 +1000 (AEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au;
	s=201601; t=1463618439;
	bh=d6OxbcTr2iIBHiW3R4b6MdbiIJ5MkRjU61rsTWDvnt0=;
	h=Date:From:To:Cc:Subject:From;
	b=ojyEtlHfxCy6plpCcr2GwZZERwqZYomEoFfkQSd5PaxmhaJj624cEAy2RSQp45nTl
	 9arfr45gtrul1zmgUUsAY+PQUDGScON8PQBCaCLwxkN89pc4UI6OJsESW7MBqeobO2
	 iAwBf2D2SQ96Goz/lXWxheTePA2qJQ4uGgLmvJTI=
Date: Thu, 19 May 2016 10:40:36 +1000
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
CC: <linux-next@vger.kernel.org>, <linux-kernel@vger.kernel.org>, "Christoph
 Hellwig" <hch@lst.de>, Al Viro <viro@zeniv.linux.org.uk>, "Weston Andros
 Adamson" <dros@primarydata.com>, Anna Schumaker <Anna.Schumaker@Netapp.com>
Subject: linux-next: manual merge of the nfs tree with Linus' tree
Message-ID: <20160519104036.3f1ac7cf@canb.auug.org.au>
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Return-Path: sfr@canb.auug.org.au
X-MS-Exchange-Organization-Network-Message-Id: c4d7fea4-5039-4a42-bd68-08d37f7e3748
X-MS-Exchange-Organization-AVStamp-Enterprise: 1.0
X-MS-Exchange-Organization-AuthSource: VMWEXCHTS04-PRD.hq.netapp.com
X-MS-Exchange-Organization-AuthAs: Anonymous
MIME-Version: 1.0

Hi Trond,

Today's linux-next merge of the nfs tree got a conflict in:

  fs/nfs/direct.c

between commit:

  c8b8e32d700f ("direct-io: eliminate the offset argument to ->direct_IO")

from Linus' tree and commit:

  ed3743a6d4f3 ("nfs: add debug to directio "good_bytes" counting")

from the nfs tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc fs/nfs/direct.c
index 741a92c470bb,7f03163b5364..000000000000
--- a/fs/nfs/direct.c
+++ b/fs/nfs/direct.c
@@@ -591,8 -596,8 +594,8 @@@ ssize_t nfs_file_direct_read(struct kio
  		goto out_unlock;
  
  	dreq->inode = inode;
- 	dreq->bytes_left = count;
+ 	dreq->bytes_left = dreq->max_count = count;
 -	dreq->io_start = pos;
 +	dreq->io_start = iocb->ki_pos;
  	dreq->ctx = get_nfs_open_context(nfs_file_open_context(iocb->ki_filp));
  	l_ctx = nfs_get_lock_context(dreq->ctx);
  	if (IS_ERR(l_ctx)) {
