diff options
author | Coly Li <colyli@suse.de> | 2018-08-11 13:19:47 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-08-11 15:46:41 -0600 |
commit | b0d30981c05f32d8cc032b209408ca3224f05f36 (patch) | |
tree | 580e66aa0b5d76d8a9d575a3db6b1b623097c974 /drivers/md/bcache/bset.h | |
parent | fc2d5988b5972bced859944986fb36d902ac3698 (diff) | |
download | linux-stable-b0d30981c05f32d8cc032b209408ca3224f05f36.tar.gz linux-stable-b0d30981c05f32d8cc032b209408ca3224f05f36.tar.bz2 linux-stable-b0d30981c05f32d8cc032b209408ca3224f05f36.zip |
bcache: style fixes for lines over 80 characters
This patch fixes the lines over 80 characters into more lines, to minimize
warnings by checkpatch.pl. There are still some lines exceed 80 characters,
but it is better to be a single line and I don't change them.
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/bset.h')
-rw-r--r-- | drivers/md/bcache/bset.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/md/bcache/bset.h b/drivers/md/bcache/bset.h index f5bf333aa40d..bac76aabca6d 100644 --- a/drivers/md/bcache/bset.h +++ b/drivers/md/bcache/bset.h @@ -246,12 +246,14 @@ static inline bool bkey_written(struct btree_keys *b, struct bkey *k) return !b->last_set_unwritten || k < b->set[b->nsets].data->start; } -static inline unsigned int bset_byte_offset(struct btree_keys *b, struct bset *i) +static inline unsigned int bset_byte_offset(struct btree_keys *b, + struct bset *i) { return ((size_t) i) - ((size_t) b->set->data); } -static inline unsigned int bset_sector_offset(struct btree_keys *b, struct bset *i) +static inline unsigned int bset_sector_offset(struct btree_keys *b, + struct bset *i) { return bset_byte_offset(b, i) >> 9; } |