Commit b3cf37bf authored by Coly Li's avatar Coly Li Committed by Jens Axboe

bcache: move open brace at end of function definitions to next line

This is not a preferred style to place open brace '{' at the end of
function definition, checkpatch.pl reports error for such coding
style. This patch moves them into the start of the next new line.
Signed-off-by: default avatarColy Li <colyli@suse.de>
Reviewed-by: default avatarShenghui Wang <shhuiw@foxmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent e1f08f1b
...@@ -2152,7 +2152,8 @@ static ssize_t register_bcache(struct kobject *k, struct kobj_attribute *attr, ...@@ -2152,7 +2152,8 @@ static ssize_t register_bcache(struct kobject *k, struct kobj_attribute *attr,
kobj_attribute_write(register, register_bcache); kobj_attribute_write(register, register_bcache);
kobj_attribute_write(register_quiet, register_bcache); kobj_attribute_write(register_quiet, register_bcache);
static bool bch_is_open_backing(struct block_device *bdev) { static bool bch_is_open_backing(struct block_device *bdev)
{
struct cache_set *c, *tc; struct cache_set *c, *tc;
struct cached_dev *dc, *t; struct cached_dev *dc, *t;
...@@ -2166,7 +2167,8 @@ static bool bch_is_open_backing(struct block_device *bdev) { ...@@ -2166,7 +2167,8 @@ static bool bch_is_open_backing(struct block_device *bdev) {
return false; return false;
} }
static bool bch_is_open_cache(struct block_device *bdev) { static bool bch_is_open_cache(struct block_device *bdev)
{
struct cache_set *c, *tc; struct cache_set *c, *tc;
struct cache *ca; struct cache *ca;
unsigned int i; unsigned int i;
...@@ -2178,7 +2180,8 @@ static bool bch_is_open_cache(struct block_device *bdev) { ...@@ -2178,7 +2180,8 @@ static bool bch_is_open_cache(struct block_device *bdev) {
return false; return false;
} }
static bool bch_is_open(struct block_device *bdev) { static bool bch_is_open(struct block_device *bdev)
{
return bch_is_open_cache(bdev) || bch_is_open_backing(bdev); return bch_is_open_cache(bdev) || bch_is_open_backing(bdev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment