summaryrefslogtreecommitdiff
path: root/fs/orangefs/orangefs-dev-proto.h
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2016-01-04 15:05:28 -0500
committerMike Marshall <hubcap@omnibond.com>2016-01-04 16:21:46 -0500
commit7d2214858f137ff5fe20d0fdc2823c12b4b54f46 (patch)
treec269ab6ecb76f691dc20623ea0ffac2ba46ff736 /fs/orangefs/orangefs-dev-proto.h
parentc146c0b87f7cef247744a649f8c1d794d18bfcb7 (diff)
downloadlwn-7d2214858f137ff5fe20d0fdc2823c12b4b54f46.tar.gz
lwn-7d2214858f137ff5fe20d0fdc2823c12b4b54f46.zip
orangefs: Fix some more global namespace pollution.
This only changes the names of things, so there is no functional change. Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-dev-proto.h')
-rw-r--r--fs/orangefs/orangefs-dev-proto.h32
1 files changed, 5 insertions, 27 deletions
diff --git a/fs/orangefs/orangefs-dev-proto.h b/fs/orangefs/orangefs-dev-proto.h
index dc1951dd7045..5a8725a88eac 100644
--- a/fs/orangefs/orangefs-dev-proto.h
+++ b/fs/orangefs/orangefs-dev-proto.h
@@ -51,35 +51,13 @@
#define ORANGEFS_MAX_DEBUG_ARRAY_LEN 0x00000800
/*
- * MAX_DIRENT_COUNT cannot be larger than ORANGEFS_REQ_LIMIT_LISTATTR.
- * The value of ORANGEFS_REQ_LIMIT_LISTATTR has been changed from 113 to 60
- * to accomodate an attribute object with mirrored handles.
- * MAX_DIRENT_COUNT is replaced by MAX_DIRENT_COUNT_READDIR and
- * MAX_DIRENT_COUNT_READDIRPLUS, since readdir doesn't trigger a listattr
- * but readdirplus might.
-*/
-#define MAX_DIRENT_COUNT_READDIR 0x00000060
-#define MAX_DIRENT_COUNT_READDIRPLUS 0x0000003C
+ * The maximum number of directory entries in a single request is 96.
+ * XXX: Why can this not be higher. The client-side code can handle up to 512.
+ * XXX: What happens if we expect more than the client can return?
+ */
+#define ORANGEFS_MAX_DIRENT_COUNT_READDIR 96
#include "upcall.h"
#include "downcall.h"
-/*
- * These macros differ from proto macros in that they don't do any
- * byte-swappings and are used to ensure that kernel-clientcore interactions
- * don't cause any unaligned accesses etc on 64 bit machines
- */
-#ifndef roundup4
-#define roundup4(x) (((x)+3) & ~3)
-#endif
-
-#ifndef roundup8
-#define roundup8(x) (((x)+7) & ~7)
-#endif
-
-struct read_write_x {
- __s64 off;
- __s64 len;
-};
-
#endif