···154154 }155155 read_unlock(&em_tree->lock);156156157157- em = alloc_extent_map(GFP_NOFS);157157+ em = alloc_extent_map();158158 if (!em) {159159 em = ERR_PTR(-ENOMEM);160160 goto out;
+1-1
fs/btrfs/extent-tree.c
···66946694 u64 start = extent_key->objectid - offset;66956695 u64 end = start + extent_key->offset - 1;6696669666976697- em = alloc_extent_map(GFP_NOFS);66976697+ em = alloc_extent_map();66986698 BUG_ON(!em);6699669967006700 em->start = start;
+2-3
fs/btrfs/extent_map.c
···40404141/**4242 * alloc_extent_map - allocate new extent map structure4343- * @mask: memory allocation flags4443 *4544 * Allocate a new extent_map structure. The new structure is4645 * returned with a reference count of one and needs to be4746 * freed using free_extent_map()4847 */4949-struct extent_map *alloc_extent_map(gfp_t mask)4848+struct extent_map *alloc_extent_map(void)5049{5150 struct extent_map *em;5252- em = kmem_cache_alloc(extent_map_cache, mask);5151+ em = kmem_cache_alloc(extent_map_cache, GFP_NOFS);5352 if (!em)5453 return NULL;5554 em->in_tree = 0;
···2609260926102610 trace_btrfs_chunk_alloc(info->chunk_root, map, start, *num_bytes);2611261126122612- em = alloc_extent_map(GFP_NOFS);26122612+ em = alloc_extent_map();26132613 if (!em) {26142614 ret = -ENOMEM;26152615 goto error;···34993499 free_extent_map(em);35003500 }3501350135023502- em = alloc_extent_map(GFP_NOFS);35023502+ em = alloc_extent_map();35033503 if (!em)35043504 return -ENOMEM;35053505 num_stripes = btrfs_chunk_num_stripes(leaf, chunk);