summaryrefslogtreecommitdiffstats
path: root/fs/orangefs/orangefs-cache.c
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-cache.c
parent90d26aa80861afaee992228d8f0e57cbd06c8d87 (diff)
downloadlinux-a762ae6dc5a615f18b5f0fe54a0b8551e02e19d0.tar.gz
linux-a762ae6dc5a615f18b5f0fe54a0b8551e02e19d0.tar.bz2
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-cache.c')
-rw-r--r--fs/orangefs/orangefs-cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/orangefs/orangefs-cache.c b/fs/orangefs/orangefs-cache.c
index 57e270246e3d..b40f5d74aa97 100644
--- a/fs/orangefs/orangefs-cache.c
+++ b/fs/orangefs/orangefs-cache.c
@@ -166,7 +166,7 @@ void op_release(struct orangefs_kernel_op_s *orangefs_op)
int dev_req_cache_initialize(void)
{
dev_req_cache = kmem_cache_create("orangefs_devreqcache",
- MAX_ALIGNED_DEV_REQ_DOWNSIZE,
+ MAX_DEV_REQ_DOWNSIZE,
0,
ORANGEFS_CACHE_CREATE_FLAGS,
NULL);
@@ -192,7 +192,7 @@ void *dev_req_alloc(void)
if (buffer == NULL)
gossip_err("Failed to allocate from dev_req_cache\n");
else
- memset(buffer, 0, sizeof(MAX_ALIGNED_DEV_REQ_DOWNSIZE));
+ memset(buffer, 0, sizeof(MAX_DEV_REQ_DOWNSIZE));
return buffer;
}