summaryrefslogtreecommitdiff
path: root/drivers/block/drbd/drbd_main.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-04-11 17:46:11 +0300
committerChristoph Hellwig <hch@lst.de>2018-05-16 08:24:30 +0300
commit004fd11db1d6186ef04c6af688c572deb3b12369 (patch)
treeba74dfb9287a0b6c4fa44ae6a2e95070946913e5 /drivers/block/drbd/drbd_main.c
parent4e292a9667558e5c2038a15c0eeb5d73bc1bd3c2 (diff)
downloadlinux-004fd11db1d6186ef04c6af688c572deb3b12369.tar.xz
drbd: switch to proc_create_single
And stop messing with try_module_get on THIS_MODULE, which doesn't make any sense here. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/block/drbd/drbd_main.c')
-rw-r--r--drivers/block/drbd/drbd_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index 185f1ef00a7c..c2d154faac02 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -3010,7 +3010,8 @@ static int __init drbd_init(void)
goto fail;
err = -ENOMEM;
- drbd_proc = proc_create_data("drbd", S_IFREG | S_IRUGO , NULL, &drbd_proc_fops, NULL);
+ drbd_proc = proc_create_single("drbd", S_IFREG | S_IRUGO , NULL,
+ drbd_seq_show);
if (!drbd_proc) {
pr_err("unable to register proc file\n");
goto fail;