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
e9fe395e
Commit
e9fe395e
authored
Aug 29, 2007
by
Yan
Committed by
David Woodhouse
Aug 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Fix oopsen in extent_tree.c during enospc
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
4b82d6e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
fs/btrfs/extent-tree.c
fs/btrfs/extent-tree.c
+2
-3
No files found.
fs/btrfs/extent-tree.c
View file @
e9fe395e
...
@@ -244,7 +244,7 @@ struct btrfs_block_group_cache *btrfs_find_block_group(struct btrfs_root *root,
...
@@ -244,7 +244,7 @@ struct btrfs_block_group_cache *btrfs_find_block_group(struct btrfs_root *root,
if
(
search_start
)
{
if
(
search_start
)
{
struct
btrfs_block_group_cache
*
shint
;
struct
btrfs_block_group_cache
*
shint
;
shint
=
btrfs_lookup_block_group
(
info
,
search_start
);
shint
=
btrfs_lookup_block_group
(
info
,
search_start
);
if
(
shint
->
data
==
data
)
{
if
(
shint
&&
shint
->
data
==
data
)
{
used
=
btrfs_block_group_used
(
&
shint
->
item
);
used
=
btrfs_block_group_used
(
&
shint
->
item
);
if
(
used
+
shint
->
pinned
<
if
(
used
+
shint
->
pinned
<
div_factor
(
shint
->
key
.
offset
,
factor
))
{
div_factor
(
shint
->
key
.
offset
,
factor
))
{
...
@@ -1255,8 +1255,7 @@ struct buffer_head *btrfs_alloc_free_block(struct btrfs_trans_handle *trans,
...
@@ -1255,8 +1255,7 @@ struct buffer_head *btrfs_alloc_free_block(struct btrfs_trans_handle *trans,
struct
buffer_head
*
buf
;
struct
buffer_head
*
buf
;
ret
=
btrfs_alloc_extent
(
trans
,
root
,
root
->
root_key
.
objectid
,
ret
=
btrfs_alloc_extent
(
trans
,
root
,
root
->
root_key
.
objectid
,
1
,
empty_size
,
hint
,
1
,
empty_size
,
hint
,
(
u64
)
-
1
,
&
ins
,
0
);
(
unsigned
long
)
-
1
,
&
ins
,
0
);
if
(
ret
)
{
if
(
ret
)
{
BUG_ON
(
ret
>
0
);
BUG_ON
(
ret
>
0
);
return
ERR_PTR
(
ret
);
return
ERR_PTR
(
ret
);
...
...
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