From: "Verma, Vishal L" Subject: Re: [PATCH 3/7] ext2: Avoid DAX zeroing to corrupt data Date: Tue, 17 May 2016 06:52:47 +0000 Message-ID: <1463467967.3069.3.camel@intel.com> References: <1462960733-29634-1-git-send-email-jack@suse.cz> <1462960733-29634-4-git-send-email-jack@suse.cz> <20160512184522.GA19851@linux.intel.com> <20160516152206.GC21714@quack2.suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Cc: "linux-ext4@vger.kernel.org" , "Williams, Dan J" , "linux-nvdimm@lists.01.org" , "tytso@mit.edu" , "linux-fsdevel@vger.kernel.org" To: "ross.zwisler@linux.intel.com" , "jack@suse.cz" Return-path: In-Reply-To: <20160516152206.GC21714@quack2.suse.cz> Content-Language: en-US Content-ID: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org T24gTW9uLCAyMDE2LTA1LTE2IGF0IDE3OjIyICswMjAwLCBKYW4gS2FyYSB3cm90ZToNCj4gT24g VGh1IDEyLTA1LTE2IDEyOjQ1OjIyLCBSb3NzIFp3aXNsZXIgd3JvdGU6DQo+ID4gDQo+ID4gT24g V2VkLCBNYXkgMTEsIDIwMTYgYXQgMTE6NTg6NDlBTSArMDIwMCwgSmFuIEthcmEgd3JvdGU6DQo+ ID4gPiANCj4gPiA+IEN1cnJlbnRseSBleHQyIHplcm9lcyBhbnkgZGF0YSBibG9ja3MgYWxsb2Nh dGVkIGZvciBEQVggaW5vZGUNCj4gPiA+IGhvd2V2ZXIgaXQNCj4gPiA+IHN0aWxsIHJldHVybnMg dGhlbSBhcyBCSF9OZXcuIFRodXMgREFYIGNvZGUgemVyb2VzIHRoZW0gYWdhaW4gaW4NCj4gPiA+ IGRheF9pbnNlcnRfbWFwcGluZygpIHdoaWNoIGNhbiBwb3NzaWJseSBvdmVyd3JpdGUgdGhlIGRh dGEgdGhhdA0KPiA+ID4gaGFzIGJlZW4NCj4gPiA+IGFscmVhZHkgc3RvcmVkIH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