diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-02 14:29:23 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-01-04 10:29:34 -0500 |
commit | 80f8dccf95147f9668eee021425ecf3ff6432c51 (patch) | |
tree | 242d025958013c29091d1ca6467cf42adcfe7370 | |
parent | 76e8d7cb71d415581402dbc5c5bbbbcc28ca0e47 (diff) |
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>
-rw-r--r-- | fs/hfs/mdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/hfs/mdb.c b/fs/hfs/mdb.c index aa3f0d6d043c..a3ec3ae7d347 100644 --- a/fs/hfs/mdb.c +++ b/fs/hfs/mdb.c | |||
@@ -166,7 +166,7 @@ int hfs_mdb_get(struct super_block *sb) | |||
166 | pr_warn("continuing without an alternate MDB\n"); | 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 | if (!HFS_SB(sb)->bitmap) | 170 | if (!HFS_SB(sb)->bitmap) |
171 | goto out; | 171 | goto out; |
172 | 172 | ||
@@ -360,7 +360,7 @@ void hfs_mdb_put(struct super_block *sb) | |||
360 | unload_nls(HFS_SB(sb)->nls_io); | 360 | unload_nls(HFS_SB(sb)->nls_io); |
361 | unload_nls(HFS_SB(sb)->nls_disk); | 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 | kfree(HFS_SB(sb)); | 364 | kfree(HFS_SB(sb)); |
365 | sb->s_fs_info = NULL; | 365 | sb->s_fs_info = NULL; |
366 | } | 366 | } |