From: "Verma, Vishal L" Subject: Re: [PATCH 4/5] dax: use sb_issue_zerout instead of calling dax_clear_sectors Date: Fri, 25 Mar 2016 21:03:19 +0000 Message-ID: <1458939796.5501.8.camel@intel.com> References: <1458861450-17705-1-git-send-email-vishal.l.verma@intel.com> <1458861450-17705-5-git-send-email-vishal.l.verma@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Cc: "linux-block@vger.kernel.org" , "xfs@oss.sgi.com" , "linux-mm@kvack.org" , "viro@zeniv.linux.org.uk" , "axboe@fb.com" , "akpm@linux-foundation.org" , "linux-nvdimm@lists.01.org" , "linux-fsdevel@vger.kernel.org" , "ross.zwisler@linux.intel.com" , "linux-ext4@vger.kernel.org" , "Wilcox, Matthew R" , "david@fromorbit.com" , "jack@suse.cz" To: "Williams, Dan J" Return-path: In-Reply-To: Content-Language: en-US Content-ID: <908F3F139AEC484E8BF8AC328A859865@intel.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org T24gRnJpLCAyMDE2LTAzLTI1IGF0IDExOjQ3IC0wNzAwLCBEYW4gV2lsbGlhbXMgd3JvdGU6DQo+ IE9uIFRodSwgTWFyIDI0LCAyMDE2IGF0IDQ6MTcgUE0sIFZpc2hhbCBWZXJtYSA8dmlzaGFsLmwu dmVybWFAaW50ZWwuYw0KPiBvbT4gd3JvdGU6DQo+ID4gDQo+ID4gRnJvbTogTWF0dGhldyBXaWxj b3ggPG1hdHRoZXcuci53aWxjb3hAaW50ZWwuY29tPg0KPiA+IA0KPiA+IGRheF9jbGVhcl9zZWN0 b3JzKCkgY2Fubm90IGhhbmRsZSBwb2lzb25lZCBibG9ja3MuwqDCoFRoZXNlIG11c3QgYmUNCj4g PiB6ZXJvZWQgdXNpbmcgdGhlIEJJTyBpbnRlcmZhY2UgaW5zdGVhZC7CoMKgQ29udmVydCBleHQy IGFuZCBYRlMgdG8NCj4gPiB1c2UNCj4gPiBvbmx5IHNiX2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