Avoid compile error in fs/nfs/unlink.c
authorLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 20 Oct 2007 02:59:18 +0000 (19:59 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 20 Oct 2007 02:59:18 +0000 (19:59 -0700)
Erez Zadok reports that certain configurations fail to build due to
schedule() TASK_[UN]INTERRUPTIBLE not being declared.  Add proper
include files to fix.

Cc: Erez Zadok <ezk@cs.sunysb.edu>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfs/unlink.c

index 6ecd46c967c8bc3073cc3389ec65d32524d23e9d..ce558c2e4d53d5779db00bfe79a6a9744c394865 100644 (file)
@@ -11,7 +11,8 @@
 #include <linux/sunrpc/sched.h>
 #include <linux/sunrpc/clnt.h>
 #include <linux/nfs_fs.h>
-
+#include <linux/sched.h>
+#include <linux/wait.h>
 
 struct nfs_unlinkdata {
        struct hlist_node list;