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
28b8bb9e
Commit
28b8bb9e
authored
Apr 27, 2007
by
Chris Mason
Committed by
David Woodhouse
Apr 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: allocator tweaks
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
cd1bc465
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+0
-3
fs/btrfs/extent-tree.c
fs/btrfs/extent-tree.c
+5
-2
No files found.
fs/btrfs/disk-io.c
View file @
28b8bb9e
...
...
@@ -94,9 +94,6 @@ struct buffer_head *btrfs_find_tree_block(struct btrfs_root *root, u64 blocknr)
}
while
(
bh
!=
head
);
out_unlock:
unlock_page
(
page
);
if
(
ret
)
{
touch_buffer
(
ret
);
}
page_cache_release
(
page
);
return
ret
;
}
...
...
fs/btrfs/extent-tree.c
View file @
28b8bb9e
...
...
@@ -311,7 +311,10 @@ int btrfs_finish_extent_commit(struct btrfs_trans_handle *trans, struct
clear_radix_bit
(
pinned_radix
,
gang
[
i
]);
}
}
root
->
fs_info
->
block_group_cache
=
NULL
;
if
(
root
->
fs_info
->
block_group_cache
)
{
root
->
fs_info
->
block_group_cache
->
last_alloc
=
root
->
fs_info
->
block_group_cache
->
first_free
;
}
return
0
;
}
...
...
@@ -578,7 +581,7 @@ static int find_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root
if
(
last_block
<
search_start
)
last_block
=
search_start
;
hole_size
=
key
.
objectid
-
last_block
;
if
(
hole_size
>
num_blocks
)
{
if
(
hole_size
>
=
num_blocks
)
{
ins
->
objectid
=
last_block
;
ins
->
offset
=
hole_size
;
goto
check_pending
;
...
...
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