We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ca4169 commit f7a4874Copy full SHA for f7a4874
fs/iomap/buffered-io.c
@@ -1321,7 +1321,7 @@ static loff_t iomap_unshare_iter(struct iomap_iter *iter)
1321
return length;
1322
1323
/*
1324
- * Don't bother with holes or unwritten extents.
+ * Don't bother with delalloc reservations, holes or unwritten extents.
1325
*
1326
* Note that we use srcmap directly instead of iomap_iter_srcmap as
1327
* unsharing requires providing a separate source map, and the presence
@@ -1330,6 +1330,7 @@ static loff_t iomap_unshare_iter(struct iomap_iter *iter)
1330
* fork for XFS.
1331
*/
1332
if (iter->srcmap.type == IOMAP_HOLE ||
1333
+ iter->srcmap.type == IOMAP_DELALLOC ||
1334
iter->srcmap.type == IOMAP_UNWRITTEN)
1335
1336
0 commit comments