diff options
author | Yu Kuai <yukuai3@huawei.com> | 2024-08-26 15:44:16 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2024-08-27 10:14:15 -0700 |
commit | ec6bb299c7c3dd4ca1724d13d5f5fae3ee54fc65 (patch) | |
tree | 01c310778a0fa5ee221708e9f7fac84c4677b327 /drivers/md/md-bitmap.h | |
parent | 82697ccf7e495c1ba81e315c2886d6220ff84c2c (diff) |
md/md-bitmap: add 'sync_size' into struct md_bitmap_stats
To avoid dereferencing bitmap directly in md-cluster to prepare
inventing a new bitmap.
BTW, also fix following checkpatch warnings:
WARNING: Deprecated use of 'kmap_atomic', prefer 'kmap_local_page' instead
WARNING: Deprecated use of 'kunmap_atomic', prefer 'kunmap_local' instead
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20240826074452.1490072-7-yukuai1@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'drivers/md/md-bitmap.h')
-rw-r--r-- | drivers/md/md-bitmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md-bitmap.h b/drivers/md/md-bitmap.h index 751dca2366c3..a43a75575769 100644 --- a/drivers/md/md-bitmap.h +++ b/drivers/md/md-bitmap.h @@ -237,6 +237,7 @@ struct bitmap { struct md_bitmap_stats { u64 events_cleared; unsigned long missing_pages; + unsigned long sync_size; unsigned long pages; struct file *file; }; |