Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
e5eb8caa
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看板
提交
e5eb8caa
编写于
10月 08, 2007
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PATCH] remember mode of reiserfs journal
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
c2dd0dae
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
2 deletion
+5
-2
fs/reiserfs/journal.c
fs/reiserfs/journal.c
+4
-2
include/linux/reiserfs_fs_sb.h
include/linux/reiserfs_fs_sb.h
+1
-0
未找到文件。
fs/reiserfs/journal.c
浏览文件 @
e5eb8caa
...
@@ -2575,7 +2575,7 @@ static int release_journal_dev(struct super_block *super,
...
@@ -2575,7 +2575,7 @@ static int release_journal_dev(struct super_block *super,
if
(
journal
->
j_dev_bd
!=
NULL
)
{
if
(
journal
->
j_dev_bd
!=
NULL
)
{
if
(
journal
->
j_dev_bd
->
bd_dev
!=
super
->
s_dev
)
if
(
journal
->
j_dev_bd
->
bd_dev
!=
super
->
s_dev
)
bd_release
(
journal
->
j_dev_bd
);
bd_release
(
journal
->
j_dev_bd
);
result
=
blkdev_put
(
journal
->
j_dev_bd
,
0
);
/* move up */
result
=
blkdev_put
(
journal
->
j_dev_bd
,
journal
->
j_dev_mode
);
journal
->
j_dev_bd
=
NULL
;
journal
->
j_dev_bd
=
NULL
;
}
}
...
@@ -2608,6 +2608,7 @@ static int journal_init_dev(struct super_block *super,
...
@@ -2608,6 +2608,7 @@ static int journal_init_dev(struct super_block *super,
/* there is no "jdev" option and journal is on separate device */
/* there is no "jdev" option and journal is on separate device */
if
((
!
jdev_name
||
!
jdev_name
[
0
]))
{
if
((
!
jdev_name
||
!
jdev_name
[
0
]))
{
journal
->
j_dev_bd
=
open_by_devnum
(
jdev
,
blkdev_mode
);
journal
->
j_dev_bd
=
open_by_devnum
(
jdev
,
blkdev_mode
);
journal
->
j_dev_mode
=
blkdev_mode
;
if
(
IS_ERR
(
journal
->
j_dev_bd
))
{
if
(
IS_ERR
(
journal
->
j_dev_bd
))
{
result
=
PTR_ERR
(
journal
->
j_dev_bd
);
result
=
PTR_ERR
(
journal
->
j_dev_bd
);
journal
->
j_dev_bd
=
NULL
;
journal
->
j_dev_bd
=
NULL
;
...
@@ -2628,8 +2629,9 @@ static int journal_init_dev(struct super_block *super,
...
@@ -2628,8 +2629,9 @@ static int journal_init_dev(struct super_block *super,
return
0
;
return
0
;
}
}
journal
->
j_dev_mode
=
blkdev_mode
;
journal
->
j_dev_bd
=
open_bdev_exclusive
(
jdev_name
,
journal
->
j_dev_bd
=
open_bdev_exclusive
(
jdev_name
,
FMODE_READ
|
FMODE_WRITE
,
journal
);
blkdev_mode
,
journal
);
if
(
IS_ERR
(
journal
->
j_dev_bd
))
{
if
(
IS_ERR
(
journal
->
j_dev_bd
))
{
result
=
PTR_ERR
(
journal
->
j_dev_bd
);
result
=
PTR_ERR
(
journal
->
j_dev_bd
);
journal
->
j_dev_bd
=
NULL
;
journal
->
j_dev_bd
=
NULL
;
...
...
include/linux/reiserfs_fs_sb.h
浏览文件 @
e5eb8caa
...
@@ -178,6 +178,7 @@ struct reiserfs_journal {
...
@@ -178,6 +178,7 @@ struct reiserfs_journal {
struct
reiserfs_journal_cnode
*
j_first
;
/* oldest journal block. start here for traverse */
struct
reiserfs_journal_cnode
*
j_first
;
/* oldest journal block. start here for traverse */
struct
block_device
*
j_dev_bd
;
struct
block_device
*
j_dev_bd
;
fmode_t
j_dev_mode
;
int
j_1st_reserved_block
;
/* first block on s_dev of reserved area journal */
int
j_1st_reserved_block
;
/* first block on s_dev of reserved area journal */
unsigned
long
j_state
;
unsigned
long
j_state
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录