Re: [PATCH] ext4: Use page_mkwrite vma_operations to get mmap write notification.

2008-02-22 Thread Mingming Cao
On Fri, 2008-02-22 at 20:09 +0530, Aneesh Kumar K.V wrote: We would like to get notified when we are doing a write on mmap section. This is needed with respect to preallocated area. We split the preallocated area into initialzed extent and uninitialzed extent in the call back. This let us

Re: [PATCH] ext4: Use page_mkwrite vma_operations to get mmap write notification.

2008-02-22 Thread Aneesh Kumar K.V
On Fri, Feb 22, 2008 at 10:10:48AM -0800, Mingming Cao wrote: On Fri, 2008-02-22 at 20:09 +0530, Aneesh Kumar K.V wrote: . + ext4_journal_stop(handle); + goto out_unlock; + } + if (!ret ext4_should_order_data(inode)) { + ret =

Re: [PATCH] ext4: Use page_mkwrite vma_operations to get mmap write notification.

2008-02-22 Thread Mingming Cao
On Fri, 2008-02-22 at 23:53 +0530, Aneesh Kumar K.V wrote: On Fri, Feb 22, 2008 at 10:10:48AM -0800, Mingming Cao wrote: On Fri, 2008-02-22 at 20:09 +0530, Aneesh Kumar K.V wrote: . + ext4_journal_stop(handle); + goto out_unlock; + } + if (!ret

[PATCH] ext4: Use page_mkwrite vma_operations to get mmap write notification.

2008-02-18 Thread Aneesh Kumar K.V
We would like to get notified when we are doing a write on mmap section. This is needed with respect to preallocated area. We split the preallocated area into initialzed extent and uninitialzed extent in the call back. This let us handle ENOSPC better. Otherwise we get ENOSPC in the writepage and