Whamcloud - gitweb
LU-17423 ldiskfs: pass NULL to ext4_dir_rec_len for dot and dotdot 24/54724/4
authorLi Dongyang <dongyangli@ddn.com>
Tue, 14 May 2024 02:26:02 +0000 (12:26 +1000)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Jun 2024 06:10:36 +0000 (06:10 +0000)
commit0c9aa07eb897c04e5eeb563bf757745da16a05a4
treed8733bd63135ced208286db5d139ab6d831390cf
parent8d7d1b8a07dc35e5671fbd65d927eaadec77f75d
LU-17423 ldiskfs: pass NULL to ext4_dir_rec_len for dot and dotdot

For '.' and '..' we should pass NULL to EXT4_DIR_ENTRY_LEN/
EXT4_DIR_REC_LEN/ext4_dir_rec_len() as those entries do not
use extra fields to store the extra hash for casefolded+fscrypt
case.

This has no impact yet as we do not support casefolded+fscrypt
right now.

Change-Id: I6df56aefdf6440e4c03088fec7a4d38a523cf8dc
Test-Parameters: trivial
Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54724
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
12 files changed:
ldiskfs/kernel_patches/patches/linux-6.0/ext4-data-in-dirent.patch
ldiskfs/kernel_patches/patches/linux-6.0/ext4-pdirop.patch
ldiskfs/kernel_patches/patches/rhel9.1/ext4-data-in-dirent.patch
ldiskfs/kernel_patches/patches/rhel9.1/ext4-pdirop.patch
ldiskfs/kernel_patches/patches/rhel9.2/ext4-data-in-dirent.patch
ldiskfs/kernel_patches/patches/rhel9.2/ext4-pdirop.patch
ldiskfs/kernel_patches/patches/rhel9.3/ext4-data-in-dirent.patch
ldiskfs/kernel_patches/patches/rhel9/ext4-data-in-dirent.patch
ldiskfs/kernel_patches/patches/rhel9/ext4-pdirop.patch
ldiskfs/kernel_patches/patches/sles15sp4/ext4-data-in-dirent.patch
ldiskfs/kernel_patches/patches/sles15sp4/ext4-pdirop.patch
ldiskfs/kernel_patches/patches/ubuntu20.04.5/ext4-data-in-dirent.patch