Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
aa5d6bed
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看板
提交
aa5d6bed
编写于
2月 28, 2007
作者:
C
Chris Mason
提交者:
David Woodhouse
2月 28, 2007
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Btrfs: return code checking
Signed-off-by:
N
Chris Mason
<
chris.mason@oracle.com
>
上级
af86d07e
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
269 addition
and
228 deletion
+269
-228
fs/btrfs/Makefile
fs/btrfs/Makefile
+4
-1
fs/btrfs/ctree.c
fs/btrfs/ctree.c
+254
-226
fs/btrfs/extent-tree.c
fs/btrfs/extent-tree.c
+5
-0
fs/btrfs/random-test.c
fs/btrfs/random-test.c
+6
-1
未找到文件。
fs/btrfs/Makefile
浏览文件 @
aa5d6bed
CC
=
gcc
CFLAGS
=
-g
-Wall
headers
=
radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h
objects
=
ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o
# if you don't have sparse installed, use ls instead
check
=
sparse
CHECKFLAGS
=
-D__linux__
-Dlinux
-D__STDC__
-Dunix
-D__unix__
-Wbitwise
\
-Wcontext
-Wcast-truncate
-Wuninitialized
-Wshadow
-Wundef
check
=
sparse
$(CHECKFLAGS)
#check=ls
.c.o
:
...
...
fs/btrfs/ctree.c
浏览文件 @
aa5d6bed
此差异已折叠。
点击以展开。
fs/btrfs/extent-tree.c
浏览文件 @
aa5d6bed
...
...
@@ -125,6 +125,11 @@ int find_free_extent(struct ctree_root *orig_root, u64 num_blocks,
ins
->
flags
=
0
;
start_found
=
0
;
ret
=
search_slot
(
root
,
ins
,
&
path
,
0
);
if
(
ret
<
0
)
{
release_path
(
root
,
&
path
);
return
ret
;
}
while
(
1
)
{
l
=
&
path
.
nodes
[
0
]
->
leaf
;
slot
=
path
.
slots
[
0
];
...
...
fs/btrfs/random-test.c
浏览文件 @
aa5d6bed
...
...
@@ -134,7 +134,7 @@ static int lookup_enoent(struct ctree_root *root, struct radix_tree_root *radix)
return
ret
;
ret
=
search_slot
(
root
,
&
key
,
&
path
,
0
);
release_path
(
root
,
&
path
);
if
(
ret
=
=
0
)
if
(
ret
<
=
0
)
goto
error
;
return
0
;
error:
...
...
@@ -153,12 +153,17 @@ static int fill_radix(struct ctree_root *root, struct radix_tree_root *radix)
int
ret
;
int
slot
;
int
i
;
key
.
offset
=
0
;
key
.
flags
=
0
;
key
.
objectid
=
(
unsigned
long
)
-
1
;
while
(
1
)
{
init_path
(
&
path
);
ret
=
search_slot
(
root
,
&
key
,
&
path
,
0
);
if
(
ret
<
0
)
{
release_path
(
root
,
&
path
);
return
ret
;
}
slot
=
path
.
slots
[
0
];
if
(
ret
!=
0
)
{
if
(
slot
==
0
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录