]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Btrfs: bdi_init and bdi_destroy come with 2.6.23
authorJan Engelhardt <jengelh@medozas.de>
Tue, 10 Jun 2008 02:19:40 +0000 (22:19 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:04:03 +0000 (11:04 -0400)
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c

index 016c0c0226ed20a60a1fb0922a1b3df013d70511..3805e7eab82da3886e7d5231f7ba1f6a563fdba9 100644 (file)
@@ -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 @@ fail:
 
        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