(struct alloc_data *)kmem_cache_alloc(ceph_cache->cache, flags);
void *p;
- if (!header)
+ if (!header) {
+ printk(KERN_ERR "%s.%d: failed to allocate %d bytes", fname, line, (int)ceph_cache->alloc_size);
return NULL;
+ }
p = (void *)(header + 1);
{
struct alloc_data *p = kmalloc(size+sizeof(struct alloc_data), flags);
- if (!p)
+ if (!p) {
+ printk(KERN_ERR "%s.%d: failed to allocate %d bytes", fname, line, (int)size);
return NULL;
+ }
bk_init_header(p, size, ALLOC_TYPE_KALLOC);
bk_insert_alloc(p, fname, line, size);