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
6bdfbb7b
Commit
6bdfbb7b
authored
Jun 19, 2003
by
Nathan Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[XFS] Fix an assert in log init code
SGI Modid: 2.5.x-xfs:slinx:149646a
parent
eada0a55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
fs/xfs/xfs_log.c
fs/xfs/xfs_log.c
+4
-1
No files found.
fs/xfs/xfs_log.c
View file @
6bdfbb7b
...
@@ -1207,7 +1207,10 @@ xlog_alloc_log(xfs_mount_t *mp,
...
@@ -1207,7 +1207,10 @@ xlog_alloc_log(xfs_mount_t *mp,
if
(
XFS_SB_VERSION_HASSECTOR
(
&
mp
->
m_sb
))
{
if
(
XFS_SB_VERSION_HASSECTOR
(
&
mp
->
m_sb
))
{
log
->
l_sectbb_log
=
mp
->
m_sb
.
sb_logsectlog
-
BBSHIFT
;
log
->
l_sectbb_log
=
mp
->
m_sb
.
sb_logsectlog
-
BBSHIFT
;
ASSERT
(
log
->
l_sectbb_log
<=
mp
->
m_sectbb_log
);
ASSERT
(
log
->
l_sectbb_log
<=
mp
->
m_sectbb_log
);
ASSERT
(
XFS_SB_VERSION_HASLOGV2
(
&
mp
->
m_sb
));
/* for larger sector sizes, must have v2 or external log */
ASSERT
(
log
->
l_sectbb_log
==
0
||
log
->
l_logBBstart
==
0
||
XFS_SB_VERSION_HASLOGV2
(
&
mp
->
m_sb
));
ASSERT
(
mp
->
m_sb
.
sb_logsectlog
>=
BBSHIFT
);
ASSERT
(
mp
->
m_sb
.
sb_logsectlog
>=
BBSHIFT
);
}
}
log
->
l_sectbb_mask
=
(
1
<<
log
->
l_sectbb_log
)
-
1
;
log
->
l_sectbb_mask
=
(
1
<<
log
->
l_sectbb_log
)
-
1
;
...
...
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