diff options
Diffstat (limited to 'fs/ocfs2/super.c')
-rw-r--r-- | fs/ocfs2/super.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index f3027c2fe2b6..290d531bed61 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c | |||
@@ -70,8 +70,6 @@ | |||
70 | 70 | ||
71 | static kmem_cache_t *ocfs2_inode_cachep = NULL; | 71 | static kmem_cache_t *ocfs2_inode_cachep = NULL; |
72 | 72 | ||
73 | kmem_cache_t *ocfs2_lock_cache = NULL; | ||
74 | |||
75 | /* OCFS2 needs to schedule several differnt types of work which | 73 | /* OCFS2 needs to schedule several differnt types of work which |
76 | * require cluster locking, disk I/O, recovery waits, etc. Since these | 74 | * require cluster locking, disk I/O, recovery waits, etc. Since these |
77 | * types of work tend to be heavy we avoid using the kernel events | 75 | * types of work tend to be heavy we avoid using the kernel events |
@@ -946,14 +944,6 @@ static int ocfs2_initialize_mem_caches(void) | |||
946 | if (!ocfs2_inode_cachep) | 944 | if (!ocfs2_inode_cachep) |
947 | return -ENOMEM; | 945 | return -ENOMEM; |
948 | 946 | ||
949 | ocfs2_lock_cache = kmem_cache_create("ocfs2_lock", | ||
950 | sizeof(struct ocfs2_journal_lock), | ||
951 | 0, | ||
952 | SLAB_HWCACHE_ALIGN, | ||
953 | NULL, NULL); | ||
954 | if (!ocfs2_lock_cache) | ||
955 | return -ENOMEM; | ||
956 | |||
957 | return 0; | 947 | return 0; |
958 | } | 948 | } |
959 | 949 | ||
@@ -961,11 +951,8 @@ static void ocfs2_free_mem_caches(void) | |||
961 | { | 951 | { |
962 | if (ocfs2_inode_cachep) | 952 | if (ocfs2_inode_cachep) |
963 | kmem_cache_destroy(ocfs2_inode_cachep); | 953 | kmem_cache_destroy(ocfs2_inode_cachep); |
964 | if (ocfs2_lock_cache) | ||
965 | kmem_cache_destroy(ocfs2_lock_cache); | ||
966 | 954 | ||
967 | ocfs2_inode_cachep = NULL; | 955 | ocfs2_inode_cachep = NULL; |
968 | ocfs2_lock_cache = NULL; | ||
969 | } | 956 | } |
970 | 957 | ||
971 | static int ocfs2_get_sector(struct super_block *sb, | 958 | static int ocfs2_get_sector(struct super_block *sb, |