Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c309df07 authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: return -ENOMEM in clear_extent_bit



The btrfs releasepage function depends on ENOMEM coming
back when it is called atomic.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 4cb5300b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -485,7 +485,8 @@ int clear_extent_bit(struct extent_io_tree *tree, u64 start, u64 end,
again:
	if (!prealloc && (mask & __GFP_WAIT)) {
		prealloc = alloc_extent_state(mask);
		BUG_ON(!prealloc);
		if (!prealloc)
			return -ENOMEM;
	}

	spin_lock(&tree->lock);