Darrick J. Wong 16d8568378 xfs: map unwritten blocks in XFS_IOC_{ALLOC,FREE}SP just like fallocate
commit 983d8e60f50806f90534cc5373d0ce867e5aaf79 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-11 15:25:01 +01:00
..
2020-09-06 18:05:51 -07:00
2020-09-15 20:52:41 -07:00
2020-09-15 20:52:41 -07:00
2020-03-02 20:55:55 -08:00
2020-09-15 20:52:39 -07:00
2020-03-11 09:11:39 -07:00
2020-09-25 11:34:07 -07:00
2020-05-07 08:27:48 -07:00
2020-09-15 20:52:42 -07:00
2020-10-07 08:40:29 -07:00
2020-10-07 08:40:29 -07:00
2020-09-15 20:52:39 -07:00
2020-09-15 20:52:39 -07:00
2020-05-08 08:51:34 -07:00