projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e48e67e
)
shmem: remove redundant code
author
Huang Shijie
<
[email protected]
>
Mon, 24 May 2010 21:31:58 +0000
(14:31 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 25 May 2010 15:06:57 +0000
(08:06 -0700)
prep_new_page() will call set_page_private(page, 0) to initialise the
page, so the code is redundant.
Signed-off-by: Huang Shijie <
[email protected]
>
Reviewed-by: Minchan Kim <
[email protected]
>
Acked-by: Hugh Dickins <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/shmem.c
patch
|
blob
|
history
diff --git
a/mm/shmem.c
b/mm/shmem.c
index 0cd7f66f1c668ceb7043f21f0715aff7881962b5..4ef9797bd430a9b0b79ebd7bffc1a3fcb3a1ee1f 100644
(file)
--- 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) {