Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

HFS wants 8Kb per-superblock allocation; just use kmalloc()

... rather than play with __get_free_pages() (and figuring out the
allocation order, etc.)

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 80f8dccf 76e8d7cb

+2 -2
+2 -2
fs/hfs/mdb.c
··· 166 166 pr_warn("continuing without an alternate MDB\n"); 167 167 } 168 168 169 - HFS_SB(sb)->bitmap = (__be32 *)__get_free_pages(GFP_KERNEL, PAGE_SIZE < 8192 ? 1 : 0); 169 + HFS_SB(sb)->bitmap = kmalloc(8192, GFP_KERNEL); 170 170 if (!HFS_SB(sb)->bitmap) 171 171 goto out; 172 172 ··· 360 360 unload_nls(HFS_SB(sb)->nls_io); 361 361 unload_nls(HFS_SB(sb)->nls_disk); 362 362 363 - free_pages((unsigned long)HFS_SB(sb)->bitmap, PAGE_SIZE < 8192 ? 1 : 0); 363 + kfree(HFS_SB(sb)->bitmap); 364 364 kfree(HFS_SB(sb)); 365 365 sb->s_fs_info = NULL; 366 366 }