]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
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 62f63fb0c4c8d6cd54c8c798e5d7239408d45d34..00a0c81708168c0e69f2119c331bf9ae426ff869 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 43011b69297c39adb95e9afbfae4990e17620fe3..f321b578edeb452358497e832815d6cae6b36886 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