#ifndef guard percpu_counter.h and blockgroup_lock.h
PATCH 1/1 #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
This patch is basically
[6/9] Lustre VFS patches for 2.6
by Oleg Drokin <[email protected]> with the exception that I put the #ifndef's before the initial comments.
Independent of the Lustre discussions this patch seems to be a good idea.
diffstat output:
include/linux/blockgroup_lock.h | 4 +++- include/linux/percpu_counter.h | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-)
Signed-off-by Adrian Bunk <[email protected]>
include/linux/percpu_counter.h renamed from include/linux/percpu_counter.h.old +4 -0
@@ -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 @@ {percpu_counter_mod (fbc,-1 ); } + +#endif /* _LINUX_PERCPU_COUNTER_H */
include/linux/blockgroup_lock.h renamed from include/linux/blockgroup_lock.h.old +3 -1
@@ -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 @@#define sb_bgl_lock (sb, block_group) \ (&(sb)->s_blockgroup_lock.locks[(block_group) & (NR_BG_LOCKS-1)].lock) - +#endif