Darrick J. Wong b0e72ba9e5 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:35:16 +01:00
..
2021-09-02 09:21:27 -07:00
2021-06-21 10:05:51 -07:00
2021-09-02 08:26:03 -07:00
2021-09-02 08:26:03 -07:00
2021-09-02 08:26:03 -07:00
2021-08-24 19:13:04 -07:00
2021-09-02 08:26:03 -07:00
2021-09-02 08:26:03 -07:00
2021-04-12 15:04:29 +02:00
2021-04-12 15:04:29 +02:00
2021-08-24 19:13:04 -07:00
2021-01-24 14:43:46 +01:00
2021-01-24 14:43:46 +01:00
2021-06-21 10:05:51 -07:00
2021-09-09 11:39:57 -07:00
2021-06-21 10:05:46 -07:00
2021-01-24 14:43:46 +01:00
2021-08-19 10:07:14 -07:00