mirror of https://github.com/torvalds/linux.git
zonefs changes for 6.17-rc1
- Use ZONEFS_SUPER_SIZE instead of PAGE_SIZE to read from disk the
super block (Johannes).
-----BEGIN PGP SIGNATURE-----
iHUEABYKAB0WIQSRPv8tYSvhwAzJdzjdoc3SxdoYdgUCaIcLzAAKCRDdoc3SxdoY
du1PAQDZoyBI+zwM73r8vh26n1ftOEDbXc2RnfLbj+x9D+C52wD9GQY4VYP5DZ6u
K04UYehzCpAHRA2FEtfgEQCGr5mfsA0=
=Veb6
-----END PGP SIGNATURE-----
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
This commit is contained in:
commit
e268c230c0
|
|
@ -1113,11 +1113,12 @@ static int zonefs_read_super(struct super_block *sb)
|
||||||
u32 crc, stored_crc;
|
u32 crc, stored_crc;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
super = kmalloc(PAGE_SIZE, GFP_KERNEL);
|
super = kmalloc(ZONEFS_SUPER_SIZE, GFP_KERNEL);
|
||||||
if (!super)
|
if (!super)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
ret = bdev_rw_virt(sb->s_bdev, 0, super, PAGE_SIZE, REQ_OP_READ);
|
ret = bdev_rw_virt(sb->s_bdev, 0, super, ZONEFS_SUPER_SIZE,
|
||||||
|
REQ_OP_READ);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto free_super;
|
goto free_super;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue