Return-Path: linux-nfs-owner@vger.kernel.org Received: from hop-nat-141.emc.com ([168.159.213.141]:35263 "EHLO mexforward.lss.emc.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932127Ab3CLK2Q (ORCPT ); Tue, 12 Mar 2013 06:28:16 -0400 From: "Peng, Tao" To: fanchaoting CC: "linux-nfs@vger.kernel.org" , "Myklebust, Trond" Subject: RE: [PATCH] pnfs-block: may be return NULL when find a extent Date: Tue, 12 Mar 2013 10:27:34 +0000 Message-ID: <1882637210201641A747464075FFC649025986A4@MX101CL02.corp.emc.com> References: <513EC692.4090907@cn.fujitsu.com> In-Reply-To: <513EC692.4090907@cn.fujitsu.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBsaW51eC1uZnMtb3duZXJAdmdl ci5rZXJuZWwub3JnIFttYWlsdG86bGludXgtbmZzLW93bmVyQHZnZXIua2VybmVsLm9yZ10gT24g QmVoYWxmIE9mDQo+IGZhbmNoYW90aW5nDQo+IFNlbnQ6IFR1ZXNkYXksIE1hcmNoIDEyLCAyMDEz IDI6MDkgUE0NCj4gVG86IE15a2xlYnVzdCwgVHJvbmQNCj4gQ2M6IGxpbnV4LW5mc0B2Z2VyLmtl cm5lbC5vcmcNCj4gU3ViamVjdDogW1BBVENIXSBwbmZzLWJsb2NrOiBtYXkgYmUgcmV0dXJuIE5V TEwgd2hlbiBmaW5kIGEgZXh0ZW50DQo+IA0KPiBtYXliZSByZXR1cm4gTlVMTCB3aGVuIGZpbmQg YSBleHRlbnQsIGlmIHdlIHVzZSBpdCBsYXRlciwNCj4gaXQgd2lsbCBjYXVzZSBvb3BzLg0KPiAN CmFoLCBJIHdvdWxkIHNheSBpdCBpcyBpbnRlbnRpb25hbCBiZWNhdXNlIHRoZSBsb29rdXAgY2Fu bm90IGZhaWwgaGVyZS4gS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