Return-Path: Received: from us-smtp-delivery-194.mimecast.com ([63.128.21.194]:59817 "EHLO us-smtp-delivery-194.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756059AbcG1Srs (ORCPT ); Thu, 28 Jul 2016 14:47:48 -0400 From: Trond Myklebust To: "bcodding@redhat.com" , "linux-nfs@vger.kernel.org" CC: "anna.schumaker@netapp.com" , "hch@infradead.org" Subject: Re: [PATCH 1/2] pnfs/blocklayout: update last_write_offset in prepare_layoutcommit Date: Thu, 28 Jul 2016 18:47:40 +0000 Message-ID: <1469731659.9558.3.camel@primarydata.com> References: <973de15d7e14e23d6945ad03713384c97a6a0087.1469730653.git.bcodding@redhat.com> In-Reply-To: <973de15d7e14e23d6945ad03713384c97a6a0087.1469730653.git.bcodding@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gVGh1LCAyMDE2LTA3LTI4IGF0IDE0OjQxIC0wNDAwLCBCZW5qYW1pbiBDb2RkaW5ndG9uIHdy b3RlOg0KPiBCbG9jay9TQ1NJIGxheW91dCB3cml0ZSBjb21wbGV0aW9uIG1heSBhZGQgY29tbWl0 dGFibGUgZXh0ZW50cyB0byB0aGUNCj4gZXh0ZW50IHRyZWUgYmVmb3JlIHVwZGF0aW5nIHRoZSBs YXlvdXQncyBsYXN0LXdyaXR0ZW4gYnl0ZSB1bmRlciB0aGUNCj4gaW5vZGUNCj4gbG9jay7CoMKg SWYgYSBzeW5jIGhhcHBlbnMgYmVmb3JlIHRoaXMgdmFsdWUgaXMgdXBkYXRlZCwgdGhlbg0KPiBw cmVwYXJlX2xheW91dGNvbW1pdCBtYXkgZmluZCBhbmQgZW5jb2RlIHRoZXNlIGV4dGVudHMgd2hp Y2ggd291bGQNCj4gcHJvZHVjZQ0KPiBhIExBWU9VVENPTU1JVCByZXF1ZXN0IHdob3NlIGVuY29k ZWQgZXh0ZW50cyBhcmUgbGFyZ2VyIHRoY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