Re: [PATCH v4] btrfs: qgroup: Don't copy extent buffer to do qgroup rescan

2015-10-23 Thread Filipe Manana
On Fri, Oct 23, 2015 at 3:04 AM, Qu Wenruo wrote: > Ancient qgroup code call memcpy() on a extent buffer and use it for leaf > iteration. > > As extent buffer contains lock, pointers to pages, it's never sane to do > such copy. > > The following bug may be caused by this insane operation: > [92098

[PATCH v4] btrfs: qgroup: Don't copy extent buffer to do qgroup rescan

2015-10-22 Thread Qu Wenruo
Ancient qgroup code call memcpy() on a extent buffer and use it for leaf iteration. As extent buffer contains lock, pointers to pages, it's never sane to do such copy. The following bug may be caused by this insane operation: [92098.841309] general protection fault: [#1] SMP [92098.841338] M