The patch titled libfs: remove page up-to-date check from simple_readpage has been added to the -mm tree. Its filename is libfs-remove-page-up-to-date-check-from-simple_readpage.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: libfs: remove page up-to-date check from simple_readpage From: Pekka J Enberg <penberg@xxxxxxxxxxxxxx> Remove the unnecessary PageUptodate check from simple_readpage. The only two callers for ->readpage that don't have explicit PageUptodate check are read_cache_pages and page_cache_read which operate on newly allocated pages which don't have the flag set. [akpm: use the allegedly-faster clear_page(), too] Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- fs/libfs.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff -puN fs/libfs.c~libfs-remove-page-up-to-date-check-from-simple_readpage fs/libfs.c --- a/fs/libfs.c~libfs-remove-page-up-to-date-check-from-simple_readpage +++ a/fs/libfs.c @@ -317,17 +317,9 @@ int simple_rename(struct inode *old_dir, int simple_readpage(struct file *file, struct page *page) { - void *kaddr; - - if (PageUptodate(page)) - goto out; - - kaddr = kmap_atomic(page, KM_USER0); - memset(kaddr, 0, PAGE_CACHE_SIZE); - kunmap_atomic(kaddr, KM_USER0); + clear_highpage(page); flush_dcache_page(page); SetPageUptodate(page); -out: unlock_page(page); return 0; } _ Patches currently in -mm which might be from penberg@xxxxxxxxxxxxxx are msi-use-kmem_cache_zalloc.patch libfs-remove-page-up-to-date-check-from-simple_readpage.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html