]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
orangefs: Remove orangefs_backing_dev_info
authorJan Kara <jack@suse.cz>
Thu, 2 Feb 2017 17:34:11 +0000 (18:34 +0100)
committerMike Marshall <hubcap@omnibond.com>
Fri, 3 Feb 2017 19:38:35 +0000 (14:38 -0500)
It is not used anywhere.

CC: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/inode.c
fs/orangefs/orangefs-kernel.h
fs/orangefs/orangefs-mod.c

index ef3b4eb54cf25d62336afe64b24bf24ce421ecf9..462d10933e48b163bdbede6aa0c37a9cdd1ab03a 100644 (file)
@@ -135,12 +135,6 @@ static ssize_t orangefs_direct_IO(struct kiocb *iocb,
        return -EINVAL;
 }
 
-struct backing_dev_info orangefs_backing_dev_info = {
-       .name = "orangefs",
-       .ra_pages = 0,
-       .capabilities = BDI_CAP_NO_ACCT_DIRTY | BDI_CAP_NO_WRITEBACK,
-};
-
 /** ORANGEFS2 implementation of address space operations */
 const struct address_space_operations orangefs_address_operations = {
        .readpage = orangefs_readpage,
index 3bf803d732c5b3702f735c5776cae6d249b85364..70355a9a25969bb681612cee734cf4341afd2428 100644 (file)
@@ -529,7 +529,6 @@ extern spinlock_t orangefs_htable_ops_in_progress_lock;
 extern int hash_table_size;
 
 extern const struct address_space_operations orangefs_address_operations;
-extern struct backing_dev_info orangefs_backing_dev_info;
 extern const struct inode_operations orangefs_file_inode_operations;
 extern const struct file_operations orangefs_file_operations;
 extern const struct inode_operations orangefs_symlink_inode_operations;
index 4113eb0495bf90549daca478dd0f8c5a7940680a..c1b5174cb5a9fd5fa0963c22478f1457503e6657 100644 (file)
@@ -80,11 +80,6 @@ static int __init orangefs_init(void)
        int ret = -1;
        __u32 i = 0;
 
-       ret = bdi_init(&orangefs_backing_dev_info);
-
-       if (ret)
-               return ret;
-
        if (op_timeout_secs < 0)
                op_timeout_secs = 0;
 
@@ -94,7 +89,7 @@ static int __init orangefs_init(void)
        /* initialize global book keeping data structures */
        ret = op_cache_initialize();
        if (ret < 0)
-               goto err;
+               goto out;
 
        ret = orangefs_inode_cache_initialize();
        if (ret < 0)
@@ -181,9 +176,6 @@ cleanup_inode:
 cleanup_op:
        op_cache_finalize();
 
-err:
-       bdi_destroy(&orangefs_backing_dev_info);
-
 out:
        return ret;
 }
@@ -207,8 +199,6 @@ static void __exit orangefs_exit(void)
 
        kfree(orangefs_htable_ops_in_progress);
 
-       bdi_destroy(&orangefs_backing_dev_info);
-
        pr_info("orangefs: module version %s unloaded\n", ORANGEFS_VERSION);
 }