Commit 2ad69038 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] misc fixes

- Add comment about slab ctor behaviour (Ingo Oeser)

- mm/slab.c:fprob() shows up in profiles a lot.  Rename it to something more
  meaningful.

- fatfs printk warning fix (Randy Dunlap)

- give the the time interpolator list and lock file-static scope (hch)
parent 7807eb6a
......@@ -311,7 +311,7 @@ int fat__get_entry(struct inode *dir, loff_t *pos,struct buffer_head **bh,
*bh = sb_bread(sb, phys);
if (*bh == NULL) {
printk(KERN_ERR "FAT: Directory bread(block %llu) failed\n",
phys);
(unsigned long long)phys);
/* skip this block */
*pos = (iblock + 1) << sb->s_blocksize_bits;
goto next;
......
......@@ -1232,8 +1232,8 @@ spinlock_t last_nsec_offset_lock = SPIN_LOCK_UNLOCKED;
#endif
struct time_interpolator *time_interpolator;
struct time_interpolator *time_interpolator_list;
spinlock_t time_interpolator_lock = SPIN_LOCK_UNLOCKED;
static struct time_interpolator *time_interpolator_list;
static spinlock_t time_interpolator_lock = SPIN_LOCK_UNLOCKED;
static inline int
is_better_time_interpolator(struct time_interpolator *new)
......
......@@ -25,6 +25,10 @@
* page long) and always contiguous), and each slab contains multiple
* initialized objects.
*
* This means, that your constructor is used only for newly allocated
* slabs and you must pass objects with the same intializations to
* kmem_cache_free.
*
* Each cache can only support one memory type (GFP_DMA, GFP_HIGHMEM,
* normal). If you need a special memory type, then must create a new
* cache for that memory type.
......@@ -782,7 +786,7 @@ static void poison_obj(kmem_cache_t *cachep, void *addr, unsigned char val)
*(unsigned char *)(addr+size-1) = POISON_END;
}
static void *fprob(unsigned char* addr, unsigned int size)
static void *scan_poisoned_obj(unsigned char* addr, unsigned int size)
{
unsigned char *end;
......@@ -808,7 +812,7 @@ static void check_poison_obj(kmem_cache_t *cachep, void *addr)
if (cachep->flags & SLAB_STORE_USER) {
size -= BYTES_PER_WORD;
}
end = fprob(addr, size);
end = scan_poisoned_obj(addr, size);
if (end) {
int s;
printk(KERN_ERR "Slab corruption: start=%p, expend=%p, "
......
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