public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.com>
Subject: [PATCH 0/3] Simplify message helpers (avoid level parsing)
Date: Tue,  9 Dec 2025 18:10:29 +0100	[thread overview]
Message-ID: <cover.1765299883.git.dsterba@suse.com> (raw)

Based on patch updating memcpy/strscpy use in printk level parsing
https://lore.kernel.org/linux-btrfs/20251130005518.82065-1-thorsten.blum@linux.dev/
it'll be better to avoid the parsing completely. This patchset updates
the internal interfaces and passes loglevel directly to the helpers so
we can print the description and pick the ratelimit state.

David Sterba (3):
  btrfs: simplify internal btrfs_printk helpers
  btrfs: pass level to _btrfs_printk() to avoid parsing level from
    string
  btrfs: remove ASSERT compatibility for gcc < 8.x

 fs/btrfs/messages.c | 26 ++++------------
 fs/btrfs/messages.h | 76 ++++++++++++++++++++-------------------------
 2 files changed, 39 insertions(+), 63 deletions(-)

-- 
2.51.1


             reply	other threads:[~2025-12-09 17:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-09 17:10 David Sterba [this message]
2025-12-09 17:10 ` [PATCH 1/3] btrfs: simplify internal btrfs_printk helpers David Sterba
2025-12-09 17:10 ` [PATCH 2/3] btrfs: pass level to _btrfs_printk() to avoid parsing level from string David Sterba
2026-02-08 18:54   ` Chris Mason
2025-12-09 17:10 ` [PATCH 3/3] btrfs: remove ASSERT compatibility for gcc < 8.x 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=cover.1765299883.git.dsterba@suse.com \
    --to=dsterba@suse.com \
    --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