Bug 216490

Summary: ubifs: bad space budget for symlink after encryption
Product: File System Reporter: Zhihao Cheng (chengzhihao1)
Component: OtherAssignee: fs_other
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 6.0.0-rc4 Subsystem:
Regression: No Bisected commit-id:
Attachments: diff
setup.sh

Description Zhihao Cheng 2022-09-15 06:41:08 UTC
CONFIG_FS_ENCRYPTION=y
CONFIG_UBIFS_FS=m
CONFIG_MTD_UBI=m
CONFIG_MTD_NAND_NANDSIM=m

1. Apply diff and compile kernel
2. ./setup.sh 1 e
3. dmesg
[12035.118788] <2809> budget: len 260 len_encrypted 290
[12035.119500] <2809> budget: data_growth(new inode + new dent + new ino_data) 736
[12035.120891] <2809> disk: newdent 312 newinode+ino_data 456

budget 736 < disk 768(312 + 456)
Comment 1 Zhihao Cheng 2022-09-15 06:41:39 UTC
Created attachment 301811 [details]
diff
Comment 2 Zhihao Cheng 2022-09-15 06:41:49 UTC
Created attachment 301812 [details]
setup.sh