diff options
-rw-r--r-- | fs/btrfs/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 098bb8f690c9..5d46fdc4651c 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -2611,7 +2611,7 @@ static int add_falloc_range(struct list_head *head, u64 start, u64 len) | |||
2611 | return 0; | 2611 | return 0; |
2612 | } | 2612 | } |
2613 | insert: | 2613 | insert: |
2614 | range = kmalloc(sizeof(*range), GFP_NOFS); | 2614 | range = kmalloc(sizeof(*range), GFP_KERNEL); |
2615 | if (!range) | 2615 | if (!range) |
2616 | return -ENOMEM; | 2616 | return -ENOMEM; |
2617 | range->start = start; | 2617 | range->start = start; |
@@ -2712,7 +2712,7 @@ static long btrfs_fallocate(struct file *file, int mode, | |||
2712 | btrfs_put_ordered_extent(ordered); | 2712 | btrfs_put_ordered_extent(ordered); |
2713 | unlock_extent_cached(&BTRFS_I(inode)->io_tree, | 2713 | unlock_extent_cached(&BTRFS_I(inode)->io_tree, |
2714 | alloc_start, locked_end, | 2714 | alloc_start, locked_end, |
2715 | &cached_state, GFP_NOFS); | 2715 | &cached_state, GFP_KERNEL); |
2716 | /* | 2716 | /* |
2717 | * we can't wait on the range with the transaction | 2717 | * we can't wait on the range with the transaction |
2718 | * running or with the extent lock held | 2718 | * running or with the extent lock held |
@@ -2806,7 +2806,7 @@ static long btrfs_fallocate(struct file *file, int mode, | |||
2806 | } | 2806 | } |
2807 | out_unlock: | 2807 | out_unlock: |
2808 | unlock_extent_cached(&BTRFS_I(inode)->io_tree, alloc_start, locked_end, | 2808 | unlock_extent_cached(&BTRFS_I(inode)->io_tree, alloc_start, locked_end, |
2809 | &cached_state, GFP_NOFS); | 2809 | &cached_state, GFP_KERNEL); |
2810 | out: | 2810 | out: |
2811 | /* | 2811 | /* |
2812 | * As we waited the extent range, the data_rsv_map must be empty | 2812 | * As we waited the extent range, the data_rsv_map must be empty |