locks: new locks_mandatory_area calling convention
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Dec 2015 11:59:49 +0000 (12:59 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 8 Dec 2015 04:09:16 +0000 (23:09 -0500)
commitacc15575e78e534c12549d8057a692f490a50f61
treea177119e84264c8a8db1e04090f97a7335ccfc69
parenteac70053a141998c40907747d6cea1d53a9414be
locks: new locks_mandatory_area calling convention

Pass a loff_t end for the last byte instead of the 32-bit count
parameter to allow full file clones even on 32-bit architectures.
While we're at it also simplify the read/write selection.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/locks.c
fs/read_write.c
include/linux/fs.h