diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2025-07-28 17:06:51 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2025-07-28 17:06:51 -0700 |
| commit | e268c230c0e9f00680c929389324cf45acf76599 (patch) | |
| tree | 2374b99d612f67b9d2fb2caa3f3bfeed3845b0d6 /fs/zonefs | |
| parent | Merge tag 'for-6.17/block-20250728' of git://git.kernel.dk/linux (diff) | |
| parent | zonefs: use ZONEFS_SUPER_SIZE instead of PAGE_SIZE (diff) | |
| download | linux-e268c230c0e9f00680c929389324cf45acf76599.tar.gz linux-e268c230c0e9f00680c929389324cf45acf76599.zip | |
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
Diffstat (limited to 'fs/zonefs')
| -rw-r--r-- | fs/zonefs/super.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c index d165eb979f21..4dc7f967c861 100644 --- a/fs/zonefs/super.c +++ b/fs/zonefs/super.c @@ -1113,11 +1113,12 @@ static int zonefs_read_super(struct super_block *sb) u32 crc, stored_crc; int ret; - super = kmalloc(PAGE_SIZE, GFP_KERNEL); + super = kmalloc(ZONEFS_SUPER_SIZE, GFP_KERNEL); if (!super) 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) goto free_super; |
