diff options
author | Yu Kuai <yukuai3@huawei.com> | 2024-08-26 15:44:17 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2024-08-27 10:14:15 -0700 |
commit | 10bc2ac10597ebc0b25afbc72fa4284565548e36 (patch) | |
tree | ab213fb4c6b0b8d8ae37d5f8aeaa593379a77726 /drivers/md/md-bitmap.h | |
parent | ec6bb299c7c3dd4ca1724d13d5f5fae3ee54fc65 (diff) | |
download | linux-10bc2ac10597ebc0b25afbc72fa4284565548e36.tar.gz linux-10bc2ac10597ebc0b25afbc72fa4284565548e36.tar.bz2 linux-10bc2ac10597ebc0b25afbc72fa4284565548e36.zip |
md/md-bitmap: add 'file_pages' into struct md_bitmap_stats
There are no functional changes, avoid dereferencing bitmap directly to
prepare inventing a new bitmap.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20240826074452.1490072-8-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 a43a75575769..870125670087 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 file_pages; unsigned long sync_size; unsigned long pages; struct file *file; |