mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
device: log debug when I/O bounce buffer used
This commit is contained in:
parent
efb0e7ac6f
commit
115e66e9be
@ -234,6 +234,9 @@ static int _aligned_io(struct device_area *where, char *buffer,
|
|||||||
!((uintptr_t) buffer & mask))
|
!((uintptr_t) buffer & mask))
|
||||||
return _io(where, buffer, should_write);
|
return _io(where, buffer, should_write);
|
||||||
|
|
||||||
|
log_debug_io("Widening request for %" PRIu64 " bytes at %" PRIu64 " to %" PRIu64 " bytes at %" PRIu64 " on %s",
|
||||||
|
where->size, (uint64_t) where->start, widened.size, (uint64_t) widened.start, dev_name(where->dev));
|
||||||
|
|
||||||
/* Allocate a bounce buffer with an extra block */
|
/* Allocate a bounce buffer with an extra block */
|
||||||
if (!(bounce_buf = bounce = dm_malloc((size_t) widened.size + block_size))) {
|
if (!(bounce_buf = bounce = dm_malloc((size_t) widened.size + block_size))) {
|
||||||
log_error("Bounce buffer malloc failed");
|
log_error("Bounce buffer malloc failed");
|
||||||
|
Loading…
Reference in New Issue
Block a user