Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xiphi1978
linux
提交
a2595b8a
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,发现更多精彩内容 >>
提交
a2595b8a
编写于
12月 15, 2010
作者:
T
Theodore Ts'o
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ext4: Add second mount options field since the s_mount_opt is full up
Signed-off-by:
N
"Theodore Ts'o"
<
tytso@mit.edu
>
上级
673c6100
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
2 deletion
+13
-2
fs/ext4/ext4.h
fs/ext4/ext4.h
+8
-0
fs/ext4/super.c
fs/ext4/super.c
+5
-2
未找到文件。
fs/ext4/ext4.h
浏览文件 @
a2595b8a
...
...
@@ -908,6 +908,13 @@ struct ext4_inode_info {
#define test_opt(sb, opt) (EXT4_SB(sb)->s_mount_opt & \
EXT4_MOUNT_##opt)
#define clear_opt2(sb, opt) EXT4_SB(sb)->s_mount_opt2 &= \
~EXT4_MOUNT2_##opt
#define set_opt2(sb, opt) EXT4_SB(sb)->s_mount_opt2 |= \
EXT4_MOUNT2_##opt
#define test_opt2(sb, opt) (EXT4_SB(sb)->s_mount_opt2 & \
EXT4_MOUNT2_##opt)
#define ext4_set_bit ext2_set_bit
#define ext4_set_bit_atomic ext2_set_bit_atomic
#define ext4_clear_bit ext2_clear_bit
...
...
@@ -1073,6 +1080,7 @@ struct ext4_sb_info {
struct
ext4_super_block
*
s_es
;
/* Pointer to the super block in the buffer */
struct
buffer_head
**
s_group_desc
;
unsigned
int
s_mount_opt
;
unsigned
int
s_mount_opt2
;
unsigned
int
s_mount_flags
;
ext4_fsblk_t
s_sb_block
;
uid_t
s_resuid
;
...
...
fs/ext4/super.c
浏览文件 @
a2595b8a
...
...
@@ -1895,12 +1895,12 @@ static int ext4_setup_super(struct super_block *sb, struct ext4_super_block *es,
ext4_commit_super
(
sb
,
1
);
if
(
test_opt
(
sb
,
DEBUG
))
printk
(
KERN_INFO
"[EXT4 FS bs=%lu, gc=%u, "
"bpg=%lu, ipg=%lu, mo=%04x]
\n
"
,
"bpg=%lu, ipg=%lu, mo=%04x
, mo2=%04x
]
\n
"
,
sb
->
s_blocksize
,
sbi
->
s_groups_count
,
EXT4_BLOCKS_PER_GROUP
(
sb
),
EXT4_INODES_PER_GROUP
(
sb
),
sbi
->
s_mount_opt
);
sbi
->
s_mount_opt
,
sbi
->
s_mount_opt2
);
return
res
;
}
...
...
@@ -4171,6 +4171,7 @@ static int ext4_unfreeze(struct super_block *sb)
*/
struct
ext4_mount_options
{
unsigned
long
s_mount_opt
;
unsigned
long
s_mount_opt2
;
uid_t
s_resuid
;
gid_t
s_resgid
;
unsigned
long
s_commit_interval
;
...
...
@@ -4201,6 +4202,7 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data)
lock_super
(
sb
);
old_sb_flags
=
sb
->
s_flags
;
old_opts
.
s_mount_opt
=
sbi
->
s_mount_opt
;
old_opts
.
s_mount_opt2
=
sbi
->
s_mount_opt2
;
old_opts
.
s_resuid
=
sbi
->
s_resuid
;
old_opts
.
s_resgid
=
sbi
->
s_resgid
;
old_opts
.
s_commit_interval
=
sbi
->
s_commit_interval
;
...
...
@@ -4354,6 +4356,7 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data)
restore_opts:
sb
->
s_flags
=
old_sb_flags
;
sbi
->
s_mount_opt
=
old_opts
.
s_mount_opt
;
sbi
->
s_mount_opt2
=
old_opts
.
s_mount_opt2
;
sbi
->
s_resuid
=
old_opts
.
s_resuid
;
sbi
->
s_resgid
=
old_opts
.
s_resgid
;
sbi
->
s_commit_interval
=
old_opts
.
s_commit_interval
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录