revoke.c (f7f4bccb729844a0fa873e224e3a6f7eeed095bb) | revoke.c (a920e9416b3469994860ab552dfd7fd5a5aff162) |
---|---|
1/* 2 * linux/fs/revoke.c 3 * 4 * Written by Stephen C. Tweedie <sct@redhat.com>, 2000 5 * 6 * Copyright 2000 Red Hat corp --- All Rights Reserved 7 * 8 * This file is part of the Linux kernel and is made available under --- 154 unchanged lines hidden (view full) --- 163 record = (struct jbd2_revoke_record_s *) record->hash.next; 164 } 165 spin_unlock(&journal->j_revoke_lock); 166 return NULL; 167} 168 169int __init jbd2_journal_init_revoke_caches(void) 170{ | 1/* 2 * linux/fs/revoke.c 3 * 4 * Written by Stephen C. Tweedie <sct@redhat.com>, 2000 5 * 6 * Copyright 2000 Red Hat corp --- All Rights Reserved 7 * 8 * This file is part of the Linux kernel and is made available under --- 154 unchanged lines hidden (view full) --- 163 record = (struct jbd2_revoke_record_s *) record->hash.next; 164 } 165 spin_unlock(&journal->j_revoke_lock); 166 return NULL; 167} 168 169int __init jbd2_journal_init_revoke_caches(void) 170{ |
171 jbd2_revoke_record_cache = kmem_cache_create("revoke_record", | 171 jbd2_revoke_record_cache = kmem_cache_create("jbd2_revoke_record", |
172 sizeof(struct jbd2_revoke_record_s), 173 0, SLAB_HWCACHE_ALIGN, NULL, NULL); 174 if (jbd2_revoke_record_cache == 0) 175 return -ENOMEM; 176 | 172 sizeof(struct jbd2_revoke_record_s), 173 0, SLAB_HWCACHE_ALIGN, NULL, NULL); 174 if (jbd2_revoke_record_cache == 0) 175 return -ENOMEM; 176 |
177 jbd2_revoke_table_cache = kmem_cache_create("revoke_table", | 177 jbd2_revoke_table_cache = kmem_cache_create("jbd2_revoke_table", |
178 sizeof(struct jbd2_revoke_table_s), 179 0, 0, NULL, NULL); 180 if (jbd2_revoke_table_cache == 0) { 181 kmem_cache_destroy(jbd2_revoke_record_cache); 182 jbd2_revoke_record_cache = NULL; 183 return -ENOMEM; 184 } 185 return 0; --- 518 unchanged lines hidden --- | 178 sizeof(struct jbd2_revoke_table_s), 179 0, 0, NULL, NULL); 180 if (jbd2_revoke_table_cache == 0) { 181 kmem_cache_destroy(jbd2_revoke_record_cache); 182 jbd2_revoke_record_cache = NULL; 183 return -ENOMEM; 184 } 185 return 0; --- 518 unchanged lines hidden --- |