Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xiphi1978
linux
提交
5a3cd992
L
linux
项目概览
xiphi1978
/
linux
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5a3cd992
编写于
11月 06, 2013
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
iget/iget5: don't bother with ->i_lock until we find a match
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
b18825a7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
16 deletion
+16
-16
Documentation/filesystems/porting
Documentation/filesystems/porting
+8
-0
drivers/staging/lustre/lustre/llite/namei.c
drivers/staging/lustre/lustre/llite/namei.c
+1
-1
fs/inode.c
fs/inode.c
+6
-14
fs/ntfs/inode.c
fs/ntfs/inode.c
+1
-1
未找到文件。
Documentation/filesystems/porting
浏览文件 @
5a3cd992
...
...
@@ -455,3 +455,11 @@ in your dentry operations instead.
vfs_follow_link has been removed. Filesystems must use nd_set_link
from ->follow_link for normal symlinks, or nd_jump_link for magic
/proc/<pid> style links.
--
[mandatory]
iget5_locked()/ilookup5()/ilookup5_nowait() test() callback used to be
called with both ->i_lock and inode_hash_lock held; the former is *not*
taken anymore, so verify that your callbacks do not rely on it (none
of the in-tree instances did). inode_hash_lock is still held,
of course, so they are still serialized wrt removal from inode hash,
as well as wrt set() callback of iget5_locked().
drivers/staging/lustre/lustre/llite/namei.c
浏览文件 @
5a3cd992
...
...
@@ -83,7 +83,7 @@ int ll_unlock(__u32 mode, struct lustre_handle *lockh)
}
/* called from iget5_locked->find_inode() under inode_lock spinlock */
/* called from iget5_locked->find_inode() under inode_
hash_
lock spinlock */
static
int
ll_test_inode
(
struct
inode
*
inode
,
void
*
opaque
)
{
struct
ll_inode_info
*
lli
=
ll_i2info
(
inode
);
...
...
fs/inode.c
浏览文件 @
5a3cd992
...
...
@@ -773,15 +773,11 @@ static struct inode *find_inode(struct super_block *sb,
repeat:
hlist_for_each_entry
(
inode
,
head
,
i_hash
)
{
spin_lock
(
&
inode
->
i_lock
);
if
(
inode
->
i_sb
!=
sb
)
{
spin_unlock
(
&
inode
->
i_lock
);
if
(
inode
->
i_sb
!=
sb
)
continue
;
}
if
(
!
test
(
inode
,
data
))
{
spin_unlock
(
&
inode
->
i_lock
);
if
(
!
test
(
inode
,
data
))
continue
;
}
spin_lock
(
&
inode
->
i_lock
);
if
(
inode
->
i_state
&
(
I_FREEING
|
I_WILL_FREE
))
{
__wait_on_freeing_inode
(
inode
);
goto
repeat
;
...
...
@@ -804,15 +800,11 @@ static struct inode *find_inode_fast(struct super_block *sb,
repeat:
hlist_for_each_entry
(
inode
,
head
,
i_hash
)
{
spin_lock
(
&
inode
->
i_lock
);
if
(
inode
->
i_ino
!=
ino
)
{
spin_unlock
(
&
inode
->
i_lock
);
if
(
inode
->
i_ino
!=
ino
)
continue
;
}
if
(
inode
->
i_sb
!=
sb
)
{
spin_unlock
(
&
inode
->
i_lock
);
if
(
inode
->
i_sb
!=
sb
)
continue
;
}
spin_lock
(
&
inode
->
i_lock
);
if
(
inode
->
i_state
&
(
I_FREEING
|
I_WILL_FREE
))
{
__wait_on_freeing_inode
(
inode
);
goto
repeat
;
...
...
fs/ntfs/inode.c
浏览文件 @
5a3cd992
...
...
@@ -55,7 +55,7 @@
*
* Return 1 if the attributes match and 0 if not.
*
* NOTE: This function runs with the inode
->i
_lock spin lock held so it is not
* NOTE: This function runs with the inode
_hash
_lock spin lock held so it is not
* allowed to sleep.
*/
int
ntfs_test_inode
(
struct
inode
*
vi
,
ntfs_attr
*
na
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录