summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-10-03 09:11:14 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2016-10-03 09:11:14 -0700
commit71be6b4942dd64bc17728f82f787be98fd8afed7 (patch)
treec5a219e8c9d574051b01551d6e24012519213a03 /include/linux
parent0a6eab8bd4e0120d49511acbb294797d96ef9e4a (diff)
downloadlinux-71be6b4942dd64bc17728f82f787be98fd8afed7.tar.gz
linux-71be6b4942dd64bc17728f82f787be98fd8afed7.tar.bz2
linux-71be6b4942dd64bc17728f82f787be98fd8afed7.zip
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/falloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/falloc.h b/include/linux/falloc.h
index 996111000a8c..7494dc67c66f 100644
--- a/include/linux/falloc.h
+++ b/include/linux/falloc.h
@@ -25,6 +25,7 @@ struct space_resv {
FALLOC_FL_PUNCH_HOLE | \
FALLOC_FL_COLLAPSE_RANGE | \
FALLOC_FL_ZERO_RANGE | \
- FALLOC_FL_INSERT_RANGE)
+ FALLOC_FL_INSERT_RANGE | \
+ FALLOC_FL_UNSHARE_RANGE)
#endif /* _FALLOC_H_ */