Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
8c54ca9c
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8c54ca9c
编写于
11月 20, 2016
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
quota: constify struct path in quota_on
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
a4141d7c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
9 addition
and
9 deletion
+9
-9
fs/ext4/super.c
fs/ext4/super.c
+2
-2
fs/quota/dquot.c
fs/quota/dquot.c
+1
-1
fs/quota/quota.c
fs/quota/quota.c
+2
-2
fs/reiserfs/super.c
fs/reiserfs/super.c
+2
-2
include/linux/quota.h
include/linux/quota.h
+1
-1
include/linux/quotaops.h
include/linux/quotaops.h
+1
-1
未找到文件。
fs/ext4/super.c
浏览文件 @
8c54ca9c
...
...
@@ -1187,7 +1187,7 @@ static int ext4_release_dquot(struct dquot *dquot);
static
int
ext4_mark_dquot_dirty
(
struct
dquot
*
dquot
);
static
int
ext4_write_info
(
struct
super_block
*
sb
,
int
type
);
static
int
ext4_quota_on
(
struct
super_block
*
sb
,
int
type
,
int
format_id
,
struct
path
*
path
);
const
struct
path
*
path
);
static
int
ext4_quota_off
(
struct
super_block
*
sb
,
int
type
);
static
int
ext4_quota_on_mount
(
struct
super_block
*
sb
,
int
type
);
static
ssize_t
ext4_quota_read
(
struct
super_block
*
sb
,
int
type
,
char
*
data
,
...
...
@@ -5239,7 +5239,7 @@ static void lockdep_set_quota_inode(struct inode *inode, int subclass)
* Standard function to be called on quota_on
*/
static
int
ext4_quota_on
(
struct
super_block
*
sb
,
int
type
,
int
format_id
,
struct
path
*
path
)
const
struct
path
*
path
)
{
int
err
;
...
...
fs/quota/dquot.c
浏览文件 @
8c54ca9c
...
...
@@ -2401,7 +2401,7 @@ int dquot_resume(struct super_block *sb, int type)
EXPORT_SYMBOL
(
dquot_resume
);
int
dquot_quota_on
(
struct
super_block
*
sb
,
int
type
,
int
format_id
,
struct
path
*
path
)
const
struct
path
*
path
)
{
int
error
=
security_quota_on
(
path
->
dentry
);
if
(
error
)
...
...
fs/quota/quota.c
浏览文件 @
8c54ca9c
...
...
@@ -80,7 +80,7 @@ unsigned int qtype_enforce_flag(int type)
}
static
int
quota_quotaon
(
struct
super_block
*
sb
,
int
type
,
qid_t
id
,
struct
path
*
path
)
const
struct
path
*
path
)
{
if
(
!
sb
->
s_qcop
->
quota_on
&&
!
sb
->
s_qcop
->
quota_enable
)
return
-
ENOSYS
;
...
...
@@ -700,7 +700,7 @@ static int quota_rmxquota(struct super_block *sb, void __user *addr)
/* Copy parameters and call proper function */
static
int
do_quotactl
(
struct
super_block
*
sb
,
int
type
,
int
cmd
,
qid_t
id
,
void
__user
*
addr
,
struct
path
*
path
)
void
__user
*
addr
,
const
struct
path
*
path
)
{
int
ret
;
...
...
fs/reiserfs/super.c
浏览文件 @
8c54ca9c
...
...
@@ -802,7 +802,7 @@ static int reiserfs_acquire_dquot(struct dquot *);
static
int
reiserfs_release_dquot
(
struct
dquot
*
);
static
int
reiserfs_mark_dquot_dirty
(
struct
dquot
*
);
static
int
reiserfs_write_info
(
struct
super_block
*
,
int
);
static
int
reiserfs_quota_on
(
struct
super_block
*
,
int
,
int
,
struct
path
*
);
static
int
reiserfs_quota_on
(
struct
super_block
*
,
int
,
int
,
const
struct
path
*
);
static
const
struct
dquot_operations
reiserfs_quota_operations
=
{
.
write_dquot
=
reiserfs_write_dquot
,
...
...
@@ -2348,7 +2348,7 @@ static int reiserfs_quota_on_mount(struct super_block *sb, int type)
* Standard function to be called on quota_on
*/
static
int
reiserfs_quota_on
(
struct
super_block
*
sb
,
int
type
,
int
format_id
,
struct
path
*
path
)
const
struct
path
*
path
)
{
int
err
;
struct
inode
*
inode
;
...
...
include/linux/quota.h
浏览文件 @
8c54ca9c
...
...
@@ -431,7 +431,7 @@ struct qc_info {
/* Operations handling requests from userspace */
struct
quotactl_ops
{
int
(
*
quota_on
)(
struct
super_block
*
,
int
,
int
,
struct
path
*
);
int
(
*
quota_on
)(
struct
super_block
*
,
int
,
int
,
const
struct
path
*
);
int
(
*
quota_off
)(
struct
super_block
*
,
int
);
int
(
*
quota_enable
)(
struct
super_block
*
,
unsigned
int
);
int
(
*
quota_disable
)(
struct
super_block
*
,
unsigned
int
);
...
...
include/linux/quotaops.h
浏览文件 @
8c54ca9c
...
...
@@ -90,7 +90,7 @@ int dquot_file_open(struct inode *inode, struct file *file);
int
dquot_enable
(
struct
inode
*
inode
,
int
type
,
int
format_id
,
unsigned
int
flags
);
int
dquot_quota_on
(
struct
super_block
*
sb
,
int
type
,
int
format_id
,
struct
path
*
path
);
const
struct
path
*
path
);
int
dquot_quota_on_mount
(
struct
super_block
*
sb
,
char
*
qf_name
,
int
format_id
,
int
type
);
int
dquot_quota_off
(
struct
super_block
*
sb
,
int
type
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录