mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-09 05:13:18 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user