From: Filipe Manana <fdmanana@suse.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: derek@valedon.co.uk, floyd.net@gmail.com, flux-btrfs@inside.org,
mail@eliasprobst.eu, malte@tnxip.de, quwenruo@cn.fujitsu.com,
stephane_btrfs@lesimple.fr, stable@vger.kernel.org, clm@fb.com
Subject: Re: FAILED: patch "[PATCH] Btrfs: fix regression running delayed references when using" failed to apply to 4.2-stable tree
Date: Sat, 12 Dec 2015 21:35:45 +0000 [thread overview]
Message-ID: <566C9331.30703@suse.com> (raw)
In-Reply-To: <20151212200342.GA30934@kroah.com>
On 12/12/2015 08:03 PM, Greg KH wrote:
> On Sat, Dec 12, 2015 at 11:57:49AM -0800, Greg KH wrote:
>> On Sat, Dec 12, 2015 at 02:32:10PM +0000, Filipe Manana wrote:
>>>
>>>
>>> On 12/11/2015 04:54 PM, gregkh@linuxfoundation.org wrote:
>>>>
>>>> The patch below does not apply to the 4.2-stable tree.
>>>> If someone wants it applied there, or to any other stable or longterm
>>>> tree, then please email the backport, including the original git commit
>>>> id to <stable@vger.kernel.org>.
>>>
>>> Greg, please find attached a version of the patch that applies against
>>> 4.2.7.
>>
>> This patch breaks the build:
I did build and tested it (in reply to your next comment about sending
untested stuff).
See comment inlined below.
>>
>> fs/btrfs/delayed-ref.c: In function ‘merge_ref’:
>> fs/btrfs/delayed-ref.c:223:38: error: ‘struct btrfs_delayed_ref_node’ has no mem
>> ber named ‘no_quota’
>> if (next->type != ref->type || next->no_quota != ref->no_quota)
I don't get why you're getting that error.
struct btrfs_delayed_ref_node has a member named 'no_quota':
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/fs/btrfs/delayed-ref.h?id=refs/tags/v4.2.7#n36
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/fs/btrfs/delayed-ref.h?id=refs/tags/v4.2.7#n71
Am I missing something?
I think you applied 2 patches in the wrong order. You should apply the
following two in this order:
1) "Btrfs: fix regression when running delayed references" -
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=2c3cf7d5f6105bb957df125dfce61d4483b8742d
2) "Btrfs: fix regression running delayed references when using qgroups"
-
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=b06c4bf5c874a57254b197f53ddf588e7a24a2bf
Please confirm if you applied those 2 in that specific order, because it
doesn't seem so. The first one adds code that still uses member
"no_quota" while the second one removes the "no_quota" member from that
struct.
Thanks
>> ^
>> fs/btrfs/delayed-ref.c:223:55: error: ‘struct btrfs_delayed_ref_node’ has no mem
>> ber named ‘no_quota’
>> if (next->type != ref->type || next->no_quota != ref->no_quota)
>> ^
>> fs/btrfs/delayed-ref.c: At top level:
>> fs/btrfs/delayed-ref.c:313:13: error: redefinition of ‘merge_ref’
>> static bool merge_ref(struct btrfs_trans_handle *trans,
>> ^
>> fs/btrfs/delayed-ref.c:200:13: note: previous definition of ‘merge_ref’ was here
>> static bool merge_ref(struct btrfs_trans_handle *trans,
>> ^
>> fs/btrfs/delayed-ref.c:380:6: error: redefinition of ‘btrfs_merge_delayed_refs’
>> void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans,
>> ^
>> fs/btrfs/delayed-ref.c:267:6: note: previous definition of ‘btrfs_merge_delayed_refs’ was here
>> void btrfs_merge_delayed_refs(struct btrfs_trans_handle *trans,
>> ^
>>
>> So I'm going to have to drop it, sorry.
>
> It also breaks on 4.3, so I'm dropping that patch as well. It would
> have been nice if you had at least test-built what you sent me :(
>
> thanks,
>
> greg k-h
>
next prev parent reply other threads:[~2015-12-12 21:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-11 16:54 FAILED: patch "[PATCH] Btrfs: fix regression running delayed references when using" failed to apply to 4.2-stable tree gregkh
2015-12-12 14:32 ` Filipe Manana
2015-12-12 19:57 ` Greg KH
2015-12-12 20:03 ` Greg KH
2015-12-12 21:35 ` Filipe Manana [this message]
2015-12-12 21:43 ` Greg KH
2015-12-12 22:02 ` Filipe Manana
2015-12-12 23:17 ` Filipe Manana
2015-12-13 3:47 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=566C9331.30703@suse.com \
--to=fdmanana@suse.com \
--cc=clm@fb.com \
--cc=derek@valedon.co.uk \
--cc=floyd.net@gmail.com \
--cc=flux-btrfs@inside.org \
--cc=gregkh@linuxfoundation.org \
--cc=mail@eliasprobst.eu \
--cc=malte@tnxip.de \
--cc=quwenruo@cn.fujitsu.com \
--cc=stable@vger.kernel.org \
--cc=stephane_btrfs@lesimple.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.