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
51ebc0d3
Commit
51ebc0d3
authored
Jun 09, 2008
by
Jan Engelhardt
Committed by
Chris Mason
Sep 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Btrfs: bdi_init and bdi_destroy come with 2.6.23
Signed-off-by:
Chris Mason
<
chris.mason@oracle.com
>
parent
f819d837
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
fs/btrfs/disk-io.c
fs/btrfs/disk-io.c
+3
-3
No files found.
fs/btrfs/disk-io.c
View file @
51ebc0d3
...
...
@@ -984,7 +984,7 @@ void btrfs_unplug_io_fn(struct backing_dev_info *bdi, struct page *page)
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
);
#endif
bdi
->
ra_pages
=
default_backing_dev_info
.
ra_pages
;
...
...
@@ -1378,7 +1378,7 @@ struct btrfs_root *open_ctree(struct super_block *sb,
kfree
(
extent_root
);
kfree
(
tree_root
);
#if LINUX_VERSION_CODE >
=
KERNEL_VERSION(2,6,23)
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)
bdi_destroy
(
&
fs_info
->
bdi
);
#endif
kfree
(
fs_info
);
...
...
@@ -1645,7 +1645,7 @@ int close_ctree(struct btrfs_root *root)
btrfs_close_devices
(
fs_info
->
fs_devices
);
btrfs_mapping_tree_free
(
&
fs_info
->
mapping_tree
);
#if LINUX_VERSION_CODE >
=
KERNEL_VERSION(2,6,23)
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)
bdi_destroy
(
&
fs_info
->
bdi
);
#endif
...
...
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