| From: |
| Qiaowei Ren <qiaowei.ren-AT-intel.com> |
| To: |
| linux-bcache-AT-vger.kernel.org |
| Subject: |
| [bch-nvm-pages v10 0/6] nvm page allocator for bcache |
| Date: |
| Fri, 21 May 2021 10:57:20 -0400 |
| Message-ID: |
| <20210521145726.154276-1-qiaowei.ren@intel.com> |
| Cc: |
| qiaowei.ren-AT-intel.com, jianpeng.ma-AT-intel.com, colyli-AT-suse.de, rdunlap-AT-infradead.oom |
| Archive-link: |
| Article |
From: Jianpeng Ma <jianpeng.ma@intel.com>
This series implements nvm pages allocator for bcache. This idea is from
one discussion about nvdimm use case in kernel together with Coly. Coly
sent the following email about this idea to give some introduction on what
we will do before:
https://lore.kernel.org/linux-bcache/bc7e71ec-97eb-b226-d...
Here this series focus on the first step in above email, that is to say,
this patch set implements a generic framework in bcache to allocate/release
NV-memory pages, and provide allocated pages for each requestor after reboot.
In order to do this, one simple buddy system is implemented to manage NV-memory
pages.
Coly Li (1):
bcache: add initial data structures for nvm pages
Jianpeng Ma (5):
bcache: initialize the nvm pages allocator
bcache: initialization of the buddy
cache: bch_nvm_alloc_pages() of the buddy
bcache: bch_nvm_free_pages() of the buddy
bcache: get allocated pages from specific owner
drivers/md/bcache/Kconfig | 9 +
drivers/md/bcache/Makefile | 1 +
drivers/md/bcache/nvm-pages.c | 769 ++++++++++++++++++++++++++++++++
drivers/md/bcache/nvm-pages.h | 92 ++++
drivers/md/bcache/super.c | 3 +
include/uapi/linux/bcache-nvm.h | 206 +++++++++
6 files changed, 1080 insertions(+)
create mode 100644 drivers/md/bcache/nvm-pages.c
create mode 100644 drivers/md/bcache/nvm-pages.h
create mode 100644 include/uapi/linux/bcache-nvm.h
--
2.25.1