* [PATCH] nbd: pass the nbd pointer for flags debugfs
@ 2016-06-08 14:32 Josef Bacik
2016-06-08 15:02 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Josef Bacik @ 2016-06-08 14:32 UTC (permalink / raw)
To: mpa, linux-kernel, axboe
We were passing in &nbd for the private data in debugfs_create_file() for the
flags entry. We expect it to just be nbd, fix this so we get proper output from
this debugfs entry.
Signed-off-by: Josef Bacik <jbacik@fb.com>
---
drivers/block/nbd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index 31e73a7..6a48ed4 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -941,7 +941,7 @@ static int nbd_dev_dbg_init(struct nbd_device *nbd)
debugfs_create_u64("size_bytes", 0444, dir, &nbd->bytesize);
debugfs_create_u32("timeout", 0444, dir, &nbd->xmit_timeout);
debugfs_create_u32("blocksize", 0444, dir, &nbd->blksize);
- debugfs_create_file("flags", 0444, dir, &nbd, &nbd_dbg_flags_ops);
+ debugfs_create_file("flags", 0444, dir, nbd, &nbd_dbg_flags_ops);
return 0;
}
--
2.5.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] nbd: pass the nbd pointer for flags debugfs
2016-06-08 14:32 [PATCH] nbd: pass the nbd pointer for flags debugfs Josef Bacik
@ 2016-06-08 15:02 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2016-06-08 15:02 UTC (permalink / raw)
To: Josef Bacik, mpa, linux-kernel
On 06/08/2016 08:32 AM, Josef Bacik wrote:
> We were passing in &nbd for the private data in debugfs_create_file() for the
> flags entry. We expect it to just be nbd, fix this so we get proper output from
> this debugfs entry.
Added for this series, thanks Josef.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-08 15:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-08 14:32 [PATCH] nbd: pass the nbd pointer for flags debugfs Josef Bacik
2016-06-08 15:02 ` Jens Axboe
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).