Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
448d640b
Commit
448d640b
authored
Nov 27, 2007
by
Chris Mason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Fine tune the btree writeback exclusion some more
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
8790bad7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+4
-0
fs/btrfs/file.c
fs/btrfs/file.c
+2
-1
No files found.
fs/btrfs/disk-io.c
View file @
448d640b
...
@@ -214,6 +214,10 @@ static int btree_writepages(struct address_space *mapping,
...
@@ -214,6 +214,10 @@ static int btree_writepages(struct address_space *mapping,
u64
num_dirty
;
u64
num_dirty
;
u64
start
=
0
;
u64
start
=
0
;
unsigned
long
thresh
=
96
*
1024
*
1024
;
unsigned
long
thresh
=
96
*
1024
*
1024
;
if
(
wbc
->
for_kupdate
)
return
0
;
num_dirty
=
count_range_bits
(
tree
,
&
start
,
thresh
,
EXTENT_DIRTY
);
num_dirty
=
count_range_bits
(
tree
,
&
start
,
thresh
,
EXTENT_DIRTY
);
if
(
num_dirty
<
thresh
)
{
if
(
num_dirty
<
thresh
)
{
return
0
;
return
0
;
...
...
fs/btrfs/file.c
View file @
448d640b
...
@@ -767,6 +767,7 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf,
...
@@ -767,6 +767,7 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf,
num_written
+=
write_bytes
;
num_written
+=
write_bytes
;
balance_dirty_pages_ratelimited_nr
(
inode
->
i_mapping
,
num_pages
);
balance_dirty_pages_ratelimited_nr
(
inode
->
i_mapping
,
num_pages
);
if
(
num_pages
<
(
root
->
leafsize
>>
PAGE_CACHE_SHIFT
)
+
1
)
btrfs_btree_balance_dirty
(
root
,
1
);
btrfs_btree_balance_dirty
(
root
,
1
);
cond_resched
();
cond_resched
();
}
}
...
...
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