linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] shmem : remove redundant code
@ 2010-03-08  9:33 Huang Shijie
  2010-03-08 16:04 ` Minchan Kim
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Huang Shijie @ 2010-03-08  9:33 UTC (permalink / raw)
  To: akpm; +Cc: hugh.dickins, linux-mm, Huang Shijie

The  prep_new_page() will call set_page_private(page, 0) to initiate
the page.

So the code is redundant.

Signed-off-by: Huang Shijie <shijie8@gmail.com>
---
 mm/shmem.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/mm/shmem.c b/mm/shmem.c
index eef4ebe..dde4363 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) {
-- 
1.6.6

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-03-11 18:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-08  9:33 [PATCH] shmem : remove redundant code Huang Shijie
2010-03-08 16:04 ` Minchan Kim
2010-03-09  2:02   ` Huang Shijie
2010-03-08 16:20 ` [PATCH] kvm : remove redundant initialization of page->private Minchan Kim
2010-03-10 10:19   ` Avi Kivity
2010-03-10 14:31     ` Minchan Kim
2010-03-11  7:42       ` Avi Kivity
2010-03-11  8:51         ` Jan Kiszka
2010-03-11  8:55           ` Avi Kivity
2010-03-11 18:43             ` Hugh Dickins
2010-03-09 21:25 ` [PATCH] shmem : remove redundant code Hugh Dickins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).