Re: [PATCH v3 11/12] mm/truncate,shmem: Handle truncates that split THPs

2020-10-26 Thread Jan Kara
On Mon 26-10-20 04:14:07, Matthew Wilcox (Oracle) wrote: > Handle THP splitting in the parts of the truncation functions which > already handle partial pages. Factor all that code out into a new > function called truncate_inode_partial_page(). > > We lose the easy 'bail out' path if a truncate or

[PATCH v3 11/12] mm/truncate,shmem: Handle truncates that split THPs

2020-10-25 Thread Matthew Wilcox (Oracle)
Handle THP splitting in the parts of the truncation functions which already handle partial pages. Factor all that code out into a new function called truncate_inode_partial_page(). We lose the easy 'bail out' path if a truncate or hole punch is entirely within a single page. We can add some more