]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: merge xfs_reflink_remap_range and xfs_file_share_range
authorChristoph Hellwig <hch@lst.de>
Thu, 20 Oct 2016 04:50:07 +0000 (15:50 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 20 Oct 2016 04:50:07 +0000 (15:50 +1100)
commit5faaf4fa0a20d38edc4df57baf24ea35b7e91178
tree04fbdf80c31a03ec499bc5628cd0454f128420c4
parentec40759902556f21f37641ad9f19d02c4dd4b555
xfs: merge xfs_reflink_remap_range and xfs_file_share_range

There is no clear division of responsibility between those functions, so
just merge them into one to keep the code simple.  Also move
xfs_file_wait_for_io to xfs_reflink.c together with its only caller.

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