vfs: add a FALLOC_FL_UNSHARE mode to fallocate to unshare a range of blocks
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Oct 2016 16:11:14 +0000 (09:11 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Oct 2016 16:11:14 +0000 (09:11 -0700)
commit71be6b4942dd64bc17728f82f787be98fd8afed7
treec5a219e8c9d574051b01551d6e24012519213a03
parent0a6eab8bd4e0120d49511acbb294797d96ef9e4a
vfs: add a FALLOC_FL_UNSHARE mode to fallocate to unshare a range of blocks

Add a new fallocate mode flag that explicitly unshares blocks on
filesystems that support such features.  The new flag can only
be used with an allocate-mode fallocate call.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/open.c
include/linux/falloc.h
include/uapi/linux/falloc.h