![]() | |||||||||||||
Messages in this thread |
On Sat, 2006-10-14 at 06:19 +0200, Nick Piggin wrote: > On Fri, Oct 13, 2006 at 03:14:57PM -0700, Andrew Morton wrote: > > On Fri, 13 Oct 2006 18:44:52 +0200 (CEST) > > Nick Piggin <npiggin@suse.de> wrote: > > > @@ -2450,6 +2436,7 @@ int nobh_truncate_page(struct address_sp > > > memset(kaddr + offset, 0, PAGE_CACHE_SIZE - offset); > > > flush_dcache_page(page); > > > kunmap_atomic(kaddr, KM_USER0); > > > + SetPageUptodate(page); > > > set_page_dirty(page); > > > } > > > unlock_page(page); > > > > I've already forgotten why this was added. Comment, please ;) > > Well, nobh_prepare_write no longer sets it uptodate, so we need to if > we're going to set_page_dirty. OTOH, why does truncate_page need to > zero the pagecache anyway? I wonder if we couldn't delete this whole > function? (not in this patchset!) It zeros the tail end of the page so we don't leak old data? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2006-10-15 13:41 [from the cache] ©2003-2008 | |||||||||||||