Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
kernel_linux
提交
e22fdcc8
K
kernel_linux
项目概览
OpenHarmony
/
kernel_linux
上一次同步 4 年多
通知
15
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看板
提交
e22fdcc8
编写于
10月 20, 2014
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lustre: switch ll_release_openhandle() to struct inode *
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
2a8a3597
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
8 addition
and
9 deletion
+8
-9
drivers/staging/lustre/lustre/llite/file.c
drivers/staging/lustre/lustre/llite/file.c
+6
-7
drivers/staging/lustre/lustre/llite/llite_internal.h
drivers/staging/lustre/lustre/llite/llite_internal.h
+1
-1
drivers/staging/lustre/lustre/llite/namei.c
drivers/staging/lustre/lustre/llite/namei.c
+1
-1
未找到文件。
drivers/staging/lustre/lustre/llite/file.c
浏览文件 @
e22fdcc8
...
...
@@ -430,7 +430,7 @@ static int ll_intent_file_open(struct dentry *dentry, void *lmm,
if
(
!
it_disposition
(
itp
,
DISP_OPEN_OPEN
)
||
it_open_error
(
DISP_OPEN_OPEN
,
itp
))
goto
out
;
ll_release_openhandle
(
dentry
,
itp
);
ll_release_openhandle
(
inode
,
itp
);
goto
out
;
}
...
...
@@ -620,7 +620,7 @@ int ll_file_open(struct inode *inode, struct file *file)
goto
out_openerr
;
}
ll_release_openhandle
(
file
->
f_dentry
,
it
);
ll_release_openhandle
(
inode
,
it
);
}
(
*
och_usecount
)
++
;
...
...
@@ -1366,7 +1366,7 @@ int ll_lov_setstripe_ea_info(struct inode *inode, struct dentry *dentry,
if
(
rc
<
0
)
goto
out_req_free
;
ll_release_openhandle
(
dentry
,
&
oit
);
ll_release_openhandle
(
inode
,
&
oit
);
out_unlock:
ll_inode_size_unlock
(
inode
);
...
...
@@ -1622,22 +1622,21 @@ int ll_put_grouplock(struct inode *inode, struct file *file, unsigned long arg)
/**
* Close inode open handle
*
* \param
dentry [in] dentry which contains the inode
* \param
inode [in] inode in question
* \param it [in,out] intent which contains open info and result
*
* \retval 0 success
* \retval <0 failure
*/
int
ll_release_openhandle
(
struct
dentry
*
dentry
,
struct
lookup_intent
*
it
)
int
ll_release_openhandle
(
struct
inode
*
inode
,
struct
lookup_intent
*
it
)
{
struct
inode
*
inode
=
dentry
->
d_inode
;
struct
obd_client_handle
*
och
;
int
rc
;
LASSERT
(
inode
);
/* Root ? Do nothing. */
if
(
dentry
->
d_inode
->
i_sb
->
s_root
==
dentry
)
if
(
inode
->
i_sb
->
s_root
->
d_inode
==
inode
)
return
0
;
/* No open handle to close? Move away */
...
...
drivers/staging/lustre/lustre/llite/llite_internal.h
浏览文件 @
e22fdcc8
...
...
@@ -748,7 +748,7 @@ int ll_file_release(struct inode *inode, struct file *file);
int
ll_glimpse_ioctl
(
struct
ll_sb_info
*
sbi
,
struct
lov_stripe_md
*
lsm
,
lstat_t
*
st
);
void
ll_ioepoch_open
(
struct
ll_inode_info
*
lli
,
__u64
ioepoch
);
int
ll_release_openhandle
(
struct
dentry
*
,
struct
lookup_intent
*
);
int
ll_release_openhandle
(
struct
inode
*
,
struct
lookup_intent
*
);
int
ll_md_real_close
(
struct
inode
*
inode
,
fmode_t
fmode
);
void
ll_ioepoch_close
(
struct
inode
*
inode
,
struct
md_op_data
*
op_data
,
struct
obd_client_handle
**
och
,
unsigned
long
flags
);
...
...
drivers/staging/lustre/lustre/llite/namei.c
浏览文件 @
e22fdcc8
...
...
@@ -563,7 +563,7 @@ static struct dentry *ll_lookup_it(struct inode *parent, struct dentry *dentry,
if
((
it
->
it_op
&
IT_OPEN
)
&&
dentry
->
d_inode
&&
!
S_ISREG
(
dentry
->
d_inode
->
i_mode
)
&&
!
S_ISDIR
(
dentry
->
d_inode
->
i_mode
))
{
ll_release_openhandle
(
dentry
,
it
);
ll_release_openhandle
(
dentry
->
d_inode
,
it
);
}
ll_lookup_finish_locks
(
it
,
dentry
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录