Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Open Source
>
Other
>
Operation System
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
458
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
Closed
Code
Issues
1271
Pull Requests
991
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
【OLK-6.6】文件系统vfs: KABI预留
Done
#I900QB
Task
chengzhihao
Opened this issue
2024-01-30 20:12
| 头文件 | 结构体 | 变更 | 分析 | 预留结果 | |---|---|---|---|---| | /include/linux/fs.h | struct kiocb | 删除成员、修改成员 | 使用union新增成员,结构体大小没有变化,修改函数指针参数,删除变量。该成员和io有关,iommap引入后做过多次修改 | 原48字节,io_uring io_rw内嵌了该成员,并有io_kiocb_cmd_sz_check静态检查,kiocb变大后会导致io_rw检查失败。由于该结构体一般也不会被修改,所以暂不预留 | | /include/linux/fs.h | struct address_space_operations | 删除成员、新增成员 | 大多和folio转换相关 | 原大小为160字节。未转folio的接口还有3个,基于cacheline对齐后,共预留4个8字节,共192字节 | | /include/linux/fs.h | struct address_space | 删除成员、新增成员 | 变更和bugfix相关 | 原大小为200字节,继承5.10,基于cacheline对齐后,继续预留7个8字节,共256字节 | | /include/linux/fs.h | inode | 删除成员、修改成员 | 和重构有关 | 原624字节。address_space是内嵌成员,预留后变为680字节,已经超过了640 cacheline,继续在当前cacheline中预留4个8字节,共712字节 | | /include/linux/fs.h | struct file | 新增成员、修改成员、删除成员 | file作为vfs常用结构体可能因为特性或cleanup发生变化,但是由于其内存实例多,又不宜预留太多 | 原240字节,对齐slab,预留2个8字节,共256字节。郭子华发出补丁预留了2个8字节(安全特性可能要用掉一个) | | include/linux/filelock.h | struct file_lock_operations | 移动定义头文件定义位置 | NA | 原16字节,基于slab对齐预留2个8字节,共32字节 | | include/linux/filelock.h | struct lock_manager_operations | 移动定义头文件定义位置 | NA | 原88字节,该结构体一般不会变动,继承5.10 预留2个8字节。 | | /include/linux/fs.h | struct super_block | 修改成员、删除成员 | 修改和bugfix、特性有关。常用结构体,6.7-6.7有变更,和文件系统实例数有关,可以考虑预留 | 堆申请,当前是1392字节,预留2个8字节,对齐cache line |
| 头文件 | 结构体 | 变更 | 分析 | 预留结果 | |---|---|---|---|---| | /include/linux/fs.h | struct kiocb | 删除成员、修改成员 | 使用union新增成员,结构体大小没有变化,修改函数指针参数,删除变量。该成员和io有关,iommap引入后做过多次修改 | 原48字节,io_uring io_rw内嵌了该成员,并有io_kiocb_cmd_sz_check静态检查,kiocb变大后会导致io_rw检查失败。由于该结构体一般也不会被修改,所以暂不预留 | | /include/linux/fs.h | struct address_space_operations | 删除成员、新增成员 | 大多和folio转换相关 | 原大小为160字节。未转folio的接口还有3个,基于cacheline对齐后,共预留4个8字节,共192字节 | | /include/linux/fs.h | struct address_space | 删除成员、新增成员 | 变更和bugfix相关 | 原大小为200字节,继承5.10,基于cacheline对齐后,继续预留7个8字节,共256字节 | | /include/linux/fs.h | inode | 删除成员、修改成员 | 和重构有关 | 原624字节。address_space是内嵌成员,预留后变为680字节,已经超过了640 cacheline,继续在当前cacheline中预留4个8字节,共712字节 | | /include/linux/fs.h | struct file | 新增成员、修改成员、删除成员 | file作为vfs常用结构体可能因为特性或cleanup发生变化,但是由于其内存实例多,又不宜预留太多 | 原240字节,对齐slab,预留2个8字节,共256字节。郭子华发出补丁预留了2个8字节(安全特性可能要用掉一个) | | include/linux/filelock.h | struct file_lock_operations | 移动定义头文件定义位置 | NA | 原16字节,基于slab对齐预留2个8字节,共32字节 | | include/linux/filelock.h | struct lock_manager_operations | 移动定义头文件定义位置 | NA | 原88字节,该结构体一般不会变动,继承5.10 预留2个8字节。 | | /include/linux/fs.h | struct super_block | 修改成员、删除成员 | 修改和bugfix、特性有关。常用结构体,6.7-6.7有变更,和文件系统实例数有关,可以考虑预留 | 堆申请,当前是1392字节,预留2个8字节,对齐cache line |
Comments (
3
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Declined
Assignees
Not set
Labels
sig/Kernel
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(2)
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register