mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
drbd: improve log message if received sector offset exceeds local capacity
Signed-off-by: Philipp Reisner <[email protected]> Signed-off-by: Lars Ellenberg <[email protected]>
This commit is contained in:
parent
e99dc367b3
commit
fdda6544ad
1 changed files with 2 additions and 1 deletions
|
|
@ -1267,7 +1267,8 @@ read_in_block(struct drbd_conf *mdev, u64 id, sector_t sector, int data_size) __
|
|||
/* even though we trust out peer,
|
||||
* we sometimes have to double check. */
|
||||
if (sector + (data_size>>9) > capacity) {
|
||||
dev_err(DEV, "capacity: %llus < sector: %llus + size: %u\n",
|
||||
dev_err(DEV, "request from peer beyond end of local disk: "
|
||||
"capacity: %llus < sector: %llus + size: %u\n",
|
||||
(unsigned long long)capacity,
|
||||
(unsigned long long)sector, data_size);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue