Re: [PATCH v7 1/2] btrfs: Fix metadata underflow caused by btrfs_reloc_clone_csum error

2017-03-14 Thread Qu Wenruo
At 03/14/2017 05:06 PM, Stefan Priebe - Profihost AG wrote: Thanks Qu, removing BTRFS_I from the inode fixes this issue to me. Greets, Stefan Glad to hear that. And a small tip is, when compiling kernel(at least btrfs module), any warning should be checked carefully. Such type mismatch

Re: [PATCH v7 1/2] btrfs: Fix metadata underflow caused by btrfs_reloc_clone_csum error

2017-03-14 Thread Stefan Priebe - Profihost AG
Thanks Qu, removing BTRFS_I from the inode fixes this issue to me. Greets, Stefan Am 14.03.2017 um 03:50 schrieb Qu Wenruo: > > > At 03/13/2017 09:26 PM, Stefan Priebe - Profihost AG wrote: >> >> Am 13.03.2017 um 08:39 schrieb Qu Wenruo: >>> >>> >>> At 03/13/2017 03:26 PM, Stefan Priebe -

Re: [PATCH v7 1/2] btrfs: Fix metadata underflow caused by btrfs_reloc_clone_csum error

2017-03-13 Thread Qu Wenruo
At 03/13/2017 09:26 PM, Stefan Priebe - Profihost AG wrote: Am 13.03.2017 um 08:39 schrieb Qu Wenruo: At 03/13/2017 03:26 PM, Stefan Priebe - Profihost AG wrote: Hi Qu, Am 13.03.2017 um 02:16 schrieb Qu Wenruo: But wasn't this part of the code identical in V5? Why does it only happen

Re: [PATCH v7 1/2] btrfs: Fix metadata underflow caused by btrfs_reloc_clone_csum error

2017-03-13 Thread Qu Wenruo
At 03/13/2017 09:26 PM, Stefan Priebe - Profihost AG wrote: Am 13.03.2017 um 08:39 schrieb Qu Wenruo: At 03/13/2017 03:26 PM, Stefan Priebe - Profihost AG wrote: Hi Qu, Am 13.03.2017 um 02:16 schrieb Qu Wenruo: At 03/13/2017 04:49 AM, Stefan Priebe - Profihost AG wrote: Hi Qu, while

Re: [PATCH v7 1/2] btrfs: Fix metadata underflow caused by btrfs_reloc_clone_csum error

2017-03-13 Thread Stefan Priebe - Profihost AG
Am 13.03.2017 um 08:39 schrieb Qu Wenruo: > > > At 03/13/2017 03:26 PM, Stefan Priebe - Profihost AG wrote: >> Hi Qu, >> >> Am 13.03.2017 um 02:16 schrieb Qu Wenruo: >>> >>> At 03/13/2017 04:49 AM, Stefan Priebe - Profihost AG wrote: Hi Qu, while V5 was running fine against the

Re: [PATCH v7 1/2] btrfs: Fix metadata underflow caused by btrfs_reloc_clone_csum error

2017-03-13 Thread Qu Wenruo
At 03/13/2017 03:26 PM, Stefan Priebe - Profihost AG wrote: Hi Qu, Am 13.03.2017 um 02:16 schrieb Qu Wenruo: At 03/13/2017 04:49 AM, Stefan Priebe - Profihost AG wrote: Hi Qu, while V5 was running fine against the openSUSE-42.2 kernel (based on v4.4). Thanks for the test. V7 results

Re: [PATCH v7 1/2] btrfs: Fix metadata underflow caused by btrfs_reloc_clone_csum error

2017-03-13 Thread Stefan Priebe - Profihost AG
Hi Qu, Am 13.03.2017 um 02:16 schrieb Qu Wenruo: > > At 03/13/2017 04:49 AM, Stefan Priebe - Profihost AG wrote: >> Hi Qu, >> >> while V5 was running fine against the openSUSE-42.2 kernel (based on >> v4.4). > > Thanks for the test. > >> V7 results in OOPS to me: >> BUG: unable to handle

Re: [PATCH v7 1/2] btrfs: Fix metadata underflow caused by btrfs_reloc_clone_csum error

2017-03-12 Thread Qu Wenruo
At 03/13/2017 04:49 AM, Stefan Priebe - Profihost AG wrote: Hi Qu, while V5 was running fine against the openSUSE-42.2 kernel (based on v4.4). Thanks for the test. V7 results in OOPS to me: BUG: unable to handle kernel NULL pointer dereference at 01f0 This 0x1f0 is the same

Re: [PATCH v7 1/2] btrfs: Fix metadata underflow caused by btrfs_reloc_clone_csum error

2017-03-09 Thread Liu Bo
On Wed, Mar 08, 2017 at 10:25:51AM +0800, Qu Wenruo wrote: > [BUG] > When btrfs_reloc_clone_csum() reports error, it can underflow metadata > and leads to kernel assertion on outstanding extents in > run_delalloc_nocow() and cow_file_range(). > > BTRFS info (device vdb5): relocating block group

Re: [PATCH v7 1/2] btrfs: Fix metadata underflow caused by btrfs_reloc_clone_csum error

2017-03-08 Thread Filipe Manana
On Wed, Mar 8, 2017 at 2:25 AM, Qu Wenruo wrote: > [BUG] > When btrfs_reloc_clone_csum() reports error, it can underflow metadata > and leads to kernel assertion on outstanding extents in > run_delalloc_nocow() and cow_file_range(). > > BTRFS info (device vdb5):