]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: remove remaining #include/#ifdef cruft from ceph_fs.h
authorSage Weil <sage@newdream.net>
Wed, 22 Oct 2008 17:54:44 +0000 (10:54 -0700)
committerSage Weil <sage@newdream.net>
Wed, 22 Oct 2008 17:54:44 +0000 (10:54 -0700)
src/include/ceph_fs.h
src/kernel/ioctl.h
src/kernel/mdsmap.h
src/kernel/messenger.h
src/kernel/osd_client.h
src/kernel/osdmap.h
src/kernel/super.h
src/kernel/types.h

index 3ee1c8e3de31e7503337fa20166d021e468bba04..3b4ce0456c278edbcb13da13c06ed068b66744fa 100644 (file)
@@ -1,27 +1,26 @@
-/* ceph_fs.h
+/*
+ * ceph_fs.h - Ceph constants and data types to share between kernel and
+ * user space.
  *
- * C data types to share between kernel and userspace.
+ * LGPL2
  */
 
 #ifndef _FS_CEPH_CEPH_FS_H
 #define _FS_CEPH_CEPH_FS_H
 
-#ifdef __KERNEL__
-# include <linux/in.h>
-# include <linux/types.h>
-# include <asm/fcntl.h>
-# include <linux/string.h>
-#endif
-
 
 #define CEPH_MON_PORT 12345
-#define CEPH_FILE_MAX_SIZE (1ULL << 40) /* 1 TB */
 
+/*
+ * Max file size is a policy choice; in reality we are limited
+ * by 2^64.
+ */
+#define CEPH_FILE_MAX_SIZE (1ULL << 40)   /* 1 TB */
 
 /*
  * tcp connection banner.  include a protocol version. and adjust
- * whenever the wire protocol changes.  try to keep this string the
- * same length.
+ * whenever the wire protocol changes.  try to keep this string length
+ * constant.
  */
 #define CEPH_BANNER "ceph 004\n"
 #define CEPH_BANNER_MAX_LEN 30
index 3420a8cdeb8aeb62bc13bbc22fa4ab48600b997c..537c27bf05c0f899b4e1214e9ed1be97d8210200 100644 (file)
@@ -2,7 +2,7 @@
 #define FS_CEPH_IOCTL_H
 
 #include <linux/ioctl.h>
-#include "ceph_fs.h"
+#include "types.h"
 
 #define CEPH_IOCTL_MAGIC 0x97
 
index 6ac39a4526177907856c8afe61683086cadf952d..e7a06ea911e4fafe5385d0ad02faa61624b61fe2 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _FS_CEPH_MDSMAP_H
 #define _FS_CEPH_MDSMAP_H
 
-#include "ceph_fs.h"
+#include "types.h"
 
 /*
  * mds map
index 34de075c1369cd8c2b238e4926c37886bbaf7400..12097097df44234336ee7eb4ec2d95c7365600e5 100644 (file)
@@ -9,7 +9,7 @@
 #include <linux/version.h>
 #include <linux/workqueue.h>
 
-#include "ceph_fs.h"
+#include "types.h"
 
 /*
  * Ceph uses the messenger to exchange ceph_msg messages with
index 2e16a81e852c2a16c6c54478d5a9b9baf402b348..18e36aa1905baa6ef2f6945dd14c835aae6efef1 100644 (file)
@@ -4,7 +4,6 @@
 #include <linux/radix-tree.h>
 #include <linux/completion.h>
 
-#include "ceph_fs.h"
 #include "types.h"
 #include "osdmap.h"
 
index ba00e83f3ac3e2cf3e0156df5bd6cda942316032..032216e367ad3838fbf8986bb59e430454b7b92f 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _FS_CEPH_OSDMAP_H
 #define _FS_CEPH_OSDMAP_H
 
-#include "ceph_fs.h"
+#include "types.h"
 #include "crush/crush.h"
 
 /*
index 23b1d313f8a6cafc20a26a2d84c40e1e211b8bd4..656ba0945a1ed5d8ffae04fbeb953642347b9bad 100644 (file)
@@ -10,9 +10,8 @@
 #include <linux/sysfs.h>
 #include <linux/backing-dev.h>
 
-#include "ceph_fs.h"
-#include "ceph_debug.h"
 #include "types.h"
+#include "ceph_debug.h"
 #include "messenger.h"
 #include "mon_client.h"
 #include "mds_client.h"
index 3963f0cab219318104e3444308ff618aaab97e4c..ce6eeed9b0f8333e10e60af77fcac6f82481a207 100644 (file)
@@ -1,6 +1,14 @@
 #ifndef _FS_CEPH_TYPES_H
 #define _FS_CEPH_TYPES_H
 
+/* needed before including ceph_fs.h */
+#include <linux/in.h>
+#include <linux/types.h>
+#include <asm/fcntl.h>
+#include <linux/string.h>
+
+#include "ceph_fs.h"
+
 /*
  * Identify inodes by both their ino and snapshot id (a u64).
  */