Commit fd5e34d6 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] misc fixes

- bio_release_pages() should have file-local scope.

- don't use spaces in slab names in device mapper, enforce this henceforth
  in kmem_cache_create().

- Fix alpha header leftover from cpumask_t conversion
parent 206cdfbd
......@@ -79,7 +79,7 @@ static __init int local_init(void)
int r;
/* allocate a slab for the dm_ios */
_io_cache = kmem_cache_create("dm io",
_io_cache = kmem_cache_create("dm_io",
sizeof(struct dm_io), 0, 0, NULL, NULL);
if (!_io_cache)
return -ENOMEM;
......
......@@ -564,7 +564,7 @@ void bio_set_pages_dirty(struct bio *bio)
}
}
void bio_release_pages(struct bio *bio)
static void bio_release_pages(struct bio *bio)
{
struct bio_vec *bvec = bio->bi_io_vec;
int i;
......
......@@ -46,7 +46,7 @@ extern struct cpuinfo_alpha cpu_data[NR_CPUS];
#define smp_processor_id() (current_thread_info()->cpu)
extern cpumask_t cpu_present_mask;
extern cpumask_t long cpu_online_map;
extern cpumask_t cpu_online_map;
extern int smp_num_cpus;
#define cpu_possible(cpu) cpu_isset(cpu, cpu_present_mask)
......
......@@ -1042,6 +1042,7 @@ kmem_cache_create (const char *name, size_t size, size_t offset,
BUG();
#if DEBUG
WARN_ON(strchr(name, ' ')); /* It confuses parsers */
if ((flags & SLAB_DEBUG_INITIAL) && !ctor) {
/* No constructor, but inital state check requested */
printk("%sNo con, but init state check requested - %s\n", func_nm, name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment