Re: [PATCH v10 09/21] Replace the XIP page fault handler with the DAX page fault handler

2014-09-24 Thread Dave Chinner
On Wed, Sep 24, 2014 at 11:43:07AM -0400, Matthew Wilcox wrote: > On Thu, Sep 11, 2014 at 01:09:26PM +1000, Dave Chinner wrote: > > On Wed, Sep 10, 2014 at 11:23:37AM -0400, Matthew Wilcox wrote: > > > On Wed, Sep 03, 2014 at 05:47:24PM +1000, Dave Chinner wrote: > > > > > + error = get_block(i

Re: [PATCH v10 09/21] Replace the XIP page fault handler with the DAX page fault handler

2014-09-24 Thread Matthew Wilcox
On Thu, Sep 11, 2014 at 01:09:26PM +1000, Dave Chinner wrote: > On Wed, Sep 10, 2014 at 11:23:37AM -0400, Matthew Wilcox wrote: > > On Wed, Sep 03, 2014 at 05:47:24PM +1000, Dave Chinner wrote: > > > > + error = get_block(inode, block, &bh, 0); > > > > + if (!error && (bh.b_size < PAGE_

Re: [PATCH v10 09/21] Replace the XIP page fault handler with the DAX page fault handler

2014-09-10 Thread Dave Chinner
On Wed, Sep 10, 2014 at 11:23:37AM -0400, Matthew Wilcox wrote: > On Wed, Sep 03, 2014 at 05:47:24PM +1000, Dave Chinner wrote: > > > + error = get_block(inode, block, &bh, 0); > > > + if (!error && (bh.b_size < PAGE_SIZE)) > > > + error = -EIO; > > > + if (error) > > > + goto unloc

Re: [PATCH v10 09/21] Replace the XIP page fault handler with the DAX page fault handler

2014-09-10 Thread Matthew Wilcox
On Wed, Sep 03, 2014 at 05:47:24PM +1000, Dave Chinner wrote: > > + error = get_block(inode, block, &bh, 0); > > + if (!error && (bh.b_size < PAGE_SIZE)) > > + error = -EIO; > > + if (error) > > + goto unlock_page; > > page fault into unwritten region, returns buffer_unwr

Re: [PATCH v10 09/21] Replace the XIP page fault handler with the DAX page fault handler

2014-09-03 Thread Dave Chinner
On Tue, Aug 26, 2014 at 11:45:29PM -0400, Matthew Wilcox wrote: > Instead of calling aops->get_xip_mem from the fault handler, the > filesystem passes a get_block_t that is used to find the appropriate > blocks. > > Signed-off-by: Matthew Wilcox > Reviewed-by: Jan Kara There's a problem in this

[PATCH v10 09/21] Replace the XIP page fault handler with the DAX page fault handler

2014-08-26 Thread Matthew Wilcox
Instead of calling aops->get_xip_mem from the fault handler, the filesystem passes a get_block_t that is used to find the appropriate blocks. Signed-off-by: Matthew Wilcox Reviewed-by: Jan Kara --- fs/dax.c | 215 + fs/ext2/file.c