]> git.wh0rd.org - patches.git/blob - linux-quota-header-spinlock.patch
more random patches. who knows.
[patches.git] / linux-quota-header-spinlock.patch
1 diff --git a/include/linux/quota.h b/include/linux/quota.h
2 index 77db80a..6243982 100644
3 --- a/include/linux/quota.h
4 +++ b/include/linux/quota.h
5 @@ -44,8 +44,6 @@
6 typedef __kernel_uid32_t qid_t; /* Type in which we store ids in memory */
7 typedef __u64 qsize_t; /* Type in which we store sizes */
8
9 -extern spinlock_t dq_data_lock;
10 -
11 /* Size of blocks in which are counted size limits */
12 #define QUOTABLOCK_BITS 10
13 #define QUOTABLOCK_SIZE (1 << QUOTABLOCK_BITS)
14 @@ -139,6 +137,8 @@ struct if_dqinfo {
15 #include <linux/dqblk_v1.h>
16 #include <linux/dqblk_v2.h>
17
18 +extern spinlock_t dq_data_lock;
19 +
20 /* Maximal numbers of writes for quota operation (insert/delete/update)
21 * (over VFS all formats) */
22 #define DQUOT_INIT_ALLOC max(V1_INIT_ALLOC, V2_INIT_ALLOC)