Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e5eb8caa
Commit
e5eb8caa
authored
Oct 08, 2007
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remember mode of reiserfs journal
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
c2dd0dae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+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
No files found.
fs/reiserfs/journal.c
View file @
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
View file @
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment