From ef1dc677d05273d4ed9959e8f468658ed067ee1a Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Mon, 16 Mar 2020 10:18:19 -0700 Subject: [PATCH] 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 --- kmod/src/data.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kmod/src/data.c b/kmod/src/data.c index f9666857..17653b4f 100644 --- a/kmod/src/data.c +++ b/kmod/src/data.c @@ -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;