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
4575c9cc
Commit
4575c9cc
authored
Apr 18, 2008
by
Chris Mason
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: Scale the bdi ra_pages by the number of devices in the FS
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
9ad6b7bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+3
-1
No files found.
fs/btrfs/disk-io.c
View file @
4575c9cc
...
@@ -932,7 +932,7 @@ static int setup_bdi(struct btrfs_fs_info *info, struct backing_dev_info *bdi)
...
@@ -932,7 +932,7 @@ static int setup_bdi(struct btrfs_fs_info *info, struct backing_dev_info *bdi)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
bdi_init
(
bdi
);
bdi_init
(
bdi
);
#endif
#endif
bdi
->
ra_pages
=
default_backing_dev_info
.
ra_pages
*
4
;
bdi
->
ra_pages
=
default_backing_dev_info
.
ra_pages
;
bdi
->
state
=
0
;
bdi
->
state
=
0
;
bdi
->
capabilities
=
default_backing_dev_info
.
capabilities
;
bdi
->
capabilities
=
default_backing_dev_info
.
capabilities
;
bdi
->
unplug_io_fn
=
btrfs_unplug_io_fn
;
bdi
->
unplug_io_fn
=
btrfs_unplug_io_fn
;
...
@@ -1214,6 +1214,8 @@ struct btrfs_root *open_ctree(struct super_block *sb,
...
@@ -1214,6 +1214,8 @@ struct btrfs_root *open_ctree(struct super_block *sb,
(
unsigned
long
long
)
fs_devices
->
num_devices
);
(
unsigned
long
long
)
fs_devices
->
num_devices
);
goto
fail_sb_buffer
;
goto
fail_sb_buffer
;
}
}
fs_info
->
bdi
.
ra_pages
*=
btrfs_super_num_devices
(
disk_super
);
nodesize
=
btrfs_super_nodesize
(
disk_super
);
nodesize
=
btrfs_super_nodesize
(
disk_super
);
leafsize
=
btrfs_super_leafsize
(
disk_super
);
leafsize
=
btrfs_super_leafsize
(
disk_super
);
sectorsize
=
btrfs_super_sectorsize
(
disk_super
);
sectorsize
=
btrfs_super_sectorsize
(
disk_super
);
...
...
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