Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
30ae8467
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
30ae8467
编写于
3月 29, 2007
作者:
C
Chris Mason
提交者:
David Woodhouse
3月 29, 2007
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Btrfs: btree address space fixes
Signed-off-by:
N
Chris Mason
<
chris.mason@oracle.com
>
上级
87cbda5c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
3 deletion
+4
-3
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+4
-3
未找到文件。
fs/btrfs/disk-io.c
浏览文件 @
30ae8467
...
@@ -69,7 +69,6 @@ struct buffer_head *btrfs_find_create_tree_block(struct btrfs_root *root,
...
@@ -69,7 +69,6 @@ struct buffer_head *btrfs_find_create_tree_block(struct btrfs_root *root,
if
(
!
page
)
if
(
!
page
)
return
NULL
;
return
NULL
;
wait_on_page_writeback
(
page
);
if
(
!
page_has_buffers
(
page
))
if
(
!
page_has_buffers
(
page
))
create_empty_buffers
(
page
,
root
->
fs_info
->
sb
->
s_blocksize
,
0
);
create_empty_buffers
(
page
,
root
->
fs_info
->
sb
->
s_blocksize
,
0
);
head
=
page_buffers
(
page
);
head
=
page_buffers
(
page
);
...
@@ -300,11 +299,12 @@ struct btrfs_root *open_ctree(struct super_block *sb,
...
@@ -300,11 +299,12 @@ struct btrfs_root *open_ctree(struct super_block *sb,
fs_info
->
btree_inode
->
i_mapping
->
a_ops
=
&
btree_aops
;
fs_info
->
btree_inode
->
i_mapping
->
a_ops
=
&
btree_aops
;
mapping_set_gfp_mask
(
fs_info
->
btree_inode
->
i_mapping
,
GFP_NOFS
);
mapping_set_gfp_mask
(
fs_info
->
btree_inode
->
i_mapping
,
GFP_NOFS
);
fs_info
->
hash_tfm
=
crypto_alloc_hash
(
"sha256"
,
0
,
CRYPTO_ALG_ASYNC
);
fs_info
->
hash_tfm
=
crypto_alloc_hash
(
"sha256"
,
0
,
CRYPTO_ALG_ASYNC
);
if
(
!
fs_info
->
hash_tfm
)
{
spin_lock_init
(
&
fs_info
->
hash_lock
);
if
(
!
fs_info
->
hash_tfm
||
IS_ERR
(
fs_info
->
hash_tfm
))
{
printk
(
"failed to allocate sha256 hash
\n
"
);
printk
(
"failed to allocate sha256 hash
\n
"
);
return
NULL
;
return
NULL
;
}
}
spin_lock_init
(
&
fs_info
->
hash_lock
);
mutex_init
(
&
fs_info
->
trans_mutex
);
mutex_init
(
&
fs_info
->
trans_mutex
);
mutex_init
(
&
fs_info
->
fs_mutex
);
mutex_init
(
&
fs_info
->
fs_mutex
);
...
@@ -394,6 +394,7 @@ int close_ctree(struct btrfs_root *root)
...
@@ -394,6 +394,7 @@ int close_ctree(struct btrfs_root *root)
btrfs_block_release
(
root
,
root
->
commit_root
);
btrfs_block_release
(
root
,
root
->
commit_root
);
btrfs_block_release
(
root
,
root
->
fs_info
->
sb_buffer
);
btrfs_block_release
(
root
,
root
->
fs_info
->
sb_buffer
);
crypto_free_hash
(
root
->
fs_info
->
hash_tfm
);
crypto_free_hash
(
root
->
fs_info
->
hash_tfm
);
truncate_inode_pages
(
root
->
fs_info
->
btree_inode
->
i_mapping
,
0
);
iput
(
root
->
fs_info
->
btree_inode
);
iput
(
root
->
fs_info
->
btree_inode
);
kfree
(
root
->
fs_info
->
extent_root
);
kfree
(
root
->
fs_info
->
extent_root
);
kfree
(
root
->
fs_info
->
inode_root
);
kfree
(
root
->
fs_info
->
inode_root
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录