Bug 216569 - ubifs: Missing budget for ubifs_xrename()
Summary: ubifs: Missing budget for ubifs_xrename()
Status: NEW
Alias: None
Product: File System
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: fs_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-11 03:18 UTC by Zhihao Cheng
Modified: 2022-10-11 03:21 UTC (History)
0 users

See Also:
Kernel Version: 6.0.0
Subsystem:
Regression: No
Bisected commit-id:


Attachments
setup.sh (1.53 KB, application/x-shellscript)
2022-10-11 03:18 UTC, Zhihao Cheng
Details
a.c (1.21 KB, text/plain)
2022-10-11 03:18 UTC, Zhihao Cheng
Details
diff (886 bytes, patch)
2022-10-11 03:18 UTC, Zhihao Cheng
Details | Diff

Description Zhihao Cheng 2022-10-11 03:18:18 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
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

[root@localhost ~]# dmesg -c
[ 1548.794608] <8045> budget: dd_growth + data_growth 0
[ 1548.799021] <8045> disk: new + mod 288

budget <0> < disk (288)
Comment 1 Zhihao Cheng 2022-10-11 03:18:31 UTC
Created attachment 302967 [details]
setup.sh
Comment 2 Zhihao Cheng 2022-10-11 03:18:42 UTC
Created attachment 302968 [details]
a.c
Comment 3 Zhihao Cheng 2022-10-11 03:18:53 UTC
Created attachment 302969 [details]
diff
Comment 4 Zhihao Cheng 2022-10-11 03:21:46 UTC
(In reply to Zhihao Cheng from comment #0)
> 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
3. Compile and execute a.c
> 4. dmesg
> [root@localhost ~]# dmesg -c
> [ 1548.794608] <8045> budget: dd_growth + data_growth 0
> [ 1548.799021] <8045> disk: new + mod 288
> 
> budget <0> < disk (288)

Note You need to log in before you can comment on or make changes to this bug.