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
Kirill Smelkov
linux
Commits
611e7dfb
Commit
611e7dfb
authored
Oct 06, 2003
by
Russell Cattelan
Committed by
Stephen Lord
Oct 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Fix remount,ro path
SGI Modid: 2.5.x-xfs:slinx:159444a
parent
07bd1e13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
fs/xfs/xfs_vfsops.c
fs/xfs/xfs_vfsops.c
+10
-1
No files found.
fs/xfs/xfs_vfsops.c
View file @
611e7dfb
...
...
@@ -603,6 +603,7 @@ xfs_mntupdate(
struct
vfs
*
vfsp
=
bhvtovfs
(
bdp
);
xfs_mount_t
*
mp
=
XFS_BHVTOM
(
bdp
);
int
pincount
,
error
;
int
count
=
0
;
if
(
args
->
flags
&
XFSMNT_NOATIME
)
mp
->
m_flags
|=
XFS_MOUNT_NOATIME
;
...
...
@@ -617,11 +618,19 @@ xfs_mntupdate(
pagebuf_delwri_flush
(
mp
->
m_ddev_targp
,
0
,
NULL
);
xfs_finish_reclaim_all
(
mp
,
0
);
/* This loop must run at least twice.
* The first instance of the loop will flush
* most meta data but that will generate more
* meta data (typically directory updates).
* Which then must be flushed and logged before
* we can write the unmount record.
*/
do
{
VFS_SYNC
(
vfsp
,
REMOUNT_READONLY_FLAGS
,
NULL
,
error
);
pagebuf_delwri_flush
(
mp
->
m_ddev_targp
,
PBDF_WAIT
,
&
pincount
);
}
while
(
pincount
);
if
(
0
==
pincount
)
{
delay
(
50
);
count
++
;
}
}
while
(
count
<
2
);
/* Ok now write out an unmount record */
xfs_log_unmount_write
(
mp
);
...
...
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