summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@fs.tum.de>2004-07-13 19:26:31 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-07-13 19:26:31 -0700
commitfa4d4c06eedd8dee3fc82ec755fadb80bcf8a28e (patch)
tree4c6157e0c0d6dfc7c25672a919f0f6d24bf5f190 /include/linux
parente9fb2fcd2b409ac149961c0ea99a43d57aa71f67 (diff)
[PATCH] #ifndef guard percpu_counter.h and blockgroup_lock.h
Insert header guards to allow possible multiple inclusion for include/linux/percpu_counter.h and include/linux/blockgroup_lock.h Signed-off-by: Adrian Bunk <bunk@fs.tum.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/blockgroup_lock.h4
-rw-r--r--include/linux/percpu_counter.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/blockgroup_lock.h b/include/linux/blockgroup_lock.h
index 87a890c4a0f8..0137ee5dd43c 100644
--- a/include/linux/blockgroup_lock.h
+++ b/include/linux/blockgroup_lock.h
@@ -1,3 +1,5 @@
+#ifndef _LINUX_BLOCKGROUP_LOCK_H
+#define _LINUX_BLOCKGROUP_LOCK_H
/*
* Per-blockgroup locking for ext2 and ext3.
*
@@ -55,4 +57,4 @@ static inline void bgl_lock_init(struct blockgroup_lock *bgl)
#define sb_bgl_lock(sb, block_group) \
(&(sb)->s_blockgroup_lock.locks[(block_group) & (NR_BG_LOCKS-1)].lock)
-
+#endif
diff --git a/include/linux/percpu_counter.h b/include/linux/percpu_counter.h
index 594f564e031a..bd6708e2c027 100644
--- a/include/linux/percpu_counter.h
+++ b/include/linux/percpu_counter.h
@@ -1,3 +1,5 @@
+#ifndef _LINUX_PERCPU_COUNTER_H
+#define _LINUX_PERCPU_COUNTER_H
/*
* A simple "approximate counter" for use in ext2 and ext3 superblocks.
*
@@ -101,3 +103,5 @@ static inline void percpu_counter_dec(struct percpu_counter *fbc)
{
percpu_counter_mod(fbc, -1);
}
+
+#endif /* _LINUX_PERCPU_COUNTER_H */