]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vfs: clean up generic_remap_file_range_prep return value
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 29 Oct 2018 23:42:24 +0000 (10:42 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 29 Oct 2018 23:42:24 +0000 (10:42 +1100)
commit8c5c836bd6c3b9f9fc1c5a210d630b8c42f4f7df
treeb30d576876330782bc620907b9693f5b20ef4ea7
parentc32e5f39953fa6bbff35c655bdcb7b3128f1e79f
vfs: clean up generic_remap_file_range_prep return value

Since the remap prep function can update the length of the remap
request, we can change this function to return the usual return status
instead of the odd behavior it has now.

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