vfs: fix isize/pos/len checks for reflink & dedupe
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 19 Dec 2016 23:13:26 +0000 (15:13 -0800)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 23 Dec 2016 04:00:23 +0000 (23:00 -0500)
commit22725ce4e4a00fbc37694e25dc5c8acef8ad1c28
treec2f79e95c3aba6279faa3967a14ac9cd0d629022
parent33844e665104b169a3a7732bdcddb40e4f82b335
vfs: fix isize/pos/len checks for reflink & dedupe

Strengthen the checking of pos/len vs. i_size, clarify the return values
for the clone prep function, and remove pointless code.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ocfs2/refcounttree.c
fs/read_write.c
fs/xfs/xfs_reflink.c