forked from Minki/linux
btrfs: GFP_NOFS does not GFP_HIGHMEM
Masking HIGHMEM out of NOFS does not make sense. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
05135f597a
commit
e1860a7724
@ -134,7 +134,7 @@ again:
|
|||||||
/* cached in the btrfs inode and can be accessed */
|
/* cached in the btrfs inode and can be accessed */
|
||||||
atomic_add(2, &node->refs);
|
atomic_add(2, &node->refs);
|
||||||
|
|
||||||
ret = radix_tree_preload(GFP_NOFS & ~__GFP_HIGHMEM);
|
ret = radix_tree_preload(GFP_NOFS);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
kmem_cache_free(delayed_node_cache, node);
|
kmem_cache_free(delayed_node_cache, node);
|
||||||
return ERR_PTR(ret);
|
return ERR_PTR(ret);
|
||||||
|
@ -1640,7 +1640,7 @@ int btrfs_insert_fs_root(struct btrfs_fs_info *fs_info,
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = radix_tree_preload(GFP_NOFS & ~__GFP_HIGHMEM);
|
ret = radix_tree_preload(GFP_NOFS);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
@ -4815,7 +4815,7 @@ struct extent_buffer *alloc_test_extent_buffer(struct btrfs_fs_info *fs_info,
|
|||||||
return NULL;
|
return NULL;
|
||||||
eb->fs_info = fs_info;
|
eb->fs_info = fs_info;
|
||||||
again:
|
again:
|
||||||
ret = radix_tree_preload(GFP_NOFS & ~__GFP_HIGHMEM);
|
ret = radix_tree_preload(GFP_NOFS);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto free_eb;
|
goto free_eb;
|
||||||
spin_lock(&fs_info->buffer_lock);
|
spin_lock(&fs_info->buffer_lock);
|
||||||
@ -4916,7 +4916,7 @@ struct extent_buffer *alloc_extent_buffer(struct btrfs_fs_info *fs_info,
|
|||||||
if (uptodate)
|
if (uptodate)
|
||||||
set_bit(EXTENT_BUFFER_UPTODATE, &eb->bflags);
|
set_bit(EXTENT_BUFFER_UPTODATE, &eb->bflags);
|
||||||
again:
|
again:
|
||||||
ret = radix_tree_preload(GFP_NOFS & ~__GFP_HIGHMEM);
|
ret = radix_tree_preload(GFP_NOFS);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto free_eb;
|
goto free_eb;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user