projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb99e87
)
dm log: avoid multiple line dereference
author
Heinz Mauelshagen
<heinzm@redhat.com>
Tue, 7 Feb 2023 21:02:17 +0000
(22:02 +0100)
committer
Mike Snitzer
<snitzer@kernel.org>
Tue, 14 Feb 2023 19:23:07 +0000
(14:23 -0500)
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-log.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-log.c
b/drivers/md/dm-log.c
index 13271839054faba9c9c736dee36fb789e33a7b28..afd94d2e72957fd44ed865dcc9e0110770849c95 100644
(file)
--- a/
drivers/md/dm-log.c
+++ b/
drivers/md/dm-log.c
@@
-447,8
+447,7
@@
static int create_log_context(struct dm_dirty_log *log, struct dm_target *ti,
*/
buf_size =
dm_round_up((LOG_OFFSET << SECTOR_SHIFT) + bitset_size,
- bdev_logical_block_size(lc->header_location.
- bdev));
+ bdev_logical_block_size(lc->header_location.bdev));
if (buf_size > bdev_nr_bytes(dev->bdev)) {
DMWARN("log device %s too small: need %llu bytes",