diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index aee172abad1cfe..5ba8d044757bd7 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -2297,7 +2297,7 @@ int btrfs_run_delalloc_range(struct btrfs_inode *inode, struct folio *locked_fol out: if (ret < 0) - btrfs_cleanup_ordered_extents(inode, locked_folio, start, + btrfs_cleanup_ordered_extents(inode, NULL, start, end - start + 1); return ret; }