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.
BUG=b/213202984
TEST=presubmit
RELEASE_NOTE=None
SOURCE=UPSTREAM(983d8e60f50806f90534cc5373d0ce867e5aaf79)
cos-patch: bug
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>
(cherry picked from commit 983d8e60f50806f90534cc5373d0ce867e5aaf79)
Signed-off-by: Vaibhav Rustagi <vaibhavrustagi@google.com>
Change-Id: Ib2a7319bf82409ad5d079e44b6c293fc8b1522f6
Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/27201
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Main-Branch-Verified: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
1 file changed