nfsd: Fix independence of a few nfsd related headers
authorBoaz Harrosh <bharrosh@panasas.com>
Thu, 3 Dec 2009 18:28:47 +0000 (20:28 +0200)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 14 Dec 2009 23:12:08 +0000 (18:12 -0500)
An header should be compilation independent, .i.e pull in
any header who's declarations are directly used by this header.
And not let users re-include all it's dependencies all over
again.

[At the end of the day what's the use of a header if it does
 not have more then one user?]

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
include/linux/nfs_xdr.h
include/linux/nfsacl.h

index 62f63fb..00a0c81 100644 (file)
@@ -2,6 +2,7 @@
 #define _LINUX_NFS_XDR_H
 
 #include <linux/nfsacl.h>
+#include <linux/nfs3.h>
 
 /*
  * To change the maximum rsize and wsize supported by the NFS client, adjust
index 43011b6..f321b57 100644 (file)
@@ -29,6 +29,7 @@
 #ifdef __KERNEL__
 
 #include <linux/posix_acl.h>
+#include <linux/sunrpc/xdr.h>
 
 /* Maximum number of ACL entries over NFS */
 #define NFS_ACL_MAX_ENTRIES    1024