From: Anand Jain <anand.jain@oracle.com>
To: dsterba@suse.cz
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs: add helper to exit_btrfs_fs
Date: Thu, 20 Oct 2022 00:27:39 +0800 [thread overview]
Message-ID: <d0ca7f6c-50e6-559f-7ee8-348d896567c5@oracle.com> (raw)
In-Reply-To: <20221017175950.GR13389@twin.jikos.cz>
On 18/10/2022 01:59, David Sterba wrote:
> On Fri, Oct 14, 2022 at 08:17:26PM +0800, Anand Jain wrote:
>> The module exit function exit_btrfs_fs() is duplicating a section of code
>> in init_btrfs_fs(). So add a helper function to remove the duplicate code.
>> Also, remove the comment about the function's .text section, which
>> doesn't make sense.
>>
>> Signed-off-by: Anand Jain <anand.jain@oracle.com>
>> ---
>> David,
>> This patch is on top of Qu's patch on the mailing list.
>> btrfs: make btrfs module init/exit match their sequence
>>
>> This patch passed, make mrproper, compile with defconfig and Oracle Linux config.
>> and, Module load/unload.
>> I suggested this change in the review comment, but it wasn't going anywhere.
>> Instead, I found sending a patch is more productive. Please, keep my SOB.
>
> So there's the for() { } duplication but we need to be careful about the
> sections. Can we rather use some inlining tricks to force the common
> code to be inlined and avoid dealing with the sections explicitly? Eg.
> using __always_inline.
Yeah, must avoid section mismatch, explicitly making
it inline is better. Sent v2. (sorry for the delay in response).
Thanks, Anand
prev parent reply other threads:[~2022-10-19 16:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-14 12:17 [PATCH] btrfs: add helper to exit_btrfs_fs Anand Jain
2022-10-17 17:59 ` David Sterba
2022-10-19 16:27 ` Anand Jain [this message]
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=d0ca7f6c-50e6-559f-7ee8-348d896567c5@oracle.com \
--to=anand.jain@oracle.com \
--cc=dsterba@suse.cz \
--cc=linux-btrfs@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).