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>
This commit is contained in:
Martin Brandenburg 2015-12-15 14:22:06 -05:00 committed by Mike Marshall
parent 90d26aa808
commit a762ae6dc5
3 changed files with 8 additions and 26 deletions

View file

@ -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;
}