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
9cf7792d
Commit
9cf7792d
authored
Jun 30, 2004
by
Dave Kleikamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JFS: Error path released metadata page it shouldn't have
Signed-off-by:
Dave Kleikamp
<
shaggy@austin.ibm.com
>
parent
be85adc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
17 deletions
+8
-17
fs/jfs/jfs_xtree.c
fs/jfs/jfs_xtree.c
+8
-17
No files found.
fs/jfs/jfs_xtree.c
View file @
9cf7792d
...
...
@@ -1071,8 +1071,10 @@ xtSplitUp(tid_t tid,
*/
/* get/pin the parent page <sp> */
XT_GETPAGE
(
ip
,
parent
->
bn
,
smp
,
PSIZE
,
sp
,
rc
);
if
(
rc
)
goto
errout2
;
if
(
rc
)
{
XT_PUTPAGE
(
rcmp
);
return
rc
;
}
/*
* The new key entry goes ONE AFTER the index of parent entry,
...
...
@@ -1106,8 +1108,10 @@ xtSplitUp(tid_t tid,
rc
=
(
sp
->
header
.
flag
&
BT_ROOT
)
?
xtSplitRoot
(
tid
,
ip
,
split
,
&
rmp
)
:
xtSplitPage
(
tid
,
ip
,
split
,
&
rmp
,
&
rbn
);
if
(
rc
)
goto
errout1
;
if
(
rc
)
{
XT_PUTPAGE
(
smp
);
return
rc
;
}
XT_PUTPAGE
(
smp
);
/* keep new child page <rp> pinned */
...
...
@@ -1170,19 +1174,6 @@ xtSplitUp(tid_t tid,
XT_PUTPAGE
(
rmp
);
return
0
;
/*
* If something fails in the above loop we were already walking back
* up the tree and the tree is now inconsistent.
* release all pages we're holding.
*/
errout1:
XT_PUTPAGE
(
smp
);
errout2:
XT_PUTPAGE
(
rcmp
);
return
rc
;
}
...
...
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