Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
1c929cfe
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看板
提交
1c929cfe
编写于
12月 18, 2010
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
switch cifs
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
8b244ff2
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
7 addition
and
41 deletion
+7
-41
fs/cifs/cifsfs.c
fs/cifs/cifsfs.c
+6
-0
fs/cifs/dir.c
fs/cifs/dir.c
+1
-24
fs/cifs/inode.c
fs/cifs/inode.c
+0
-8
fs/cifs/link.c
fs/cifs/link.c
+0
-4
fs/cifs/readdir.c
fs/cifs/readdir.c
+0
-5
未找到文件。
fs/cifs/cifsfs.c
浏览文件 @
1c929cfe
...
...
@@ -174,6 +174,12 @@ cifs_read_super(struct super_block *sb, void *data,
goto
out_no_root
;
}
/* do that *after* d_alloc_root() - we want NULL ->d_op for root here */
if
(
cifs_sb_master_tcon
(
cifs_sb
)
->
nocase
)
sb
->
s_d_op
=
&
cifs_ci_dentry_ops
;
else
sb
->
s_d_op
=
&
cifs_dentry_ops
;
#ifdef CONFIG_CIFS_EXPERIMENTAL
if
(
cifs_sb
->
mnt_cifs_flags
&
CIFS_MOUNT_SERVER_INUM
)
{
cFYI
(
1
,
"export ops supported"
);
...
...
fs/cifs/dir.c
浏览文件 @
1c929cfe
...
...
@@ -130,17 +130,6 @@ build_path_from_dentry(struct dentry *direntry)
return
full_path
;
}
static
void
setup_cifs_dentry
(
struct
cifsTconInfo
*
tcon
,
struct
dentry
*
direntry
,
struct
inode
*
newinode
)
{
if
(
tcon
->
nocase
)
d_set_d_op
(
direntry
,
&
cifs_ci_dentry_ops
);
else
d_set_d_op
(
direntry
,
&
cifs_dentry_ops
);
d_instantiate
(
direntry
,
newinode
);
}
/* Inode operations in similar order to how they appear in Linux file fs.h */
int
...
...
@@ -327,7 +316,7 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode,
cifs_create_set_dentry:
if
(
rc
==
0
)
setup_cifs_dentry
(
tcon
,
direntry
,
newinode
);
d_instantiate
(
direntry
,
newinode
);
else
cFYI
(
1
,
"Create worked, get_inode_info failed rc = %d"
,
rc
);
...
...
@@ -418,10 +407,6 @@ int cifs_mknod(struct inode *inode, struct dentry *direntry, int mode,
rc
=
cifs_get_inode_info_unix
(
&
newinode
,
full_path
,
inode
->
i_sb
,
xid
);
if
(
pTcon
->
nocase
)
d_set_d_op
(
direntry
,
&
cifs_ci_dentry_ops
);
else
d_set_d_op
(
direntry
,
&
cifs_dentry_ops
);
if
(
rc
==
0
)
d_instantiate
(
direntry
,
newinode
);
...
...
@@ -601,10 +586,6 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
parent_dir_inode
->
i_sb
,
xid
,
NULL
);
if
((
rc
==
0
)
&&
(
newInode
!=
NULL
))
{
if
(
pTcon
->
nocase
)
d_set_d_op
(
direntry
,
&
cifs_ci_dentry_ops
);
else
d_set_d_op
(
direntry
,
&
cifs_dentry_ops
);
d_add
(
direntry
,
newInode
);
if
(
posix_open
)
{
filp
=
lookup_instantiate_filp
(
nd
,
direntry
,
...
...
@@ -631,10 +612,6 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
}
else
if
(
rc
==
-
ENOENT
)
{
rc
=
0
;
direntry
->
d_time
=
jiffies
;
if
(
pTcon
->
nocase
)
d_set_d_op
(
direntry
,
&
cifs_ci_dentry_ops
);
else
d_set_d_op
(
direntry
,
&
cifs_dentry_ops
);
d_add
(
direntry
,
NULL
);
/* if it was once a directory (but how can we tell?) we could do
shrink_dcache_parent(direntry); */
...
...
fs/cifs/inode.c
浏览文件 @
1c929cfe
...
...
@@ -1324,10 +1324,6 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
/*BB check (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SET_UID ) to see if need
to set uid/gid */
inc_nlink
(
inode
);
if
(
pTcon
->
nocase
)
d_set_d_op
(
direntry
,
&
cifs_ci_dentry_ops
);
else
d_set_d_op
(
direntry
,
&
cifs_dentry_ops
);
cifs_unix_basic_to_fattr
(
&
fattr
,
pInfo
,
cifs_sb
);
cifs_fill_uniqueid
(
inode
->
i_sb
,
&
fattr
);
...
...
@@ -1368,10 +1364,6 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
rc
=
cifs_get_inode_info
(
&
newinode
,
full_path
,
NULL
,
inode
->
i_sb
,
xid
,
NULL
);
if
(
pTcon
->
nocase
)
d_set_d_op
(
direntry
,
&
cifs_ci_dentry_ops
);
else
d_set_d_op
(
direntry
,
&
cifs_dentry_ops
);
d_instantiate
(
direntry
,
newinode
);
/* setting nlink not necessary except in cases where we
* failed to get it from the server or was set bogus */
...
...
fs/cifs/link.c
浏览文件 @
1c929cfe
...
...
@@ -524,10 +524,6 @@ cifs_symlink(struct inode *inode, struct dentry *direntry, const char *symname)
cFYI
(
1
,
"Create symlink ok, getinodeinfo fail rc = %d"
,
rc
);
}
else
{
if
(
pTcon
->
nocase
)
d_set_d_op
(
direntry
,
&
cifs_ci_dentry_ops
);
else
d_set_d_op
(
direntry
,
&
cifs_dentry_ops
);
d_instantiate
(
direntry
,
newinode
);
}
}
...
...
fs/cifs/readdir.c
浏览文件 @
1c929cfe
...
...
@@ -102,11 +102,6 @@ cifs_readdir_lookup(struct dentry *parent, struct qstr *name,
return
NULL
;
}
if
(
cifs_sb_master_tcon
(
CIFS_SB
(
sb
))
->
nocase
)
d_set_d_op
(
dentry
,
&
cifs_ci_dentry_ops
);
else
d_set_d_op
(
dentry
,
&
cifs_dentry_ops
);
alias
=
d_materialise_unique
(
dentry
,
inode
);
if
(
alias
!=
NULL
)
{
dput
(
dentry
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录