* [merged] mm-zbud-init-user-ops-only-when-it-is-needed.patch removed from -mm tree
@ 2014-12-14 4:09 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2014-12-14 4:09 UTC (permalink / raw)
To: heesub.shin, ddstreet, sjennings, sunae.seo, mm-commits
The patch titled
Subject: mm/zbud: init user ops only when it is needed
has been removed from the -mm tree. Its filename was
mm-zbud-init-user-ops-only-when-it-is-needed.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Heesub Shin <heesub.shin@samsung.com>
Subject: mm/zbud: init user ops only when it is needed
When zbud is initialized through the zpool wrapper, pool->ops which
points to user-defined operations is always set regardless of whether it
is specified from the upper layer. This causes zbud_reclaim_page() to
iterate its loop for evicting pool pages out without any gain.
This patch sets the user-defined ops only when it is needed, so that
zbud_reclaim_page() can bail out the reclamation loop earlier if there
is no user-defined operations specified.
Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Acked-by: Dan Streetman <ddstreet@ieee.org>
Cc: Seth Jennings <sjennings@variantweb.net>
Cc: Sunae Seo <sunae.seo@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/zbud.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN mm/zbud.c~mm-zbud-init-user-ops-only-when-it-is-needed mm/zbud.c
--- a/mm/zbud.c~mm-zbud-init-user-ops-only-when-it-is-needed
+++ a/mm/zbud.c
@@ -132,7 +132,7 @@ static struct zbud_ops zbud_zpool_ops =
static void *zbud_zpool_create(gfp_t gfp, struct zpool_ops *zpool_ops)
{
- return zbud_create_pool(gfp, &zbud_zpool_ops);
+ return zbud_create_pool(gfp, zpool_ops ? &zbud_zpool_ops : NULL);
}
static void zbud_zpool_destroy(void *pool)
_
Patches currently in -mm which might be from heesub.shin@samsung.com are
origin.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-14 4:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-14 4:09 [merged] mm-zbud-init-user-ops-only-when-it-is-needed.patch removed from -mm tree akpm
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).