]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
zonefs: use ZONEFS_SUPER_SIZE instead of PAGE_SIZE
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Tue, 29 Apr 2025 13:42:53 +0000 (15:42 +0200)
committerDamien Le Moal <dlemoal@kernel.org>
Fri, 13 Jun 2025 06:49:00 +0000 (15:49 +0900)
commit6982100bb8297c46122cac4f684dcf44cb7d0d8c
tree6404f09e8e541462696300974ba17a0bad5336a6
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
zonefs: use ZONEFS_SUPER_SIZE instead of PAGE_SIZE

Use ZONEFS_SUPER_SIZE constant instead of PAGE_SIZE allocating memory for
reading the super block in zonefs_read_super().

While PAGE_SIZE technically isn't incorrect as Linux doesn't support pages
smaller than 4k ZONEFS_SUPER_SIZE is semantically more correct.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
fs/zonefs/super.c