]> asedeno.scripts.mit.edu Git - linux.git/commit
xfs: consolidate preallocation in xfs_file_fallocate
authorChristoph Hellwig <hch@lst.de>
Fri, 25 Oct 2019 05:26:27 +0000 (22:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 28 Oct 2019 23:08:17 +0000 (16:08 -0700)
commit360c09c01c5acf2bc44ca97670406d1ab8a8419d
tree31d6865a514f69002f64e401aecf200c8ea0ce3a
parent7a42c70ea0dd56b3ed747c1fcf9b96cc26c77774
xfs: consolidate preallocation in xfs_file_fallocate

Remove xfs_zero_file_space and reorganize xfs_file_fallocate so that a
single call to xfs_alloc_file_space covers all modes that preallocate
blocks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_bmap_util.h
fs/xfs/xfs_file.c