diff options
| author | Filipe Manana <[email protected]> | 2014-11-03 14:12:57 +0000 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2014-11-21 01:20:06 +0000 |
| commit | c7bc6319c59cc791743cf1b6e98f86be69444495 (patch) | |
| tree | ab6180b41c0dab292280b217fe88e3c24fbcf531 /fs/btrfs/dev-replace.c | |
| parent | Btrfs: don't take the chunk_mutex/dev_list mutex in statfs V2 (diff) | |
| download | kernel-c7bc6319c59cc791743cf1b6e98f86be69444495.tar.gz kernel-c7bc6319c59cc791743cf1b6e98f86be69444495.zip | |
Btrfs: avoid premature -ENOMEM in clear_extent_bit()
We try to allocate an extent state structure before acquiring the extent
state tree's spinlock as we might need a new one later and therefore avoid
doing later an atomic allocation while holding the tree's spinlock. However
we returned -ENOMEM if that initial non-atomic allocation failed, which is
a bit excessive since we might end up not needing the pre-allocated extent
state at all - for the case where the tree doesn't have any extent states
that cover the input range and cover too any other range. Therefore don't
return -ENOMEM if that pre-allocation fails.
Signed-off-by: Filipe Manana <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
