diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-05-08 03:31:51 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 14:15:15 -0400 |
commit | acd64b737567d88a907bb09d7e982ac5e6ad6a7b (patch) | |
tree | 773da21eeebf6cf2c5c19e9498addd9cc9da8802 | |
parent | 6d4d8c0aa255c7b4bdf0fb693ec015b56204bbb3 (diff) |
hide spinlock in linux/quota.h behind __KERNEL__
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Jan Kara <jack@ucw.cz>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | include/linux/quota.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h index 77db80a953d6..62439828395e 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h | |||
@@ -44,8 +44,6 @@ | |||
44 | typedef __kernel_uid32_t qid_t; /* Type in which we store ids in memory */ | 44 | typedef __kernel_uid32_t qid_t; /* Type in which we store ids in memory */ |
45 | typedef __u64 qsize_t; /* Type in which we store sizes */ | 45 | typedef __u64 qsize_t; /* Type in which we store sizes */ |
46 | 46 | ||
47 | extern spinlock_t dq_data_lock; | ||
48 | |||
49 | /* Size of blocks in which are counted size limits */ | 47 | /* Size of blocks in which are counted size limits */ |
50 | #define QUOTABLOCK_BITS 10 | 48 | #define QUOTABLOCK_BITS 10 |
51 | #define QUOTABLOCK_SIZE (1 << QUOTABLOCK_BITS) | 49 | #define QUOTABLOCK_SIZE (1 << QUOTABLOCK_BITS) |
@@ -139,6 +137,8 @@ struct if_dqinfo { | |||
139 | #include <linux/dqblk_v1.h> | 137 | #include <linux/dqblk_v1.h> |
140 | #include <linux/dqblk_v2.h> | 138 | #include <linux/dqblk_v2.h> |
141 | 139 | ||
140 | extern spinlock_t dq_data_lock; | ||
141 | |||
142 | /* Maximal numbers of writes for quota operation (insert/delete/update) | 142 | /* Maximal numbers of writes for quota operation (insert/delete/update) |
143 | * (over VFS all formats) */ | 143 | * (over VFS all formats) */ |
144 | #define DQUOT_INIT_ALLOC max(V1_INIT_ALLOC, V2_INIT_ALLOC) | 144 | #define DQUOT_INIT_ALLOC max(V1_INIT_ALLOC, V2_INIT_ALLOC) |