]> err.no Git - linux-2.6/commitdiff
Fix quota.h includes
authorMatthew Wilcox <matthew@wil.cx>
Tue, 26 Feb 2008 14:53:20 +0000 (09:53 -0500)
committerMatthew Wilcox <willy@linux.intel.com>
Thu, 17 Apr 2008 14:42:14 +0000 (10:42 -0400)
quota.h currently relies on asm/semaphore.h (through some chain; it
doesn't actually include semaphore.h itself) to include wait.h.  As
well as being bad practice to rely on an implicit include, subsequent
patches will break this.  While I'm in this file, add atomic.h and
list.h, and sort the list of includes.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
include/linux/quota.h

index 6e0393a5b2eafd4c98ec08fae1a0d83372a03672..eb560d031acd16de3209e175dddae4dc4de718e7 100644 (file)
@@ -160,14 +160,18 @@ enum {
 
 
 #ifdef __KERNEL__
-#include <linux/spinlock.h>
-#include <linux/rwsem.h>
+#include <linux/list.h>
 #include <linux/mutex.h>
+#include <linux/rwsem.h>
+#include <linux/spinlock.h>
+#include <linux/wait.h>
 
 #include <linux/dqblk_xfs.h>
 #include <linux/dqblk_v1.h>
 #include <linux/dqblk_v2.h>
 
+#include <asm/atomic.h>
+
 extern spinlock_t dq_data_lock;
 
 /* Maximal numbers of writes for quota operation (insert/delete/update)