scoutfs: store initialied offline unpacked extents

The setattr_more ioctl has its own helper for creating uninitialized
extents when we know that there can't be any other existing extents.  We
don't have to worry about freeing blocks they might have referenced.
This helper forgot to actually store the modified extents back into
packed extent items after setting extents offline.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2020-03-16 10:18:19 -07:00
committed by Zach Brown
parent 462749cb87
commit ef1dc677d0

View File

@@ -1579,6 +1579,10 @@ int scoutfs_data_init_offline_extent(struct inode *inode, u64 size,
if (ret < 0)
goto out;
ret = store_packed_extents(sb, ino, unpe, lock);
if (ret < 0)
goto out;
free_unpacked_extents(unpe);
unpe = NULL;