From: Mike Frysinger Date: Tue, 8 May 2007 07:31:51 +0000 (-0700) Subject: hide spinlock in linux/quota.h behind __KERNEL__ X-Git-Tag: v2.6.22-rc1~602 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acd64b737567d88a907bb09d7e982ac5e6ad6a7b;p=linux-2.6 hide spinlock in linux/quota.h behind __KERNEL__ Signed-off-by: Mike Frysinger Acked-by: Jan Kara Cc: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/quota.h b/include/linux/quota.h index 77db80a953..6243982839 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h @@ -44,8 +44,6 @@ typedef __kernel_uid32_t qid_t; /* Type in which we store ids in memory */ typedef __u64 qsize_t; /* Type in which we store sizes */ -extern spinlock_t dq_data_lock; - /* Size of blocks in which are counted size limits */ #define QUOTABLOCK_BITS 10 #define QUOTABLOCK_SIZE (1 << QUOTABLOCK_BITS) @@ -139,6 +137,8 @@ struct if_dqinfo { #include #include +extern spinlock_t dq_data_lock; + /* Maximal numbers of writes for quota operation (insert/delete/update) * (over VFS all formats) */ #define DQUOT_INIT_ALLOC max(V1_INIT_ALLOC, V2_INIT_ALLOC)