Re: [PATCH] truncate () doesn't clear partial pages

2000-12-10 Thread Miloslav Trmac
Hi, On Sun, Dec 10, 2000 at 03:30:41PM -0500, Alexander Viro wrote: > On Sun, 10 Dec 2000, Miloslav Trmac wrote: > > Hi, > > vmtruncate () in test11 doesn't clear ends of partial pages. Patch is attached > > It doesn't and it shouldn't. That's done in ->truncate(). Check ext2_truncate() > for exa

Re: [PATCH] truncate () doesn't clear partial pages

2000-12-10 Thread Alexander Viro
On Sun, 10 Dec 2000, Miloslav Trmac wrote: > Hi, > vmtruncate () in test11 doesn't clear ends of partial pages. Patch is attached It doesn't and it shouldn't. That's done in ->truncate(). Check ext2_truncate() for example. - To unsubscribe from this list: send the line "unsubscribe linux-kern

[PATCH] truncate () doesn't clear partial pages

2000-12-10 Thread Miloslav Trmac
Hi, vmtruncate () in test11 doesn't clear ends of partial pages. Patch is attached below. HOWEVER, it doesn't fix everything: partial_clear () contains if (!pte_present(pte)) return; so swapped-out pages don't get truncated (so the patch seems to break things: truncate () b