2 blockgroup_lock.h | 4 +++-
3 percpu_counter.h | 4 ++++
4 2 files changed, 7 insertions(+), 1 deletion(-)
7 Index: linux-2.6.6/include/linux/percpu_counter.h
8 ===================================================================
9 --- linux-2.6.6.orig/include/linux/percpu_counter.h 2004-04-04 11:37:23.000000000 +0800
10 +++ linux-2.6.6/include/linux/percpu_counter.h 2004-05-22 16:08:16.000000000 +0800
13 * WARNING: these things are HUGE. 4 kbytes per counter on 32-way P4.
15 +#ifndef _LINUX_PERCPU_COUNTER_H
16 +#define _LINUX_PERCPU_COUNTER_H
18 #include <linux/config.h>
19 #include <linux/spinlock.h>
20 @@ -101,3 +103,5 @@ static inline void percpu_counter_dec(st
22 percpu_counter_mod(fbc, -1);
25 +#endif /* _LINUX_PERCPU_COUNTER_H */
26 Index: linux-2.6.6/include/linux/blockgroup_lock.h
27 ===================================================================
28 --- linux-2.6.6.orig/include/linux/blockgroup_lock.h 2004-04-04 11:36:26.000000000 +0800
29 +++ linux-2.6.6/include/linux/blockgroup_lock.h 2004-05-22 16:08:45.000000000 +0800
32 * Simple hashed spinlocking.
34 +#ifndef _LINUX_BLOCKGROUP_LOCK_H
35 +#define _LINUX_BLOCKGROUP_LOCK_H
37 #include <linux/config.h>
38 #include <linux/spinlock.h>
39 @@ -55,4 +57,4 @@ static inline void bgl_lock_init(struct
40 #define sb_bgl_lock(sb, block_group) \
41 (&(sb)->s_blockgroup_lock.locks[(block_group) & (NR_BG_LOCKS-1)].lock)