]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: map unwritten blocks in XFS_IOC_{ALLOC,FREE}SP just like fallocate
authorDarrick J. Wong <djwong@kernel.org>
Wed, 22 Dec 2021 22:19:18 +0000 (14:19 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 22 Dec 2021 22:19:18 +0000 (14:19 -0800)
commit59604e0af943ebd62cc3db99e3d3a33920da0b28
tree46c024d77d514ea47e4af91e4314cd29e67deeab
parentc218e0b6cbbdf0307713783ed79056cea7414e80
xfs: map unwritten blocks in XFS_IOC_{ALLOC,FREE}SP just like fallocate

The old ALLOCSP/FREESP ioctls in XFS can be used to preallocate space at
the end of files, just like fallocate and RESVSP.  Make the behavior
consistent with the other ioctls.

Reported-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
fs/xfs/xfs_ioctl.c