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
015a739c
Commit
015a739c
authored
Nov 26, 2007
by
Chris Mason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Handle writeback under high memory pressure better
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
eef1c494
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
fs/btrfs/extent-tree.c
fs/btrfs/extent-tree.c
+1
-1
fs/btrfs/extent_map.c
fs/btrfs/extent_map.c
+12
-0
No files found.
fs/btrfs/extent-tree.c
View file @
015a739c
...
...
@@ -961,7 +961,7 @@ static int find_free_extent(struct btrfs_trans_handle *trans, struct btrfs_root
level
=
btrfs_header_level
(
root
->
node
);
if
(
num_bytes
>=
96
*
1024
*
1024
&&
hint_byte
)
{
if
(
num_bytes
>=
32
*
1024
*
1024
&&
hint_byte
)
{
data
=
BTRFS_BLOCK_GROUP_MIXED
;
}
...
...
fs/btrfs/extent_map.c
View file @
015a739c
...
...
@@ -1861,13 +1861,25 @@ int extent_write_full_page(struct extent_map_tree *tree, struct page *page,
struct
writeback_control
*
wbc
)
{
int
ret
;
struct
address_space
*
mapping
=
page
->
mapping
;
struct
extent_page_data
epd
=
{
.
bio
=
NULL
,
.
tree
=
tree
,
.
get_extent
=
get_extent
,
};
struct
writeback_control
wbc_writepages
=
{
.
bdi
=
wbc
->
bdi
,
.
sync_mode
=
WB_SYNC_NONE
,
.
older_than_this
=
NULL
,
.
nr_to_write
=
64
,
.
range_start
=
page_offset
(
page
)
+
PAGE_CACHE_SIZE
,
.
range_end
=
(
loff_t
)
-
1
,
};
ret
=
__extent_writepage
(
page
,
wbc
,
&
epd
);
write_cache_pages
(
mapping
,
&
wbc_writepages
,
__extent_writepage
,
&
epd
);
if
(
epd
.
bio
)
submit_one_bio
(
WRITE
,
epd
.
bio
);
return
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