Commit fa4d4c06 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[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: default avatarAdrian Bunk <bunk@fs.tum.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e9fb2fcd
#ifndef _LINUX_BLOCKGROUP_LOCK_H
#define _LINUX_BLOCKGROUP_LOCK_H
/* /*
* Per-blockgroup locking for ext2 and ext3. * Per-blockgroup locking for ext2 and ext3.
* *
...@@ -55,4 +57,4 @@ static inline void bgl_lock_init(struct blockgroup_lock *bgl) ...@@ -55,4 +57,4 @@ static inline void bgl_lock_init(struct blockgroup_lock *bgl)
#define sb_bgl_lock(sb, block_group) \ #define sb_bgl_lock(sb, block_group) \
(&(sb)->s_blockgroup_lock.locks[(block_group) & (NR_BG_LOCKS-1)].lock) (&(sb)->s_blockgroup_lock.locks[(block_group) & (NR_BG_LOCKS-1)].lock)
#endif
#ifndef _LINUX_PERCPU_COUNTER_H
#define _LINUX_PERCPU_COUNTER_H
/* /*
* A simple "approximate counter" for use in ext2 and ext3 superblocks. * 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) ...@@ -101,3 +103,5 @@ static inline void percpu_counter_dec(struct percpu_counter *fbc)
{ {
percpu_counter_mod(fbc, -1); percpu_counter_mod(fbc, -1);
} }
#endif /* _LINUX_PERCPU_COUNTER_H */
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