From: Huang Shijie Date: Mon, 24 May 2010 21:31:58 +0000 (-0700) Subject: shmem: remove redundant code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4b50dc26a0a25a9d1998d206e1f7d849aa78063f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git shmem: remove redundant code prep_new_page() will call set_page_private(page, 0) to initialise the page, so the code is redundant. Signed-off-by: Huang Shijie Reviewed-by: Minchan Kim Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/shmem.c b/mm/shmem.c index 0cd7f66f1c66..4ef9797bd430 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -433,8 +433,6 @@ static swp_entry_t *shmem_swp_alloc(struct shmem_inode_info *info, unsigned long spin_unlock(&info->lock); page = shmem_dir_alloc(mapping_gfp_mask(inode->i_mapping)); - if (page) - set_page_private(page, 0); spin_lock(&info->lock); if (!page) {