* + mm-remove-the-unused-gfp-arg-to-shmem_add_to_page_cache.patch added to -mm tree
@ 2014-07-16 21:01 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2014-07-16 21:01 UTC (permalink / raw)
To: shhuiw, hughd, mm-commits
The patch titled
Subject: mm/shmem.c: remove the unused gfp arg to shmem_add_to_page_cache()
has been added to the -mm tree. Its filename is
mm-remove-the-unused-gfp-arg-to-shmem_add_to_page_cache.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/mm-remove-the-unused-gfp-arg-to-shmem_add_to_page_cache.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/mm-remove-the-unused-gfp-arg-to-shmem_add_to_page_cache.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Wang Sheng-Hui <shhuiw@gmail.com>
Subject: mm/shmem.c: remove the unused gfp arg to shmem_add_to_page_cache()
The gfp arg is not used in shmem_add_to_page_cache. Remove this unused
arg.
Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/shmem.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff -puN mm/shmem.c~mm-remove-the-unused-gfp-arg-to-shmem_add_to_page_cache mm/shmem.c
--- a/mm/shmem.c~mm-remove-the-unused-gfp-arg-to-shmem_add_to_page_cache
+++ a/mm/shmem.c
@@ -293,7 +293,7 @@ static bool shmem_confirm_swap(struct ad
*/
static int shmem_add_to_page_cache(struct page *page,
struct address_space *mapping,
- pgoff_t index, gfp_t gfp, void *expected)
+ pgoff_t index, void *expected)
{
int error;
@@ -662,7 +662,7 @@ static int shmem_unuse_inode(struct shme
*/
if (!error)
error = shmem_add_to_page_cache(*pagep, mapping, index,
- GFP_NOWAIT, radswap);
+ radswap);
if (error != -ENOMEM) {
/*
* Truncation and eviction use free_swap_and_cache(), which
@@ -1113,7 +1113,7 @@ repeat:
error = mem_cgroup_try_charge(page, current->mm, gfp, &memcg);
if (!error) {
error = shmem_add_to_page_cache(page, mapping, index,
- gfp, swp_to_radix_entry(swap));
+ swp_to_radix_entry(swap));
/*
* We already confirmed swap under page lock, and make
* no memory allocation here, so usually no possibility
@@ -1179,7 +1179,7 @@ repeat:
error = radix_tree_maybe_preload(gfp & GFP_RECLAIM_MASK);
if (!error) {
error = shmem_add_to_page_cache(page, mapping, index,
- gfp, NULL);
+ NULL);
radix_tree_preload_end();
}
if (error) {
_
Patches currently in -mm which might be from shhuiw@gmail.com are
mm-update-the-description-for-madvise_remove.patch
mm-update-the-description-for-vm_total_pages.patch
mm-remove-the-unused-gfp-arg-to-shmem_add_to_page_cache.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-16 21:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-16 21:01 + mm-remove-the-unused-gfp-arg-to-shmem_add_to_page_cache.patch added to -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.