aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/structleak_plugin.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2021-02-23 08:50:15 +0000
committerJens Axboe <[email protected]>2021-02-24 02:28:51 +0000
commit452c0bf8754fbeffdf579465b82a3c2bbe373c95 (patch)
tree12f491255956830d0da74318f97fe6b0ebc1a5e0 /scripts/gcc-plugins/structleak_plugin.c
parentblk-settings: align max_sectors on "logical_block_size" boundary (diff)
downloadkernel-452c0bf8754fbeffdf579465b82a3c2bbe373c95.tar.gz
kernel-452c0bf8754fbeffdf579465b82a3c2bbe373c95.zip
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: a782483cc1f8 ("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]>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions