Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
416ac51d
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
416ac51d
编写于
9月 13, 2011
作者:
A
Arne Jansen
提交者:
Jan Schmidt
7月 10, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Btrfs: qgroup state and initialization
Add state to fs_info. Signed-off-by:
N
Arne Jansen
<
sensille@gmx.net
>
上级
20897f5c
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
31 addition
and
0 deletion
+31
-0
fs/btrfs/ctree.h
fs/btrfs/ctree.h
+24
-0
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+7
-0
未找到文件。
fs/btrfs/ctree.h
浏览文件 @
416ac51d
...
@@ -1120,6 +1120,7 @@ struct btrfs_fs_info {
...
@@ -1120,6 +1120,7 @@ struct btrfs_fs_info {
struct
btrfs_root
*
dev_root
;
struct
btrfs_root
*
dev_root
;
struct
btrfs_root
*
fs_root
;
struct
btrfs_root
*
fs_root
;
struct
btrfs_root
*
csum_root
;
struct
btrfs_root
*
csum_root
;
struct
btrfs_root
*
quota_root
;
/* the log root tree is a directory of all the other log roots */
/* the log root tree is a directory of all the other log roots */
struct
btrfs_root
*
log_root_tree
;
struct
btrfs_root
*
log_root_tree
;
...
@@ -1374,6 +1375,29 @@ struct btrfs_fs_info {
...
@@ -1374,6 +1375,29 @@ struct btrfs_fs_info {
#ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
#ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
u32
check_integrity_print_mask
;
u32
check_integrity_print_mask
;
#endif
#endif
/*
* quota information
*/
unsigned
int
quota_enabled
:
1
;
/*
* quota_enabled only changes state after a commit. This holds the
* next state.
*/
unsigned
int
pending_quota_state
:
1
;
/* is qgroup tracking in a consistent state? */
u64
qgroup_flags
;
/* holds configuration and tracking. Protected by qgroup_lock */
struct
rb_root
qgroup_tree
;
spinlock_t
qgroup_lock
;
/* list of dirty qgroups to be written at next commit */
struct
list_head
dirty_qgroups
;
/* used by btrfs_qgroup_record_ref for an efficient tree traversal */
u64
qgroup_seq
;
/* filesystem state */
/* filesystem state */
u64
fs_state
;
u64
fs_state
;
...
...
fs/btrfs/disk-io.c
浏览文件 @
416ac51d
...
@@ -2110,6 +2110,13 @@ int open_ctree(struct super_block *sb,
...
@@ -2110,6 +2110,13 @@ int open_ctree(struct super_block *sb,
init_rwsem
(
&
fs_info
->
cleanup_work_sem
);
init_rwsem
(
&
fs_info
->
cleanup_work_sem
);
init_rwsem
(
&
fs_info
->
subvol_sem
);
init_rwsem
(
&
fs_info
->
subvol_sem
);
spin_lock_init
(
&
fs_info
->
qgroup_lock
);
fs_info
->
qgroup_tree
=
RB_ROOT
;
INIT_LIST_HEAD
(
&
fs_info
->
dirty_qgroups
);
fs_info
->
qgroup_seq
=
1
;
fs_info
->
quota_enabled
=
0
;
fs_info
->
pending_quota_state
=
0
;
btrfs_init_free_cluster
(
&
fs_info
->
meta_alloc_cluster
);
btrfs_init_free_cluster
(
&
fs_info
->
meta_alloc_cluster
);
btrfs_init_free_cluster
(
&
fs_info
->
data_alloc_cluster
);
btrfs_init_free_cluster
(
&
fs_info
->
data_alloc_cluster
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录