]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xfs: simplify the fallocate path
authorChristoph Hellwig <hch@infradead.org>
Sat, 12 Oct 2013 07:55:07 +0000 (00:55 -0700)
committerBen Myers <bpm@sgi.com>
Mon, 21 Oct 2013 21:56:21 +0000 (16:56 -0500)
commit83aee9e4c2976143f35b3a42ad1faadf58c53ae7
tree568ca76e660645e9762f14c1972514b7f59f247c
parent5f8aca8b43f41c4b2d4dc5389124a40cab92b644
xfs: simplify the fallocate path

Call xfs_alloc_file_space or xfs_free_file_space directly from
xfs_file_fallocate instead of going through xfs_change_file_space.

This simplified the code by removing the unessecary marshalling of the
arguments into an xfs_flock64_t structure and allows removing checks that
are already done in the VFS code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_bmap_util.h
fs/xfs/xfs_file.c