Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
193deee1
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
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看板
提交
193deee1
编写于
7月 05, 2013
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lustre: kill the pointless wrapper
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
84d08fa8
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
12 addition
and
14 deletion
+12
-14
drivers/staging/lustre/lustre/include/linux/lustre_patchless_compat.h
...ing/lustre/lustre/include/linux/lustre_patchless_compat.h
+0
-2
drivers/staging/lustre/lustre/include/linux/lvfs.h
drivers/staging/lustre/lustre/include/linux/lvfs.h
+1
-1
drivers/staging/lustre/lustre/llite/dcache.c
drivers/staging/lustre/lustre/llite/dcache.c
+4
-4
drivers/staging/lustre/lustre/llite/llite_internal.h
drivers/staging/lustre/lustre/llite/llite_internal.h
+2
-2
drivers/staging/lustre/lustre/llite/llite_lib.c
drivers/staging/lustre/lustre/llite/llite_lib.c
+1
-1
drivers/staging/lustre/lustre/llite/namei.c
drivers/staging/lustre/lustre/llite/namei.c
+2
-2
drivers/staging/lustre/lustre/lvfs/lvfs_linux.c
drivers/staging/lustre/lustre/lvfs/lvfs_linux.c
+2
-2
未找到文件。
drivers/staging/lustre/lustre/include/linux/lustre_patchless_compat.h
浏览文件 @
193deee1
...
...
@@ -60,8 +60,6 @@ truncate_complete_page(struct address_space *mapping, struct page *page)
ll_delete_from_page_cache
(
page
);
}
# define d_refcount(d) d_count(d)
#ifdef ATTR_OPEN
# define ATTR_FROM_OPEN ATTR_OPEN
#else
...
...
drivers/staging/lustre/lustre/include/linux/lvfs.h
浏览文件 @
193deee1
...
...
@@ -99,7 +99,7 @@ static inline void l_dput(struct dentry *de)
if
(
!
de
||
IS_ERR
(
de
))
return
;
//shrink_dcache_parent(de);
LASSERT
(
d_
ref
count
(
de
)
>
0
);
LASSERT
(
d_count
(
de
)
>
0
);
dput
(
de
);
}
...
...
drivers/staging/lustre/lustre/llite/dcache.c
浏览文件 @
193deee1
...
...
@@ -98,7 +98,7 @@ int ll_dcompare(const struct dentry *parent, const struct inode *pinode,
CDEBUG
(
D_DENTRY
,
"found name %.*s(%p) flags %#x refc %d
\n
"
,
name
->
len
,
name
->
name
,
dentry
,
dentry
->
d_flags
,
d_
ref
count
(
dentry
));
d_count
(
dentry
));
/* mountpoint is always valid */
if
(
d_mountpoint
((
struct
dentry
*
)
dentry
))
...
...
@@ -165,7 +165,7 @@ static int ll_ddelete(const struct dentry *de)
list_empty
(
&
de
->
d_subdirs
)
?
""
:
"subdirs"
);
/* kernel >= 2.6.38 last refcount is decreased after this function. */
LASSERT
(
d_
ref
count
(
de
)
==
1
);
LASSERT
(
d_count
(
de
)
==
1
);
/* Disable this piece of code temproarily because this is called
* inside dcache_lock so it's not appropriate to do lots of work
...
...
@@ -190,7 +190,7 @@ static int ll_set_dd(struct dentry *de)
CDEBUG
(
D_DENTRY
,
"ldd on dentry %.*s (%p) parent %p inode %p refc %d
\n
"
,
de
->
d_name
.
len
,
de
->
d_name
.
name
,
de
,
de
->
d_parent
,
de
->
d_inode
,
d_
ref
count
(
de
));
d_count
(
de
));
if
(
de
->
d_fsdata
==
NULL
)
{
struct
ll_dentry_data
*
lld
;
...
...
@@ -540,7 +540,7 @@ int ll_revalidate_it(struct dentry *de, int lookup_flags,
CDEBUG
(
D_DENTRY
,
"revalidated dentry %.*s (%p) parent %p "
"inode %p refc %d
\n
"
,
de
->
d_name
.
len
,
de
->
d_name
.
name
,
de
,
de
->
d_parent
,
de
->
d_inode
,
d_
ref
count
(
de
));
d_count
(
de
));
ll_set_lock_data
(
exp
,
de
->
d_inode
,
it
,
&
bits
);
...
...
drivers/staging/lustre/lustre/llite/llite_internal.h
浏览文件 @
193deee1
...
...
@@ -1529,12 +1529,12 @@ static inline void d_lustre_invalidate(struct dentry *dentry, int nested)
{
CDEBUG
(
D_DENTRY
,
"invalidate dentry %.*s (%p) parent %p inode %p "
"refc %d
\n
"
,
dentry
->
d_name
.
len
,
dentry
->
d_name
.
name
,
dentry
,
dentry
->
d_parent
,
dentry
->
d_inode
,
d_
ref
count
(
dentry
));
dentry
->
d_parent
,
dentry
->
d_inode
,
d_count
(
dentry
));
spin_lock_nested
(
&
dentry
->
d_lock
,
nested
?
DENTRY_D_LOCK_NESTED
:
DENTRY_D_LOCK_NORMAL
);
__d_lustre_invalidate
(
dentry
);
if
(
d_
ref
count
(
dentry
)
==
0
)
if
(
d_count
(
dentry
)
==
0
)
__d_drop
(
dentry
);
spin_unlock
(
&
dentry
->
d_lock
);
}
...
...
drivers/staging/lustre/lustre/llite/llite_lib.c
浏览文件 @
193deee1
...
...
@@ -659,7 +659,7 @@ void lustre_dump_dentry(struct dentry *dentry, int recur)
" flags=0x%x, fsdata=%p, %d subdirs
\n
"
,
dentry
,
dentry
->
d_name
.
len
,
dentry
->
d_name
.
name
,
dentry
->
d_parent
->
d_name
.
len
,
dentry
->
d_parent
->
d_name
.
name
,
dentry
->
d_parent
,
dentry
->
d_inode
,
d_
ref
count
(
dentry
),
dentry
->
d_parent
,
dentry
->
d_inode
,
d_count
(
dentry
),
dentry
->
d_flags
,
dentry
->
d_fsdata
,
subdirs
);
if
(
dentry
->
d_inode
!=
NULL
)
ll_dump_inode
(
dentry
->
d_inode
);
...
...
drivers/staging/lustre/lustre/llite/namei.c
浏览文件 @
193deee1
...
...
@@ -409,7 +409,7 @@ struct dentry *ll_splice_alias(struct inode *inode, struct dentry *de)
iput
(
inode
);
CDEBUG
(
D_DENTRY
,
"Reuse dentry %p inode %p refc %d flags %#x
\n
"
,
new
,
new
->
d_inode
,
d_
ref
count
(
new
),
new
->
d_flags
);
new
,
new
->
d_inode
,
d_count
(
new
),
new
->
d_flags
);
return
new
;
}
}
...
...
@@ -417,7 +417,7 @@ struct dentry *ll_splice_alias(struct inode *inode, struct dentry *de)
__d_lustre_invalidate
(
de
);
d_add
(
de
,
inode
);
CDEBUG
(
D_DENTRY
,
"Add dentry %p inode %p refc %d flags %#x
\n
"
,
de
,
de
->
d_inode
,
d_
ref
count
(
de
),
de
->
d_flags
);
de
,
de
->
d_inode
,
d_count
(
de
),
de
->
d_flags
);
return
de
;
}
...
...
drivers/staging/lustre/lustre/lvfs/lvfs_linux.c
浏览文件 @
193deee1
...
...
@@ -121,8 +121,8 @@ void push_ctxt(struct lvfs_run_ctxt *save, struct lvfs_run_ctxt *new_ctx,
OBD_SET_CTXT_MAGIC
(
save
);
save
->
fs
=
get_fs
();
LASSERT
(
d_
ref
count
(
cfs_fs_pwd
(
current
->
fs
)));
LASSERT
(
d_
ref
count
(
new_ctx
->
pwd
));
LASSERT
(
d_count
(
cfs_fs_pwd
(
current
->
fs
)));
LASSERT
(
d_count
(
new_ctx
->
pwd
));
save
->
pwd
=
dget
(
cfs_fs_pwd
(
current
->
fs
));
save
->
pwdmnt
=
mntget
(
cfs_fs_mnt
(
current
->
fs
));
save
->
luc
.
luc_umask
=
current_umask
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录