Correctly store last manifest key

A copy+paste error led us to overwrite the first
key in the manifest with the last, leaving the
last uninitialized.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2016-12-03 19:20:10 -08:00
parent f3288f27c6
commit d1f36e2165

View File

@@ -175,7 +175,7 @@ int scoutfs_manifest_add(struct super_block *sb, struct kvec *first,
return -ENOMEM;
ret = scoutfs_kvec_dup_flatten(ment->first, first) ?:
scoutfs_kvec_dup_flatten(ment->first, last);
scoutfs_kvec_dup_flatten(ment->last, last);
if (ret) {
free_ment(ment);
return -ENOMEM;