lkml.org 
[lkml]   [2021]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/4] libnvdimm/btt: implement ->set_read_only to hook into BLKROSET processing
Date
Implement the ->set_read_only method for nd_btt.

Signed-off-by: Huaisheng Ye <huaisheng.ye@intel.com>
---
drivers/nvdimm/btt.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/nvdimm/btt.c b/drivers/nvdimm/btt.c
index 92dec4952297..91fcdac7858f 100644
--- a/drivers/nvdimm/btt.c
+++ b/drivers/nvdimm/btt.c
@@ -1514,6 +1514,7 @@ static const struct block_device_operations btt_fops = {
.submit_bio = btt_submit_bio,
.rw_page = btt_rw_page,
.getgeo = btt_getgeo,
+ .set_read_only = nd_set_ro,
};

static int btt_blk_init(struct btt *btt)
--
2.27.0
\
 
 \ /
  Last update: 2021-10-27 14:11    [W:0.058 / U:1.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site