Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
1a67aafb
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1a67aafb
编写于
7月 26, 2011
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
switch ->mknod() to umode_t
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
4acdaf27
变更
42
显示空白变更内容
内联
并排
Showing
42 changed file
with
51 addition
and
51 deletion
+51
-51
Documentation/filesystems/Locking
Documentation/filesystems/Locking
+1
-1
Documentation/filesystems/vfs.txt
Documentation/filesystems/vfs.txt
+1
-1
fs/9p/vfs_inode.c
fs/9p/vfs_inode.c
+1
-1
fs/9p/vfs_inode_dotl.c
fs/9p/vfs_inode_dotl.c
+3
-3
fs/bad_inode.c
fs/bad_inode.c
+1
-1
fs/btrfs/inode.c
fs/btrfs/inode.c
+1
-1
fs/ceph/dir.c
fs/ceph/dir.c
+2
-2
fs/cifs/cifsfs.h
fs/cifs/cifsfs.h
+1
-1
fs/cifs/dir.c
fs/cifs/dir.c
+1
-1
fs/ecryptfs/inode.c
fs/ecryptfs/inode.c
+1
-1
fs/exofs/namei.c
fs/exofs/namei.c
+1
-1
fs/ext2/namei.c
fs/ext2/namei.c
+1
-1
fs/ext3/namei.c
fs/ext3/namei.c
+1
-1
fs/ext4/namei.c
fs/ext4/namei.c
+1
-1
fs/fuse/dir.c
fs/fuse/dir.c
+1
-1
fs/gfs2/inode.c
fs/gfs2/inode.c
+1
-1
fs/hfsplus/dir.c
fs/hfsplus/dir.c
+1
-1
fs/hostfs/hostfs_kern.c
fs/hostfs/hostfs_kern.c
+1
-1
fs/hpfs/namei.c
fs/hpfs/namei.c
+1
-1
fs/hugetlbfs/inode.c
fs/hugetlbfs/inode.c
+1
-1
fs/jffs2/dir.c
fs/jffs2/dir.c
+2
-2
fs/jfs/namei.c
fs/jfs/namei.c
+1
-1
fs/logfs/dir.c
fs/logfs/dir.c
+1
-1
fs/minix/namei.c
fs/minix/namei.c
+1
-1
fs/namei.c
fs/namei.c
+1
-1
fs/ncpfs/dir.c
fs/ncpfs/dir.c
+3
-3
fs/nfs/dir.c
fs/nfs/dir.c
+2
-2
fs/nilfs2/namei.c
fs/nilfs2/namei.c
+1
-1
fs/ocfs2/namei.c
fs/ocfs2/namei.c
+1
-1
fs/ramfs/inode.c
fs/ramfs/inode.c
+1
-1
fs/reiserfs/namei.c
fs/reiserfs/namei.c
+1
-1
fs/sysv/namei.c
fs/sysv/namei.c
+1
-1
fs/ubifs/dir.c
fs/ubifs/dir.c
+1
-1
fs/udf/namei.c
fs/udf/namei.c
+1
-1
fs/ufs/namei.c
fs/ufs/namei.c
+1
-1
fs/xfs/xfs_iops.c
fs/xfs/xfs_iops.c
+1
-1
include/linux/fs.h
include/linux/fs.h
+2
-2
include/linux/security.h
include/linux/security.h
+2
-2
mm/shmem.c
mm/shmem.c
+1
-1
security/capability.c
security/capability.c
+1
-1
security/security.c
security/security.c
+1
-1
security/selinux/hooks.c
security/selinux/hooks.c
+1
-1
未找到文件。
Documentation/filesystems/Locking
浏览文件 @
1a67aafb
...
...
@@ -45,7 +45,7 @@ ata *);
int (*symlink) (struct inode *,struct dentry *,const char *);
int (*mkdir) (struct inode *,struct dentry *,umode_t);
int (*rmdir) (struct inode *,struct dentry *);
int (*mknod) (struct inode *,struct dentry *,
in
t,dev_t);
int (*mknod) (struct inode *,struct dentry *,
umode_
t,dev_t);
int (*rename) (struct inode *, struct dentry *,
struct inode *, struct dentry *);
int (*readlink) (struct dentry *, char __user *,int);
...
...
Documentation/filesystems/vfs.txt
浏览文件 @
1a67aafb
...
...
@@ -348,7 +348,7 @@ struct inode_operations {
int (*symlink) (struct inode *,struct dentry *,const char *);
int (*mkdir) (struct inode *,struct dentry *,umode_t);
int (*rmdir) (struct inode *,struct dentry *);
int (*mknod) (struct inode *,struct dentry *,
in
t,dev_t);
int (*mknod) (struct inode *,struct dentry *,
umode_
t,dev_t);
int (*rename) (struct inode *, struct dentry *,
struct inode *, struct dentry *);
int (*readlink) (struct dentry *, char __user *,int);
...
...
fs/9p/vfs_inode.c
浏览文件 @
1a67aafb
...
...
@@ -1397,7 +1397,7 @@ v9fs_vfs_link(struct dentry *old_dentry, struct inode *dir,
*/
static
int
v9fs_vfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
v9fs_vfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
rdev
)
{
int
retval
;
char
*
name
;
...
...
fs/9p/vfs_inode_dotl.c
浏览文件 @
1a67aafb
...
...
@@ -48,7 +48,7 @@
#include "acl.h"
static
int
v9fs_vfs_mknod_dotl
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
omode
,
v9fs_vfs_mknod_dotl
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
omode
,
dev_t
rdev
);
/**
...
...
@@ -799,7 +799,7 @@ v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir,
*
*/
static
int
v9fs_vfs_mknod_dotl
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
omode
,
v9fs_vfs_mknod_dotl
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
omode
,
dev_t
rdev
)
{
int
err
;
...
...
@@ -814,7 +814,7 @@ v9fs_vfs_mknod_dotl(struct inode *dir, struct dentry *dentry, int omode,
struct
posix_acl
*
dacl
=
NULL
,
*
pacl
=
NULL
;
P9_DPRINTK
(
P9_DEBUG_VFS
,
" %lu,%s mode: %x MAJOR: %u MINOR: %u
\n
"
,
dir
->
i_ino
,
" %lu,%s mode: %
h
x MAJOR: %u MINOR: %u
\n
"
,
dir
->
i_ino
,
dentry
->
d_name
.
name
,
omode
,
MAJOR
(
rdev
),
MINOR
(
rdev
));
if
(
!
new_valid_dev
(
rdev
))
...
...
fs/bad_inode.c
浏览文件 @
1a67aafb
...
...
@@ -213,7 +213,7 @@ static int bad_inode_rmdir (struct inode *dir, struct dentry *dentry)
}
static
int
bad_inode_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
umode_
t
mode
,
dev_t
rdev
)
{
return
-
EIO
;
}
...
...
fs/btrfs/inode.c
浏览文件 @
1a67aafb
...
...
@@ -4596,7 +4596,7 @@ static int btrfs_add_nondir(struct btrfs_trans_handle *trans,
}
static
int
btrfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
umode_
t
mode
,
dev_t
rdev
)
{
struct
btrfs_trans_handle
*
trans
;
struct
btrfs_root
*
root
=
BTRFS_I
(
dir
)
->
root
;
...
...
fs/ceph/dir.c
浏览文件 @
1a67aafb
...
...
@@ -666,7 +666,7 @@ int ceph_handle_notrace_create(struct inode *dir, struct dentry *dentry)
}
static
int
ceph_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
umode_
t
mode
,
dev_t
rdev
)
{
struct
ceph_fs_client
*
fsc
=
ceph_sb_to_client
(
dir
->
i_sb
);
struct
ceph_mds_client
*
mdsc
=
fsc
->
mdsc
;
...
...
@@ -676,7 +676,7 @@ static int ceph_mknod(struct inode *dir, struct dentry *dentry,
if
(
ceph_snap
(
dir
)
!=
CEPH_NOSNAP
)
return
-
EROFS
;
dout
(
"mknod in dir %p dentry %p mode 0%o rdev %d
\n
"
,
dout
(
"mknod in dir %p dentry %p mode 0%
h
o rdev %d
\n
"
,
dir
,
dentry
,
mode
,
rdev
);
req
=
ceph_mdsc_create_request
(
mdsc
,
CEPH_MDS_OP_MKNOD
,
USE_AUTH_MDS
);
if
(
IS_ERR
(
req
))
{
...
...
fs/cifs/cifsfs.h
浏览文件 @
1a67aafb
...
...
@@ -50,7 +50,7 @@ extern struct dentry *cifs_lookup(struct inode *, struct dentry *,
struct
nameidata
*
);
extern
int
cifs_unlink
(
struct
inode
*
dir
,
struct
dentry
*
dentry
);
extern
int
cifs_hardlink
(
struct
dentry
*
,
struct
inode
*
,
struct
dentry
*
);
extern
int
cifs_mknod
(
struct
inode
*
,
struct
dentry
*
,
in
t
,
dev_t
);
extern
int
cifs_mknod
(
struct
inode
*
,
struct
dentry
*
,
umode_
t
,
dev_t
);
extern
int
cifs_mkdir
(
struct
inode
*
,
struct
dentry
*
,
umode_t
);
extern
int
cifs_rmdir
(
struct
inode
*
,
struct
dentry
*
);
extern
int
cifs_rename
(
struct
inode
*
,
struct
dentry
*
,
struct
inode
*
,
...
...
fs/cifs/dir.c
浏览文件 @
1a67aafb
...
...
@@ -355,7 +355,7 @@ cifs_create(struct inode *inode, struct dentry *direntry, umode_t mode,
return
rc
;
}
int
cifs_mknod
(
struct
inode
*
inode
,
struct
dentry
*
direntry
,
in
t
mode
,
int
cifs_mknod
(
struct
inode
*
inode
,
struct
dentry
*
direntry
,
umode_
t
mode
,
dev_t
device_number
)
{
int
rc
=
-
EPERM
;
...
...
fs/ecryptfs/inode.c
浏览文件 @
1a67aafb
...
...
@@ -607,7 +607,7 @@ static int ecryptfs_rmdir(struct inode *dir, struct dentry *dentry)
}
static
int
ecryptfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
dev
)
ecryptfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
dev
)
{
int
rc
;
struct
dentry
*
lower_dentry
;
...
...
fs/exofs/namei.c
浏览文件 @
1a67aafb
...
...
@@ -74,7 +74,7 @@ static int exofs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
return
err
;
}
static
int
exofs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
static
int
exofs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
rdev
)
{
struct
inode
*
inode
;
...
...
fs/ext2/namei.c
浏览文件 @
1a67aafb
...
...
@@ -119,7 +119,7 @@ static int ext2_create (struct inode * dir, struct dentry * dentry, umode_t mode
return
ext2_add_nondir
(
dentry
,
inode
);
}
static
int
ext2_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
static
int
ext2_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
rdev
)
{
struct
inode
*
inode
;
int
err
;
...
...
fs/ext3/namei.c
浏览文件 @
1a67aafb
...
...
@@ -1732,7 +1732,7 @@ static int ext3_create (struct inode * dir, struct dentry * dentry, umode_t mode
}
static
int
ext3_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
umode_
t
mode
,
dev_t
rdev
)
{
handle_t
*
handle
;
struct
inode
*
inode
;
...
...
fs/ext4/namei.c
浏览文件 @
1a67aafb
...
...
@@ -1770,7 +1770,7 @@ static int ext4_create(struct inode *dir, struct dentry *dentry, umode_t mode,
}
static
int
ext4_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
umode_
t
mode
,
dev_t
rdev
)
{
handle_t
*
handle
;
struct
inode
*
inode
;
...
...
fs/fuse/dir.c
浏览文件 @
1a67aafb
...
...
@@ -547,7 +547,7 @@ static int create_new_entry(struct fuse_conn *fc, struct fuse_req *req,
return
err
;
}
static
int
fuse_mknod
(
struct
inode
*
dir
,
struct
dentry
*
entry
,
in
t
mode
,
static
int
fuse_mknod
(
struct
inode
*
dir
,
struct
dentry
*
entry
,
umode_
t
mode
,
dev_t
rdev
)
{
struct
fuse_mknod_in
inarg
;
...
...
fs/gfs2/inode.c
浏览文件 @
1a67aafb
...
...
@@ -1143,7 +1143,7 @@ static int gfs2_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
*
*/
static
int
gfs2_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
static
int
gfs2_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
dev
)
{
return
gfs2_create_inode
(
dir
,
dentry
,
mode
,
dev
,
NULL
,
0
,
0
);
...
...
fs/hfsplus/dir.c
浏览文件 @
1a67aafb
...
...
@@ -424,7 +424,7 @@ static int hfsplus_symlink(struct inode *dir, struct dentry *dentry,
}
static
int
hfsplus_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
umode_
t
mode
,
dev_t
rdev
)
{
struct
hfsplus_sb_info
*
sbi
=
HFSPLUS_SB
(
dir
->
i_sb
);
struct
inode
*
inode
;
...
...
fs/hostfs/hostfs_kern.c
浏览文件 @
1a67aafb
...
...
@@ -700,7 +700,7 @@ int hostfs_rmdir(struct inode *ino, struct dentry *dentry)
return
err
;
}
int
hostfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
dev
)
static
int
hostfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
dev
)
{
struct
inode
*
inode
;
char
*
name
;
...
...
fs/hpfs/namei.c
浏览文件 @
1a67aafb
...
...
@@ -201,7 +201,7 @@ static int hpfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, s
return
err
;
}
static
int
hpfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
static
int
hpfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
rdev
)
{
const
unsigned
char
*
name
=
dentry
->
d_name
.
name
;
unsigned
len
=
dentry
->
d_name
.
len
;
...
...
fs/hugetlbfs/inode.c
浏览文件 @
1a67aafb
...
...
@@ -500,7 +500,7 @@ static struct inode *hugetlbfs_get_inode(struct super_block *sb, uid_t uid,
* File creation. Allocate an inode, and we're done..
*/
static
int
hugetlbfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
dev
)
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
dev
)
{
struct
inode
*
inode
;
int
error
=
-
ENOSPC
;
...
...
fs/jffs2/dir.c
浏览文件 @
1a67aafb
...
...
@@ -31,7 +31,7 @@ static int jffs2_unlink (struct inode *,struct dentry *);
static
int
jffs2_symlink
(
struct
inode
*
,
struct
dentry
*
,
const
char
*
);
static
int
jffs2_mkdir
(
struct
inode
*
,
struct
dentry
*
,
umode_t
);
static
int
jffs2_rmdir
(
struct
inode
*
,
struct
dentry
*
);
static
int
jffs2_mknod
(
struct
inode
*
,
struct
dentry
*
,
in
t
,
dev_t
);
static
int
jffs2_mknod
(
struct
inode
*
,
struct
dentry
*
,
umode_
t
,
dev_t
);
static
int
jffs2_rename
(
struct
inode
*
,
struct
dentry
*
,
struct
inode
*
,
struct
dentry
*
);
...
...
@@ -618,7 +618,7 @@ static int jffs2_rmdir (struct inode *dir_i, struct dentry *dentry)
return
ret
;
}
static
int
jffs2_mknod
(
struct
inode
*
dir_i
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
static
int
jffs2_mknod
(
struct
inode
*
dir_i
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
rdev
)
{
struct
jffs2_inode_info
*
f
,
*
dir_f
;
struct
jffs2_sb_info
*
c
;
...
...
fs/jfs/namei.c
浏览文件 @
1a67aafb
...
...
@@ -1353,7 +1353,7 @@ static int jfs_rename(struct inode *old_dir, struct dentry *old_dentry,
* FUNCTION: Create a special file (device)
*/
static
int
jfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
umode_
t
mode
,
dev_t
rdev
)
{
struct
jfs_inode_info
*
jfs_ip
;
struct
btstack
btstack
;
...
...
fs/logfs/dir.c
浏览文件 @
1a67aafb
...
...
@@ -517,7 +517,7 @@ static int logfs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
return
__logfs_create
(
dir
,
dentry
,
inode
,
NULL
,
0
);
}
static
int
logfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
static
int
logfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
rdev
)
{
struct
inode
*
inode
;
...
...
fs/minix/namei.c
浏览文件 @
1a67aafb
...
...
@@ -36,7 +36,7 @@ static struct dentry *minix_lookup(struct inode * dir, struct dentry *dentry, st
return
NULL
;
}
static
int
minix_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
static
int
minix_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
rdev
)
{
int
error
;
struct
inode
*
inode
;
...
...
fs/namei.c
浏览文件 @
1a67aafb
...
...
@@ -2444,7 +2444,7 @@ struct dentry *user_path_create(int dfd, const char __user *pathname, struct pat
}
EXPORT_SYMBOL
(
user_path_create
);
int
vfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
dev
)
int
vfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
dev
)
{
int
error
=
may_create
(
dir
,
dentry
);
...
...
fs/ncpfs/dir.c
浏览文件 @
1a67aafb
...
...
@@ -38,7 +38,7 @@ static int ncp_rmdir(struct inode *, struct dentry *);
static
int
ncp_rename
(
struct
inode
*
,
struct
dentry
*
,
struct
inode
*
,
struct
dentry
*
);
static
int
ncp_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
);
umode_
t
mode
,
dev_t
rdev
);
#if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS)
extern
int
ncp_symlink
(
struct
inode
*
,
struct
dentry
*
,
const
char
*
);
#else
...
...
@@ -1201,12 +1201,12 @@ static int ncp_rename(struct inode *old_dir, struct dentry *old_dentry,
}
static
int
ncp_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
umode_
t
mode
,
dev_t
rdev
)
{
if
(
!
new_valid_dev
(
rdev
))
return
-
EINVAL
;
if
(
ncp_is_nfs_extras
(
NCP_SERVER
(
dir
),
NCP_FINFO
(
dir
)
->
volNumber
))
{
DPRINTK
(
KERN_DEBUG
"ncp_mknod: mode = 0%o
\n
"
,
mode
);
DPRINTK
(
KERN_DEBUG
"ncp_mknod: mode = 0%
h
o
\n
"
,
mode
);
return
ncp_create_new
(
dir
,
dentry
,
mode
,
rdev
,
0
);
}
return
-
EPERM
;
/* Strange, but true */
...
...
fs/nfs/dir.c
浏览文件 @
1a67aafb
...
...
@@ -53,7 +53,7 @@ static int nfs_rmdir(struct inode *, struct dentry *);
static
int
nfs_unlink
(
struct
inode
*
,
struct
dentry
*
);
static
int
nfs_symlink
(
struct
inode
*
,
struct
dentry
*
,
const
char
*
);
static
int
nfs_link
(
struct
dentry
*
,
struct
inode
*
,
struct
dentry
*
);
static
int
nfs_mknod
(
struct
inode
*
,
struct
dentry
*
,
in
t
,
dev_t
);
static
int
nfs_mknod
(
struct
inode
*
,
struct
dentry
*
,
umode_
t
,
dev_t
);
static
int
nfs_rename
(
struct
inode
*
,
struct
dentry
*
,
struct
inode
*
,
struct
dentry
*
);
static
int
nfs_fsync_dir
(
struct
file
*
,
loff_t
,
loff_t
,
int
);
...
...
@@ -1693,7 +1693,7 @@ static int nfs_create(struct inode *dir, struct dentry *dentry,
* See comments for nfs_proc_create regarding failed operations.
*/
static
int
nfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
nfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
rdev
)
{
struct
iattr
attr
;
int
status
;
...
...
fs/nilfs2/namei.c
浏览文件 @
1a67aafb
...
...
@@ -112,7 +112,7 @@ static int nilfs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
}
static
int
nilfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
nilfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
rdev
)
{
struct
inode
*
inode
;
struct
nilfs_transaction_info
ti
;
...
...
fs/ocfs2/namei.c
浏览文件 @
1a67aafb
...
...
@@ -207,7 +207,7 @@ static struct inode *ocfs2_get_init_inode(struct inode *dir, int mode)
static
int
ocfs2_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
umode_
t
mode
,
dev_t
dev
)
{
int
status
=
0
;
...
...
fs/ramfs/inode.c
浏览文件 @
1a67aafb
...
...
@@ -92,7 +92,7 @@ struct inode *ramfs_get_inode(struct super_block *sb,
*/
/* SMP-safe */
static
int
ramfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
dev
)
ramfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
dev
)
{
struct
inode
*
inode
=
ramfs_get_inode
(
dir
->
i_sb
,
dir
,
mode
,
dev
);
int
error
=
-
ENOSPC
;
...
...
fs/reiserfs/namei.c
浏览文件 @
1a67aafb
...
...
@@ -643,7 +643,7 @@ static int reiserfs_create(struct inode *dir, struct dentry *dentry, umode_t mod
return
retval
;
}
static
int
reiserfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
static
int
reiserfs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
rdev
)
{
int
retval
;
...
...
fs/sysv/namei.c
浏览文件 @
1a67aafb
...
...
@@ -61,7 +61,7 @@ static struct dentry *sysv_lookup(struct inode * dir, struct dentry * dentry, st
return
NULL
;
}
static
int
sysv_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
static
int
sysv_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
rdev
)
{
struct
inode
*
inode
;
int
err
;
...
...
fs/ubifs/dir.c
浏览文件 @
1a67aafb
...
...
@@ -769,7 +769,7 @@ static int ubifs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
}
static
int
ubifs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
umode_
t
mode
,
dev_t
rdev
)
{
struct
inode
*
inode
;
struct
ubifs_inode
*
ui
;
...
...
fs/udf/namei.c
浏览文件 @
1a67aafb
...
...
@@ -596,7 +596,7 @@ static int udf_create(struct inode *dir, struct dentry *dentry, umode_t mode,
return
0
;
}
static
int
udf_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
static
int
udf_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
rdev
)
{
struct
inode
*
inode
;
...
...
fs/ufs/namei.c
浏览文件 @
1a67aafb
...
...
@@ -94,7 +94,7 @@ static int ufs_create (struct inode * dir, struct dentry * dentry, umode_t mode,
return
err
;
}
static
int
ufs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
rdev
)
static
int
ufs_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
rdev
)
{
struct
inode
*
inode
;
int
err
;
...
...
fs/xfs/xfs_iops.c
浏览文件 @
1a67aafb
...
...
@@ -168,7 +168,7 @@ STATIC int
xfs_vn_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
umode_
t
mode
,
dev_t
rdev
)
{
struct
inode
*
inode
;
...
...
include/linux/fs.h
浏览文件 @
1a67aafb
...
...
@@ -1518,7 +1518,7 @@ extern void unlock_super(struct super_block *);
*/
extern
int
vfs_create
(
struct
inode
*
,
struct
dentry
*
,
umode_t
,
struct
nameidata
*
);
extern
int
vfs_mkdir
(
struct
inode
*
,
struct
dentry
*
,
umode_t
);
extern
int
vfs_mknod
(
struct
inode
*
,
struct
dentry
*
,
in
t
,
dev_t
);
extern
int
vfs_mknod
(
struct
inode
*
,
struct
dentry
*
,
umode_
t
,
dev_t
);
extern
int
vfs_symlink
(
struct
inode
*
,
struct
dentry
*
,
const
char
*
);
extern
int
vfs_link
(
struct
dentry
*
,
struct
inode
*
,
struct
dentry
*
);
extern
int
vfs_rmdir
(
struct
inode
*
,
struct
dentry
*
);
...
...
@@ -1625,7 +1625,7 @@ struct inode_operations {
int
(
*
symlink
)
(
struct
inode
*
,
struct
dentry
*
,
const
char
*
);
int
(
*
mkdir
)
(
struct
inode
*
,
struct
dentry
*
,
umode_t
);
int
(
*
rmdir
)
(
struct
inode
*
,
struct
dentry
*
);
int
(
*
mknod
)
(
struct
inode
*
,
struct
dentry
*
,
in
t
,
dev_t
);
int
(
*
mknod
)
(
struct
inode
*
,
struct
dentry
*
,
umode_
t
,
dev_t
);
int
(
*
rename
)
(
struct
inode
*
,
struct
dentry
*
,
struct
inode
*
,
struct
dentry
*
);
void
(
*
truncate
)
(
struct
inode
*
);
...
...
include/linux/security.h
浏览文件 @
1a67aafb
...
...
@@ -1456,7 +1456,7 @@ struct security_operations {
int
(
*
inode_mkdir
)
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_t
mode
);
int
(
*
inode_rmdir
)
(
struct
inode
*
dir
,
struct
dentry
*
dentry
);
int
(
*
inode_mknod
)
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
dev
);
umode_
t
mode
,
dev_t
dev
);
int
(
*
inode_rename
)
(
struct
inode
*
old_dir
,
struct
dentry
*
old_dentry
,
struct
inode
*
new_dir
,
struct
dentry
*
new_dentry
);
int
(
*
inode_readlink
)
(
struct
dentry
*
dentry
);
...
...
@@ -1724,7 +1724,7 @@ int security_inode_symlink(struct inode *dir, struct dentry *dentry,
const
char
*
old_name
);
int
security_inode_mkdir
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_t
mode
);
int
security_inode_rmdir
(
struct
inode
*
dir
,
struct
dentry
*
dentry
);
int
security_inode_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
dev
);
int
security_inode_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
dev
);
int
security_inode_rename
(
struct
inode
*
old_dir
,
struct
dentry
*
old_dentry
,
struct
inode
*
new_dir
,
struct
dentry
*
new_dentry
);
int
security_inode_readlink
(
struct
dentry
*
dentry
);
...
...
mm/shmem.c
浏览文件 @
1a67aafb
...
...
@@ -1456,7 +1456,7 @@ static int shmem_statfs(struct dentry *dentry, struct kstatfs *buf)
* File creation. Allocate an inode, and we're done..
*/
static
int
shmem_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
dev
)
shmem_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
dev
)
{
struct
inode
*
inode
;
int
error
=
-
ENOSPC
;
...
...
security/capability.c
浏览文件 @
1a67aafb
...
...
@@ -159,7 +159,7 @@ static int cap_inode_rmdir(struct inode *inode, struct dentry *dentry)
}
static
int
cap_inode_mknod
(
struct
inode
*
inode
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
dev
)
umode_
t
mode
,
dev_t
dev
)
{
return
0
;
}
...
...
security/security.c
浏览文件 @
1a67aafb
...
...
@@ -521,7 +521,7 @@ int security_inode_rmdir(struct inode *dir, struct dentry *dentry)
return
security_ops
->
inode_rmdir
(
dir
,
dentry
);
}
int
security_inode_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
dev
)
int
security_inode_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
dev
)
{
if
(
unlikely
(
IS_PRIVATE
(
dir
)))
return
0
;
...
...
security/selinux/hooks.c
浏览文件 @
1a67aafb
...
...
@@ -2628,7 +2628,7 @@ static int selinux_inode_rmdir(struct inode *dir, struct dentry *dentry)
return
may_link
(
dir
,
dentry
,
MAY_RMDIR
);
}
static
int
selinux_inode_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
in
t
mode
,
dev_t
dev
)
static
int
selinux_inode_mknod
(
struct
inode
*
dir
,
struct
dentry
*
dentry
,
umode_
t
mode
,
dev_t
dev
)
{
return
may_create
(
dir
,
dentry
,
inode_mode_to_security_class
(
mode
));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录