From: Vitaly Wool <vitalywool@gmail.com>
To: ddstreet@ieee.org, akpm@linux-foundation.org,
Seth Jennings <sjennings@variantweb.net>
Cc: Minchan Kim <minchan@kernel.org>,
Sergey Senozhatsky <sergey.senozhatsky@gmail.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
Linux-MM <linux-mm@kvack.org>
Subject: [PATCHv2 2/3] zbud: add compaction callbacks
Date: Sat, 26 Sep 2015 10:07:38 +0200 [thread overview]
Message-ID: <20150926100738.9dc61efc39d39533b02b8f5a@gmail.com> (raw)
In-Reply-To: <20150926100401.96a36c7cd3c913b063887466@gmail.com>
Add no-op compaction callbacks to zbud.
Signed-off-by: Vitaly Wool <vitalywool@gmail.com>
---
mm/zbud.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/mm/zbud.c b/mm/zbud.c
index fa48bcdf..d67c0aa 100644
--- a/mm/zbud.c
+++ b/mm/zbud.c
@@ -195,6 +195,16 @@ static void zbud_zpool_unmap(void *pool, unsigned long handle)
zbud_unmap(pool, handle);
}
+static unsigned long zbud_zpool_compact(void *pool)
+{
+ return 0;
+}
+
+static unsigned long zbud_zpool_get_compacted(void *pool)
+{
+ return 0;
+}
+
static u64 zbud_zpool_total_size(void *pool)
{
return zbud_get_pool_size(pool) * PAGE_SIZE;
@@ -210,6 +220,8 @@ static struct zpool_driver zbud_zpool_driver = {
.shrink = zbud_zpool_shrink,
.map = zbud_zpool_map,
.unmap = zbud_zpool_unmap,
+ .compact = zbud_zpool_compact,
+ .get_num_compacted = zbud_zpool_get_compacted,
.total_size = zbud_zpool_total_size,
};
--
1.9.1
--
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>
next prev parent reply other threads:[~2015-09-26 8:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-26 8:04 [PATCHv2 0/3] align zpool/zbud/zsmalloc on the api Vitaly Wool
2015-09-26 8:05 ` [PATCHv2 1/3] zpool: add compaction api Vitaly Wool
2015-09-26 8:07 ` Vitaly Wool [this message]
2015-09-26 8:09 ` [PATCHv2 3/3] zsmalloc: add compaction callbacks Vitaly Wool
2015-09-30 8:03 ` [PATCHv2 0/3] align zpool/zbud/zsmalloc on the api Minchan Kim
2015-10-09 12:36 ` Dan Streetman
2015-10-14 1:27 ` Sergey Senozhatsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150926100738.9dc61efc39d39533b02b8f5a@gmail.com \
--to=vitalywool@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=ddstreet@ieee.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=minchan@kernel.org \
--cc=sergey.senozhatsky@gmail.com \
--cc=sjennings@variantweb.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).