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
8e8a1e31
Commit
8e8a1e31
authored
Jul 24, 2008
by
Josef Bacik
Committed by
Chris Mason
Sep 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Fix a few functions that exit without stopping their transaction
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
7b128766
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
fs/btrfs/extent-tree.c
fs/btrfs/extent-tree.c
+3
-1
fs/btrfs/ioctl.c
fs/btrfs/ioctl.c
+4
-2
No files found.
fs/btrfs/extent-tree.c
View file @
8e8a1e31
...
...
@@ -3275,8 +3275,10 @@ int btrfs_shrink_extent_tree(struct btrfs_root *root, u64 shrink_start)
ret
=
btrfs_search_slot
(
trans
,
root
,
&
key
,
path
,
-
1
,
1
);
if
(
ret
>
0
)
ret
=
-
EIO
;
if
(
ret
<
0
)
if
(
ret
<
0
)
{
btrfs_end_transaction
(
trans
,
root
);
goto
out
;
}
clear_extent_bits
(
&
info
->
block_group_cache
,
key
.
objectid
,
key
.
objectid
+
key
.
offset
-
1
,
...
...
fs/btrfs/ioctl.c
View file @
8e8a1e31
...
...
@@ -78,8 +78,10 @@ static noinline int create_subvol(struct btrfs_root *root, char *name,
leaf
=
btrfs_alloc_free_block
(
trans
,
root
,
root
->
leafsize
,
objectid
,
trans
->
transid
,
0
,
0
,
0
,
0
);
if
(
IS_ERR
(
leaf
))
return
PTR_ERR
(
leaf
);
if
(
IS_ERR
(
leaf
))
{
ret
=
PTR_ERR
(
leaf
);
goto
fail
;
}
btrfs_set_header_nritems
(
leaf
,
0
);
btrfs_set_header_level
(
leaf
,
0
);
...
...
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