Orangefs: optimize boilerplate code.
authorMike Marshall <hubcap@omnibond.com>
Wed, 6 Apr 2016 15:19:37 +0000 (11:19 -0400)
committerMike Marshall <hubcap@omnibond.com>
Fri, 8 Apr 2016 18:08:27 +0000 (14:08 -0400)
commita9bb3ba81fba1750139654360cb716ab093103b0
tree98483c708424a6aa36a66a823d6e90fc9102840f
parent2d09a2ca6a6c66d765458df2653f888c4a481c81
Orangefs: optimize boilerplate code.

Suggested by David Binderman <dcb314@hotmail.com>
The former can potentially be a performance win over the latter.

memcpy(d, s, len);
memset(d+len, c, size-len);

memset(d, c, size);
memcpy(d, s, len);

Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/protocol.h
fs/orangefs/xattr.c