mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Matias Bjørling" <m@bjorling.me>
To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, axboe@fb.com
Cc: "Javier González" <jg@lightnvm.io>,
	"Javier González" <javier@cnexlabs.com>,
	"Matias Bjørling" <m@bjorling.me>
Subject: [PATCH 02/17] lightnvm: add media manager mark_blk helper
Date: Thu,  7 Jul 2016 09:54:08 +0200	[thread overview]
Message-ID: <1467878063-22919-3-git-send-email-m@bjorling.me> (raw)
In-Reply-To: <1467878063-22919-1-git-send-email-m@bjorling.me>

From: Javier González <jg@lightnvm.io>

Expose media manager mark_blk() to targets, as done for the rest of the
media manager callback functions.

Signed-off-by: Javier González <javier@cnexlabs.com>
Updated description
Signed-off-by: Matias Bjørling <m@bjorling.me>

Signed-off-by: Matias Bjørling <m@bjorling.me>
---
 drivers/lightnvm/core.c  | 6 ++++++
 include/linux/lightnvm.h | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c
index 160c1a6..13993c9 100644
--- a/drivers/lightnvm/core.c
+++ b/drivers/lightnvm/core.c
@@ -210,6 +210,12 @@ void nvm_put_blk(struct nvm_dev *dev, struct nvm_block *blk)
 }
 EXPORT_SYMBOL(nvm_put_blk);
 
+void nvm_mark_blk(struct nvm_dev *dev, struct ppa_addr ppa, int type)
+{
+	return dev->mt->mark_blk(dev, ppa, type);
+}
+EXPORT_SYMBOL(nvm_mark_blk);
+
 int nvm_submit_io(struct nvm_dev *dev, struct nvm_rq *rqd)
 {
 	return dev->mt->submit_io(dev, rqd);
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
index ef2c7d2..9c56148 100644
--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -532,6 +532,8 @@ extern int nvm_register(struct request_queue *, char *,
 						struct nvm_dev_ops *);
 extern void nvm_unregister(char *);
 
+void nvm_mark_blk(struct nvm_dev *dev, struct ppa_addr ppa, int type);
+
 extern int nvm_submit_io(struct nvm_dev *, struct nvm_rq *);
 extern void nvm_generic_to_addr_mode(struct nvm_dev *, struct nvm_rq *);
 extern void nvm_addr_to_generic_mode(struct nvm_dev *, struct nvm_rq *);
-- 
2.1.4

  parent reply	other threads:[~2016-07-07  7:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-07  7:54 [GIT PULL 00/17] LightNVM pull request for 4.8 Matias Bjørling
2016-07-07  7:54 ` [PATCH 01/17] lightnvm: break the loop when rqd is not null Matias Bjørling
2016-07-07  7:54 ` Matias Bjørling [this message]
2016-07-07  7:54 ` [PATCH 03/17] lightnvm: initialize ppa_addr in dev_to_generic_addr() Matias Bjørling
2016-07-07  7:54 ` [PATCH 04/17] nvme: lightnvm: make MLC num_pairs little endian Matias Bjørling
2016-07-07  7:54 ` [PATCH 05/17] lightnvm: Make functions not used by ouside static Matias Bjørling
2016-07-07  7:54 ` [PATCH 06/17] lightnvm: remove checkpatch warning for unsigned ints Matias Bjørling
2016-07-07  7:54 ` [PATCH 07/17] lightnvm: fix checkpatch terse errors Matias Bjørling
2016-07-07  7:54 ` [PATCH 08/17] lightnvm: remove open/close statistics for gennvm Matias Bjørling
2016-07-07  7:54 ` [PATCH 09/17] lightnvm: rename gennvm and update description Matias Bjørling
2016-07-07  7:54 ` [PATCH 10/17] lightnvm: move target mgmt into media mgr Matias Bjørling
2016-07-07  7:54 ` [PATCH 11/17] lightnvm: remove nested lock conflict with mm Matias Bjørling
2016-07-07  7:54 ` [PATCH 12/17] lightnvm: remove unused lists from struct rrpc_block Matias Bjørling
2016-07-07  7:54 ` [PATCH 13/17] lightnvm: remove _unlocked variant of [get/put]_blk Matias Bjørling
2016-07-07  7:54 ` [PATCH 14/17] lightnvm: make rrpc_map_page call nvm_get_blk outside locks Matias Bjørling
2016-07-07  7:54 ` [PATCH 15/17] lightnvm: fix lun offset calculation for mark blk Matias Bjørling
2016-07-07  7:54 ` [PATCH 16/17] lightnvm: make ppa_list const in nvm_set_rqd_list Matias Bjørling
2016-07-07  7:54 ` [PATCH 17/17] lightnvm: make __nvm_submit_ppa static Matias Bjørling
2016-07-07 14:52 ` [GIT PULL 00/17] LightNVM pull request for 4.8 Jens Axboe

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=1467878063-22919-3-git-send-email-m@bjorling.me \
    --to=m@bjorling.me \
    --cc=axboe@fb.com \
    --cc=javier@cnexlabs.com \
    --cc=jg@lightnvm.io \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®