Re: [PATCH] btrfs:Change BUG_ON to new error path in __clear_extent_bit

2016-04-06 Thread Bastien Philbert
On 2016-04-06 12:10 PM, Filipe Manana wrote: > On Wed, Apr 6, 2016 at 4:56 PM, Bastien Philbert > wrote: >> This remove the unnessary BUG_ON if the allocation with >> alloc_extent_state_atomic fails due to this function >> failure not being unrecoverable. Instead we n

[PATCH] btrfs:Change BUG_ON to new error path in __clear_extent_bit

2016-04-06 Thread Bastien Philbert
error code -ENOMEM to signal callers that the call to __clear_extent_bit failed due to a memory allocation failure. Signed-off-by: Bastien Philbert --- fs/btrfs/extent_io.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index

Possible Double Freeing of dentry in check_parent_dirs_for_sync

2016-04-05 Thread Bastien Philbert
Greetings All, After some tracing I am not certain if this is correct due to being newer to the btrfs codebase. However if someone more experience can show me if I am missing something in my traces please let me known:) Firstly here is the bug trace or the part that matters: [ 7195.792492] -