diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-04-23 04:02:05 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-04-23 04:02:05 -0300 |
commit | 394569928e2f17dff4ae367ac700048138e318c7 (patch) | |
tree | c789d2a2d107284e78f6c6558267b6984f518581 /kernel/power/tuxonice_bio_chains.c | |
parent | bdcfd44fb5b5fb8fd660e7f93f1095c507481024 (diff) |
Linux-libre 4.5.2-gnupck-4.5.2-gnu
Diffstat (limited to 'kernel/power/tuxonice_bio_chains.c')
-rw-r--r-- | kernel/power/tuxonice_bio_chains.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/kernel/power/tuxonice_bio_chains.c b/kernel/power/tuxonice_bio_chains.c index 086a5527d..11cd37f77 100644 --- a/kernel/power/tuxonice_bio_chains.c +++ b/kernel/power/tuxonice_bio_chains.c @@ -924,11 +924,14 @@ static int apply_header_reservation(void) return 0; } -static int toi_bio_register_storage(void) +int toi_bio_register_storage(void) { int result = 0; struct toi_module_ops *this_module; + toi_message(TOI_BIO, TOI_VERBOSE, 0, "toi_bio_allocate_storage: " + "Registering storage."); + list_for_each_entry(this_module, &toi_modules, module_list) { if (!this_module->enabled || this_module->type != BIO_ALLOCATOR_MODULE) @@ -962,16 +965,8 @@ int toi_bio_allocate_storage(unsigned long request) int no_free = 0; if (!chain) { - int result = toi_bio_register_storage(); - toi_message(TOI_BIO, TOI_VERBOSE, 0, "toi_bio_allocate_storage: " - "Registering storage."); - if (result) - return 0; - chain = prio_chain_head; - if (!chain) { - printk("TuxOnIce: No storage was registered.\n"); - return 0; - } + printk("TuxOnIce: No storage was registered.\n"); + return 0; } toi_message(TOI_BIO, TOI_VERBOSE, 0, "toi_bio_allocate_storage: " |