Skip to content

fscrypt: Add FSTR() helper macro and convert initializers

Thorsten Blum linux-btrfs linux-f2fs-devel linux-fscrypt linux-mtd lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4fscrypt: Add FSTR() helper macroinclude/linux/fscrypt.h+1 -00 replies
2/4btrfs: Use FSTR() for the "default" namefs/btrfs/inode.c fs/btrfs/ioctl.c fs/btrfs/super.c+3 -61 reply
3/4f2fs: Use FSTR() in f2fs_do_make_empty_dir()fs/f2fs/dir.c+2 -50 replies
4/4ubifs: Use FSTR() in ubifs_xattr_{set,get,remove}()fs/ubifs/xattr.c+3 -30 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchDavid Sterba
1/4
2/4A-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] fscrypt: Add FSTR() helper macro and convert initializers

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(-)