Heesub Shin 1dd61aa31c 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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-12-13 12:42:51 -08:00
..
2014-12-13 12:42:45 -08:00
2014-12-13 12:42:45 -08:00
2014-12-08 20:25:23 -05:00
2014-10-09 22:26:00 -04:00
2014-01-27 21:02:39 -08:00
2014-09-24 14:07:58 +02:00
2014-12-13 12:42:45 -08:00
2014-10-09 22:25:58 -04:00
2014-10-29 10:34:34 -04:00
2014-10-24 00:14:37 +02:00
2014-08-29 16:28:16 -07:00