aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-06-09 22:19:40 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:03 -0400
commit51ebc0d3d5cd1a2728068499a8fc1bdb0a581ab5 (patch)
treef7e8d532b95b2b5f0e38913f6c32229228efa09e /fs/btrfs/disk-io.c
parentf819d837eea9829ed6c356fb88cdd0a170cbd947 (diff)
Btrfs: bdi_init and bdi_destroy come with 2.6.23
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 016c0c0226ed..3805e7eab82d 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -984,7 +984,7 @@ void btrfs_unplug_io_fn(struct backing_dev_info *bdi, struct page *page)
984 984
985static int setup_bdi(struct btrfs_fs_info *info, struct backing_dev_info *bdi) 985static int setup_bdi(struct btrfs_fs_info *info, struct backing_dev_info *bdi)
986{ 986{
987#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) 987#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)
988 bdi_init(bdi); 988 bdi_init(bdi);
989#endif 989#endif
990 bdi->ra_pages = default_backing_dev_info.ra_pages; 990 bdi->ra_pages = default_backing_dev_info.ra_pages;
@@ -1378,7 +1378,7 @@ fail:
1378 1378
1379 kfree(extent_root); 1379 kfree(extent_root);
1380 kfree(tree_root); 1380 kfree(tree_root);
1381#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) 1381#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)
1382 bdi_destroy(&fs_info->bdi); 1382 bdi_destroy(&fs_info->bdi);
1383#endif 1383#endif
1384 kfree(fs_info); 1384 kfree(fs_info);
@@ -1645,7 +1645,7 @@ int close_ctree(struct btrfs_root *root)
1645 btrfs_close_devices(fs_info->fs_devices); 1645 btrfs_close_devices(fs_info->fs_devices);
1646 btrfs_mapping_tree_free(&fs_info->mapping_tree); 1646 btrfs_mapping_tree_free(&fs_info->mapping_tree);
1647 1647
1648#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) 1648#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)
1649 bdi_destroy(&fs_info->bdi); 1649 bdi_destroy(&fs_info->bdi);
1650#endif 1650#endif
1651 1651