Skip to content

Commit e268c23

Browse files
committed
Merge tag 'zonefs-6.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs
Pull zonefs update from Damien Le Moal: - Use ZONEFS_SUPER_SIZE instead of PAGE_SIZE to read from disk the super block (Johannes). * tag 'zonefs-6.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs: zonefs: use ZONEFS_SUPER_SIZE instead of PAGE_SIZE
2 parents 6e11664 + 6982100 commit e268c23

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

fs/zonefs/super.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,11 +1113,12 @@ static int zonefs_read_super(struct super_block *sb)
11131113
u32 crc, stored_crc;
11141114
int ret;
11151115

1116-
super = kmalloc(PAGE_SIZE, GFP_KERNEL);
1116+
super = kmalloc(ZONEFS_SUPER_SIZE, GFP_KERNEL);
11171117
if (!super)
11181118
return -ENOMEM;
11191119

1120-
ret = bdev_rw_virt(sb->s_bdev, 0, super, PAGE_SIZE, REQ_OP_READ);
1120+
ret = bdev_rw_virt(sb->s_bdev, 0, super, ZONEFS_SUPER_SIZE,
1121+
REQ_OP_READ);
11211122
if (ret)
11221123
goto free_super;
11231124

0 commit comments

Comments
 (0)