Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-16118 build: Workaround __write_overflow_field errors
[fs/lustre-release.git]
/
lustre
/
obdclass
/
md_attrs.c
diff --git
a/lustre/obdclass/md_attrs.c
b/lustre/obdclass/md_attrs.c
index
fe8fca5
..
b0a68a0
100644
(file)
--- a/
lustre/obdclass/md_attrs.c
+++ b/
lustre/obdclass/md_attrs.c
@@
-73,8
+73,7
@@
void lustre_loa_init(struct lustre_ost_attrs *loa, const struct lu_fid *fid,
{
BUILD_BUG_ON(sizeof(*loa) != LMA_OLD_SIZE);
- memset(&loa->loa_parent_fid, 0,
- sizeof(*loa) - offsetof(typeof(*loa), loa_parent_fid));
+ memset_startat(loa, 0, loa_parent_fid);
lustre_lma_init(&loa->loa_lma, fid, compat, incompat);
}
EXPORT_SYMBOL(lustre_loa_init);