Re: [PATCH v7 18/22] xip: Add xip_zero_page_range

2014-04-10 Thread Jan Kara
On Thu 10-04-14 10:27:29, Matthew Wilcox wrote: > On Wed, Apr 09, 2014 at 12:15:12PM +0200, Jan Kara wrote: > > > + /* > > > + * ext4 sometimes asks to zero past the end of a block. It > > > + * really just wants to zero to the end of the block. > > > + */ > >

Re: [PATCH v7 18/22] xip: Add xip_zero_page_range

2014-04-10 Thread Matthew Wilcox
On Wed, Apr 09, 2014 at 12:15:12PM +0200, Jan Kara wrote: > > + /* > > +* ext4 sometimes asks to zero past the end of a block. It > > +* really just wants to zero to the end of the block. > > +*/ > Then we should really fix ext4 I believe... Since I

Re: [PATCH v7 18/22] xip: Add xip_zero_page_range

2014-04-09 Thread Jan Kara
On Sun 23-03-14 15:08:44, Matthew Wilcox wrote: > This new function allows us to support hole-punch for XIP files by zeroing > a partial page, as opposed to the xip_truncate_page() function which can > only truncate to the end of the page. Reimplement xip_truncate_page() as > a macro that calls xi