Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
ceaec15d
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 接近 4 年
通知
14
Star
8
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kernel_linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
ceaec15d
编写于
11年前
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
9p: make v9fs_cache_inode_{get,put,set}_cookie empty inlines for !9P_CACHEFS
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
d0e639c9
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
12 addition
and
12 deletion
+12
-12
fs/9p/cache.h
fs/9p/cache.h
+12
-0
fs/9p/vfs_file.c
fs/9p/vfs_file.c
+0
-2
fs/9p/vfs_inode.c
fs/9p/vfs_inode.c
+0
-6
fs/9p/vfs_inode_dotl.c
fs/9p/vfs_inode_dotl.c
+0
-4
未找到文件。
fs/9p/cache.h
浏览文件 @
ceaec15d
...
@@ -101,6 +101,18 @@ static inline void v9fs_fscache_wait_on_page_write(struct inode *inode,
...
@@ -101,6 +101,18 @@ static inline void v9fs_fscache_wait_on_page_write(struct inode *inode,
#else
/* CONFIG_9P_FSCACHE */
#else
/* CONFIG_9P_FSCACHE */
static
inline
void
v9fs_cache_inode_get_cookie
(
struct
inode
*
inode
)
{
}
static
inline
void
v9fs_cache_inode_put_cookie
(
struct
inode
*
inode
)
{
}
static
inline
void
v9fs_cache_inode_set_cookie
(
struct
inode
*
inode
,
struct
file
*
file
)
{
}
static
inline
int
v9fs_fscache_release_page
(
struct
page
*
page
,
static
inline
int
v9fs_fscache_release_page
(
struct
page
*
page
,
gfp_t
gfp
)
{
gfp_t
gfp
)
{
return
1
;
return
1
;
...
...
This diff is collapsed.
Click to expand it.
fs/9p/vfs_file.c
浏览文件 @
ceaec15d
...
@@ -105,10 +105,8 @@ int v9fs_file_open(struct inode *inode, struct file *file)
...
@@ -105,10 +105,8 @@ int v9fs_file_open(struct inode *inode, struct file *file)
v9inode
->
writeback_fid
=
(
void
*
)
fid
;
v9inode
->
writeback_fid
=
(
void
*
)
fid
;
}
}
mutex_unlock
(
&
v9inode
->
v_mutex
);
mutex_unlock
(
&
v9inode
->
v_mutex
);
#ifdef CONFIG_9P_FSCACHE
if
(
v9ses
->
cache
)
if
(
v9ses
->
cache
)
v9fs_cache_inode_set_cookie
(
inode
,
file
);
v9fs_cache_inode_set_cookie
(
inode
,
file
);
#endif
return
0
;
return
0
;
out_error:
out_error:
p9_client_clunk
(
file
->
private_data
);
p9_client_clunk
(
file
->
private_data
);
...
...
This diff is collapsed.
Click to expand it.
fs/9p/vfs_inode.c
浏览文件 @
ceaec15d
...
@@ -448,9 +448,7 @@ void v9fs_evict_inode(struct inode *inode)
...
@@ -448,9 +448,7 @@ void v9fs_evict_inode(struct inode *inode)
clear_inode
(
inode
);
clear_inode
(
inode
);
filemap_fdatawrite
(
inode
->
i_mapping
);
filemap_fdatawrite
(
inode
->
i_mapping
);
#ifdef CONFIG_9P_FSCACHE
v9fs_cache_inode_put_cookie
(
inode
);
v9fs_cache_inode_put_cookie
(
inode
);
#endif
/* clunk the fid stashed in writeback_fid */
/* clunk the fid stashed in writeback_fid */
if
(
v9inode
->
writeback_fid
)
{
if
(
v9inode
->
writeback_fid
)
{
p9_client_clunk
(
v9inode
->
writeback_fid
);
p9_client_clunk
(
v9inode
->
writeback_fid
);
...
@@ -531,9 +529,7 @@ static struct inode *v9fs_qid_iget(struct super_block *sb,
...
@@ -531,9 +529,7 @@ static struct inode *v9fs_qid_iget(struct super_block *sb,
goto
error
;
goto
error
;
v9fs_stat2inode
(
st
,
inode
,
sb
);
v9fs_stat2inode
(
st
,
inode
,
sb
);
#ifdef CONFIG_9P_FSCACHE
v9fs_cache_inode_get_cookie
(
inode
);
v9fs_cache_inode_get_cookie
(
inode
);
#endif
unlock_new_inode
(
inode
);
unlock_new_inode
(
inode
);
return
inode
;
return
inode
;
error:
error:
...
@@ -905,10 +901,8 @@ v9fs_vfs_atomic_open(struct inode *dir, struct dentry *dentry,
...
@@ -905,10 +901,8 @@ v9fs_vfs_atomic_open(struct inode *dir, struct dentry *dentry,
goto
error
;
goto
error
;
file
->
private_data
=
fid
;
file
->
private_data
=
fid
;
#ifdef CONFIG_9P_FSCACHE
if
(
v9ses
->
cache
)
if
(
v9ses
->
cache
)
v9fs_cache_inode_set_cookie
(
dentry
->
d_inode
,
file
);
v9fs_cache_inode_set_cookie
(
dentry
->
d_inode
,
file
);
#endif
*
opened
|=
FILE_CREATED
;
*
opened
|=
FILE_CREATED
;
out:
out:
...
...
This diff is collapsed.
Click to expand it.
fs/9p/vfs_inode_dotl.c
浏览文件 @
ceaec15d
...
@@ -141,9 +141,7 @@ static struct inode *v9fs_qid_iget_dotl(struct super_block *sb,
...
@@ -141,9 +141,7 @@ static struct inode *v9fs_qid_iget_dotl(struct super_block *sb,
goto
error
;
goto
error
;
v9fs_stat2inode_dotl
(
st
,
inode
);
v9fs_stat2inode_dotl
(
st
,
inode
);
#ifdef CONFIG_9P_FSCACHE
v9fs_cache_inode_get_cookie
(
inode
);
v9fs_cache_inode_get_cookie
(
inode
);
#endif
retval
=
v9fs_get_acl
(
inode
,
fid
);
retval
=
v9fs_get_acl
(
inode
,
fid
);
if
(
retval
)
if
(
retval
)
goto
error
;
goto
error
;
...
@@ -355,10 +353,8 @@ v9fs_vfs_atomic_open_dotl(struct inode *dir, struct dentry *dentry,
...
@@ -355,10 +353,8 @@ v9fs_vfs_atomic_open_dotl(struct inode *dir, struct dentry *dentry,
if
(
err
)
if
(
err
)
goto
err_clunk_old_fid
;
goto
err_clunk_old_fid
;
file
->
private_data
=
ofid
;
file
->
private_data
=
ofid
;
#ifdef CONFIG_9P_FSCACHE
if
(
v9ses
->
cache
)
if
(
v9ses
->
cache
)
v9fs_cache_inode_set_cookie
(
inode
,
file
);
v9fs_cache_inode_set_cookie
(
inode
,
file
);
#endif
*
opened
|=
FILE_CREATED
;
*
opened
|=
FILE_CREATED
;
out:
out:
v9fs_put_acl
(
dacl
,
pacl
);
v9fs_put_acl
(
dacl
,
pacl
);
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
新手
引导
客服
返回
顶部