public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: linux-btrfs@vger.kernel.org
Subject: Remaining BTRFS_PATH_AUTO_FREE work
Date: Mon, 18 Aug 2025 19:10:47 +0200	[thread overview]
Message-ID: <20250818171047.GP22430@twin.jikos.cz> (raw)

Hi,

there are still possible conversions of struct btrfs_path to
BTRFS_PATH_AUTO_FREE(). As this is fairly easy it's approachable for beginners
or drive-by contributions.

The basic pattern is explained in patch 4c74a32ad323 ("btrfs: DEFINE_FREE for
struct btrfs_path").

Examples of previous work:

- e23541811877 ("btrfs: do more trivial BTRFS_PATH_AUTO_FREE conversions")
- 516748f584fd ("btrfs: use BTRFS_PATH_AUTO_FREE in may_destroy_subvol()")

IIRC files beginning with [p-z] haven't been converted yet, search for
btrfs_alloc_path() and look if it matches the pattern.

Whoever is interested please reply to this mail so the work is not
unnecessarily duplicated.

             reply	other threads:[~2025-08-18 17:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-18 17:10 David Sterba [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-19  2:03 Remaining BTRFS_PATH_AUTO_FREE work Sun YangKai
2025-08-19  3:13 ` Sun YangKai
2025-08-21 12:36 ` David Sterba

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=20250818171047.GP22430@twin.jikos.cz \
    --to=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