Re: [PATCH V5 11/13] Btrfs: Clean pte corresponding to page straddling i_size

2015-10-02 Thread Chandan Rajendra
On Thursday 01 Oct 2015 10:57:52 Josef Bacik wrote: > On 09/30/2015 06:28 AM, Chandan Rajendra wrote: > > When extending a file by either "truncate up" or by writing beyond i_size, > > the page which had i_size needs to be marked "read only" so that future > > writes to the page via mmap interface

Re: [PATCH V5 11/13] Btrfs: Clean pte corresponding to page straddling i_size

2015-10-01 Thread Josef Bacik
On 09/30/2015 06:28 AM, Chandan Rajendra wrote: When extending a file by either "truncate up" or by writing beyond i_size, the page which had i_size needs to be marked "read only" so that future writes to the page via mmap interface causes btrfs_page_mkwrite() to be invoked. If not, a write