Return-Path: Received: from mail-by2nam03on0136.outbound.protection.outlook.com ([104.47.42.136]:54752 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965759AbeE2TYA (ORCPT ); Tue, 29 May 2018 15:24:00 -0400 From: Trond Myklebust To: "linux-nfs@vger.kernel.org" , "schumaker.anna@gmail.com" Subject: Re: [PATCH] NFSv4: Fix sillyrename to return the delegation when appropriate Date: Tue, 29 May 2018 19:23:57 +0000 Message-ID: <2dd4316007bdb3bff5a89663644ff9598a7ae131.camel@hammerspace.com> References: <20180529154814.12843-1-trond.myklebust@hammerspace.com> <816a261e-c94c-4d69-36b9-3f308e8787a9@gmail.com> In-Reply-To: <816a261e-c94c-4d69-36b9-3f308e8787a9@gmail.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gVHVlLCAyMDE4LTA1LTI5IGF0IDE0OjMzIC0wNDAwLCBBbm5hIFNjaHVtYWtlciB3cm90ZToN Cj4gSGkgVHJvbmQsDQo+IA0KPiBPbiAwNS8yOS8yMDE4IDExOjQ4IEFNLCBUcm9uZCBNeWtsZWJ1 c3Qgd3JvdGU6DQo+ID4gSWYgdGhlIGZpbGUgYmVpbmcgc2lsbHlyZW5hbWVkIGlzIGJlaW5nIGNv bXBsZXRlbHkgZGVsZXRlZCwgb3INCj4gPiB3ZSBhcmUgdXNpbmcgTkZTdjQuMCwgdGhlbiB3ZSBu ZWVkIHRvIHJldHVybiB0aGUgZGVsZWdhdGlvbiBiZWZvcmUNCj4gPiBzZW5kaW5nIG9mZiB0aGUg c2lsbHlkZWxldGUuDQo+ID4gDQo+ID4gU2lnbmVkLW9mZi1ieTogVHJvbmQgTXlrbGVidXN0IDx0 cm9uZC5teWtsZWJ1c3RAaGFtbWVyc3BhY2UuY29tPg0KPiA+IC0tLQ0KPiA+ICBmcy9uZnMvZGly LmMgfCAyMyArKysrKysrKysrKysr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