aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/debug.c
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2018-08-11 01:19:45 -0400
committerJens Axboe <axboe@kernel.dk>2018-08-11 17:46:41 -0400
commit1fae7cf05293d3a2c9e59c1bc59372322386467c (patch)
treec6ac9b2e0c717f8a7f2f2e75cfcd941726f14d47 /drivers/md/bcache/debug.c
parent6f10f7d1b02b1bbc305f88d7696445dd38b13881 (diff)
bcache: style fix to add a blank line after declarations
Signed-off-by: Coly Li <colyli@suse.de> Reviewed-by: Shenghui Wang <shhuiw@foxmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/debug.c')
-rw-r--r--drivers/md/bcache/debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/debug.c b/drivers/md/bcache/debug.c
index 0caad145902b..f0eb37a14dab 100644
--- a/drivers/md/bcache/debug.c
+++ b/drivers/md/bcache/debug.c
@@ -177,8 +177,8 @@ static ssize_t bch_dump_read(struct file *file, char __user *buf,
177 while (size) { 177 while (size) {
178 struct keybuf_key *w; 178 struct keybuf_key *w;
179 unsigned int bytes = min(i->bytes, size); 179 unsigned int bytes = min(i->bytes, size);
180
181 int err = copy_to_user(buf, i->buf, bytes); 180 int err = copy_to_user(buf, i->buf, bytes);
181
182 if (err) 182 if (err)
183 return err; 183 return err;
184 184
@@ -237,8 +237,8 @@ void bch_debug_init_cache_set(struct cache_set *c)
237{ 237{
238 if (!IS_ERR_OR_NULL(bcache_debug)) { 238 if (!IS_ERR_OR_NULL(bcache_debug)) {
239 char name[50]; 239 char name[50];
240 snprintf(name, 50, "bcache-%pU", c->sb.set_uuid);
241 240
241 snprintf(name, 50, "bcache-%pU", c->sb.set_uuid);
242 c->debug = debugfs_create_file(name, 0400, bcache_debug, c, 242 c->debug = debugfs_create_file(name, 0400, bcache_debug, c,
243 &cache_set_debug_ops); 243 &cache_set_debug_ops);
244 } 244 }