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
3add3928
Commit
3add3928
authored
Apr 02, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Fix reiserfs oops with seperate journal dev
From Oleg@namesys.
parent
4a85ebdb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
fs/reiserfs/journal.c
fs/reiserfs/journal.c
+1
-5
No files found.
fs/reiserfs/journal.c
View file @
3add3928
...
@@ -1958,8 +1958,7 @@ static int journal_init_dev( struct super_block *super,
...
@@ -1958,8 +1958,7 @@ static int journal_init_dev( struct super_block *super,
SB_ONDISK_JOURNAL_DEVICE
(
super
)
?
SB_ONDISK_JOURNAL_DEVICE
(
super
)
?
to_kdev_t
(
SB_ONDISK_JOURNAL_DEVICE
(
super
))
:
super
->
s_dev
;
to_kdev_t
(
SB_ONDISK_JOURNAL_DEVICE
(
super
))
:
super
->
s_dev
;
/* 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
]
)
)
{
SB_ONDISK_JOURNAL_DEVICE
(
super
)
)
{
journal
->
j_dev_bd
=
bdget
(
kdev_t_to_nr
(
jdev
)
);
journal
->
j_dev_bd
=
bdget
(
kdev_t_to_nr
(
jdev
)
);
if
(
journal
->
j_dev_bd
)
if
(
journal
->
j_dev_bd
)
result
=
blkdev_get
(
journal
->
j_dev_bd
,
result
=
blkdev_get
(
journal
->
j_dev_bd
,
...
@@ -1974,9 +1973,6 @@ static int journal_init_dev( struct super_block *super,
...
@@ -1974,9 +1973,6 @@ static int journal_init_dev( struct super_block *super,
return
result
;
return
result
;
}
}
/* no "jdev" option and journal is on the host device */
if
(
!
jdev_name
||
!
jdev_name
[
0
]
)
return
0
;
journal
->
j_dev_file
=
filp_open
(
jdev_name
,
0
,
0
);
journal
->
j_dev_file
=
filp_open
(
jdev_name
,
0
,
0
);
if
(
!
IS_ERR
(
journal
->
j_dev_file
)
)
{
if
(
!
IS_ERR
(
journal
->
j_dev_file
)
)
{
struct
inode
*
jdev_inode
;
struct
inode
*
jdev_inode
;
...
...
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