aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/orangefs/orangefs-kernel.h
diff options
context:
space:
mode:
authorMartin Brandenburg <martin@omnibond.com>2015-12-15 14:22:06 -0500
committerMike Marshall <hubcap@omnibond.com>2015-12-17 14:33:38 -0500
commita762ae6dc5a615f18b5f0fe54a0b8551e02e19d0 (patch)
treece3d9a461b4530a0fc104609d9246c5a5212b80a /fs/orangefs/orangefs-kernel.h
parentOrangefs: do not finalize bufmap if it was never initialized. (diff)
downloadwireguard-linux-a762ae6dc5a615f18b5f0fe54a0b8551e02e19d0.tar.xz
wireguard-linux-a762ae6dc5a615f18b5f0fe54a0b8551e02e19d0.zip
orangefs: Remove ``aligned'' upcall and downcall length macros.
There was previously MAX_ALIGNED_DEV_REQ_(UP|DOWN)SIZE macros which evaluated to MAX_DEV_REQ_(UP|DOWN)SIZE+8. As it is unclear what this is for, other than creating a situation where we accept more data than we can parse, it is removed. Signed-off-by: Mike Marshall <hubcap@omnibond.com> Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Diffstat (limited to 'fs/orangefs/orangefs-kernel.h')
-rw-r--r--fs/orangefs/orangefs-kernel.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/fs/orangefs/orangefs-kernel.h b/fs/orangefs/orangefs-kernel.h
index 840872389fc5..c337a52eb639 100644
--- a/fs/orangefs/orangefs-kernel.h
+++ b/fs/orangefs/orangefs-kernel.h
@@ -80,29 +80,11 @@ sizeof(__u64) + sizeof(struct orangefs_upcall_s))
#define MAX_DEV_REQ_DOWNSIZE (2*sizeof(__s32) + \
sizeof(__u64) + sizeof(struct orangefs_downcall_s))
-#define BITS_PER_LONG_DIV_8 (BITS_PER_LONG >> 3)
-
/* borrowed from irda.h */
#ifndef MSECS_TO_JIFFIES
#define MSECS_TO_JIFFIES(ms) (((ms)*HZ+999)/1000)
#endif
-#define MAX_ALIGNED_DEV_REQ_UPSIZE \
- (MAX_DEV_REQ_UPSIZE + \
- ((((MAX_DEV_REQ_UPSIZE / \
- (BITS_PER_LONG_DIV_8)) * \
- (BITS_PER_LONG_DIV_8)) + \
- (BITS_PER_LONG_DIV_8)) - \
- MAX_DEV_REQ_UPSIZE))
-
-#define MAX_ALIGNED_DEV_REQ_DOWNSIZE \
- (MAX_DEV_REQ_DOWNSIZE + \
- ((((MAX_DEV_REQ_DOWNSIZE / \
- (BITS_PER_LONG_DIV_8)) * \
- (BITS_PER_LONG_DIV_8)) + \
- (BITS_PER_LONG_DIV_8)) - \
- MAX_DEV_REQ_DOWNSIZE))
-
/*
* valid orangefs kernel operation states
*