diff options
author | Mike Marshall <hubcap@omnibond.com> | 2016-04-06 17:19:37 +0200 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2016-04-08 20:08:27 +0200 |
commit | a9bb3ba81fba1750139654360cb716ab093103b0 (patch) | |
tree | 98483c708424a6aa36a66a823d6e90fc9102840f /fs/orangefs/orangefs-debugfs.c | |
parent | Orangefs: xattr.c cleanup (diff) | |
download | linux-a9bb3ba81fba1750139654360cb716ab093103b0.tar.xz linux-a9bb3ba81fba1750139654360cb716ab093103b0.zip |
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>
Diffstat (limited to 'fs/orangefs/orangefs-debugfs.c')
0 files changed, 0 insertions, 0 deletions