Skip to content

Commit 622e42a

Browse files
committed
Merge tag 'xfs-5.16-fixes-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
Pull xfs fix from Darrick Wong: - Make the old ALLOCSP ioctl behave in a consistent manner with newer syscalls like fallocate. * tag 'xfs-5.16-fixes-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: xfs: map unwritten blocks in XFS_IOC_{ALLOC,FREE}SP just like fallocate
2 parents d1587f7 + 983d8e6 commit 622e42a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/xfs/xfs_ioctl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,8 @@ xfs_ioc_space(
687687

688688
if (bf->l_start > XFS_ISIZE(ip)) {
689689
error = xfs_alloc_file_space(ip, XFS_ISIZE(ip),
690-
bf->l_start - XFS_ISIZE(ip), 0);
690+
bf->l_start - XFS_ISIZE(ip),
691+
XFS_BMAPI_PREALLOC);
691692
if (error)
692693
goto out_unlock;
693694
}

0 commit comments

Comments
 (0)