Message ID | 4B6A8980.206@oracle.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff -urp 1/fs/btrfs/extent_io.c 2/fs/btrfs/extent_io.c --- 1/fs/btrfs/extent_io.c 2010-01-17 15:48:16.770302026 +0800 +++ 2/fs/btrfs/extent_io.c 2010-02-04 16:37:45.704800682 +0800 @@ -3165,10 +3165,9 @@ struct extent_buffer *alloc_extent_buffe spin_unlock(&tree->buffer_lock); goto free_eb; } - spin_unlock(&tree->buffer_lock); - /* add one reference for the tree */ atomic_inc(&eb->refs); + spin_unlock(&tree->buffer_lock); return eb; free_eb: