diff options
author | Christoph Hellwig <[email protected]> | 2023-06-15 08:48:31 +0200 |
---|---|---|
committer | Song Liu <[email protected]> | 2023-07-27 00:13:29 -0700 |
commit | 546ac0b2e2b15d0af7e6d10506558dded1d9d54a (patch) | |
tree | 2a49e2aecb4f7c85160350aa0524947a374f949d | |
parent | 59cefee75bda5d4cc14f4a1ca861b69091e22c3e (diff) |
md-bitmap: initialize variables at declaration time in md_bitmap_file_unmap
Just a small tidyup to prepare for bigger changes.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Reviewed-by: Himanshu Madhani <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
-rw-r--r-- | drivers/md/md-bitmap.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/md/md-bitmap.c b/drivers/md/md-bitmap.c index d8469720fac2..0b2d8933cbc7 100644 --- a/drivers/md/md-bitmap.c +++ b/drivers/md/md-bitmap.c @@ -842,14 +842,10 @@ static int md_bitmap_storage_alloc(struct bitmap_storage *store, static void md_bitmap_file_unmap(struct bitmap_storage *store) { - struct page **map, *sb_page; - int pages; - struct file *file; - - file = store->file; - map = store->filemap; - pages = store->file_pages; - sb_page = store->sb_page; + struct file *file = store->file; + struct page *sb_page = store->sb_page; + struct page **map = store->filemap; + int pages = store->file_pages; while (pages--) if (map[pages] != sb_page) /* 0 is sb_page, release it below */ |