Linux FSCRYPT development
 help / color / mirror / Atom feed
* [PATCH 0/4] fscrypt: Add FSTR() helper macro and convert initializers
@ 2026-11-18  0:28 Thorsten Blum
  2026-11-18  0:28 ` [PATCH 1/4] fscrypt: Add FSTR() helper macro Thorsten Blum
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Thorsten Blum @ 2026-11-18  0:28 UTC (permalink / raw)
  To: David Sterba, Chris Mason, Jaegeuk Kim, Chao Yu,
	Richard Weinberger, Zhihao Cheng, Eric Biggers,
	Theodore Y. Ts'o
  Cc: linux-btrfs, linux-kernel, linux-f2fs-devel, linux-mtd,
	linux-fscrypt, Thorsten Blum

Similar to QSTR(), add FSTR() to initialize struct fscrypt_str from a
NUL-terminated string without specifying its length.

Use the helper for 8 initializers in btrfs, F2FS, and UBIFS, replacing
hard-coded lengths and explicit strlen() calls.

Thorsten Blum (4):
  fscrypt: Add FSTR() helper macro
  btrfs: Use FSTR() for the "default" name
  f2fs: Use FSTR() in f2fs_do_make_empty_dir()
  ubifs: Use FSTR() in ubifs_xattr_{set,get,remove}()

 fs/btrfs/inode.c        | 3 +--
 fs/btrfs/ioctl.c        | 3 +--
 fs/btrfs/super.c        | 3 +--
 fs/f2fs/dir.c           | 7 ++-----
 fs/ubifs/xattr.c        | 6 +++---
 include/linux/fscrypt.h | 1 +
 6 files changed, 9 insertions(+), 14 deletions(-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-11-18  5:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-18  0:28 [PATCH 0/4] fscrypt: Add FSTR() helper macro and convert initializers Thorsten Blum
2026-11-18  0:28 ` [PATCH 1/4] fscrypt: Add FSTR() helper macro Thorsten Blum
2026-11-18  0:28 ` [PATCH 2/4] btrfs: Use FSTR() for the "default" name Thorsten Blum
2026-11-18  0:28 ` [PATCH 3/4] f2fs: Use FSTR() in f2fs_do_make_empty_dir() Thorsten Blum
2026-11-18  0:28 ` [PATCH 4/4] ubifs: Use FSTR() in ubifs_xattr_{set,get,remove}() Thorsten Blum
2026-11-18  0:34   ` sashiko-bot
2026-11-18  0:35   ` sashiko-bot
2026-11-18  5:01 ` [PATCH 0/4] fscrypt: Add FSTR() helper macro and convert initializers Eric Biggers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox