diff options
-rw-r--r-- | extent_io.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/extent_io.c b/extent_io.c index acc4702e..1c481d5d 100644 --- a/extent_io.c +++ b/extent_io.c @@ -210,9 +210,11 @@ int clear_extent_bits(struct extent_io_tree *tree, u64 start, int set = 0; again: - prealloc = alloc_extent_state(); - if (!prealloc) - return -ENOMEM; + if (!prealloc) { + prealloc = alloc_extent_state(); + if (!prealloc) + return -ENOMEM; + } /* * this search will find the extents that end after |