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
37908413
Commit
37908413
authored
Dec 07, 2002
by
Oleg Drokin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reiserfs: Fix a problem with delayed unlinks and remounting RW filesystem RW.
parent
fb7be42a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
fs/reiserfs/super.c
fs/reiserfs/super.c
+5
-1
No files found.
fs/reiserfs/super.c
View file @
37908413
...
@@ -716,7 +716,7 @@ static int reiserfs_remount (struct super_block * s, int * mount_flags, char * a
...
@@ -716,7 +716,7 @@ static int reiserfs_remount (struct super_block * s, int * mount_flags, char * a
}
}
if
(
*
mount_flags
&
MS_RDONLY
)
{
if
(
*
mount_flags
&
MS_RDONLY
)
{
/* remount rea
n
-only */
/* remount rea
d
-only */
if
(
s
->
s_flags
&
MS_RDONLY
)
if
(
s
->
s_flags
&
MS_RDONLY
)
/* it is read-only already */
/* it is read-only already */
return
0
;
return
0
;
...
@@ -732,6 +732,10 @@ static int reiserfs_remount (struct super_block * s, int * mount_flags, char * a
...
@@ -732,6 +732,10 @@ static int reiserfs_remount (struct super_block * s, int * mount_flags, char * a
journal_mark_dirty
(
&
th
,
s
,
SB_BUFFER_WITH_SB
(
s
));
journal_mark_dirty
(
&
th
,
s
,
SB_BUFFER_WITH_SB
(
s
));
s
->
s_dirt
=
0
;
s
->
s_dirt
=
0
;
}
else
{
}
else
{
/* remount read-write */
if
(
!
(
s
->
s_flags
&
MS_RDONLY
))
return
0
;
/* We are read-write already */
REISERFS_SB
(
s
)
->
s_mount_state
=
sb_umount_state
(
rs
)
;
REISERFS_SB
(
s
)
->
s_mount_state
=
sb_umount_state
(
rs
)
;
s
->
s_flags
&=
~
MS_RDONLY
;
/* now it is safe to call journal_begin */
s
->
s_flags
&=
~
MS_RDONLY
;
/* now it is safe to call journal_begin */
journal_begin
(
&
th
,
s
,
10
)
;
journal_begin
(
&
th
,
s
,
10
)
;
...
...
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