[PATCH] mark dq_list_lock static

From: Christoph Hellwig
Date: Tue Sep 07 2004 - 10:02:13 EST


only used in dq_list_lock these days


--- 1.89/fs/dquot.c 2004-07-11 10:52:11 +02:00
+++ edited/fs/dquot.c 2004-09-07 16:52:21 +02:00
@@ -120,7 +120,7 @@
* i_sem on quota files is special (it's below dqio_sem)
*/

-spinlock_t dq_list_lock = SPIN_LOCK_UNLOCKED;
+static spinlock_t dq_list_lock = SPIN_LOCK_UNLOCKED;
spinlock_t dq_data_lock = SPIN_LOCK_UNLOCKED;

static char *quotatypes[] = INITQFNAMES;
@@ -1792,7 +1792,6 @@
EXPORT_SYMBOL(register_quota_format);
EXPORT_SYMBOL(unregister_quota_format);
EXPORT_SYMBOL(dqstats);
-EXPORT_SYMBOL(dq_list_lock);
EXPORT_SYMBOL(dq_data_lock);
EXPORT_SYMBOL(vfs_quota_on);
EXPORT_SYMBOL(vfs_quota_on_mount);
--- 1.29/include/linux/quota.h 2004-05-10 12:26:52 +02:00
+++ edited/include/linux/quota.h 2004-09-07 13:14:31 +02:00
@@ -45,7 +45,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_list_lock;
extern spinlock_t dq_data_lock;

/* Size of blocks in which are counted size limits */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/