Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: fix logging on capacity change
Local variable of 'capacity' stores the previous disk capacity, and 'size' variable records the latest disk capacity, so swap them for fixing logging on capacity change. Cc: Christoph Hellwig <[email protected]> Fixes: a782483 ("block: remove the nr_sects field in struct hd_struct") Signed-off-by: Ming Lei <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information