diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:16:23 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-10-14 14:17:29 -0700 |
commit | 329347290ff24672bc398056af8a2351c2a8d6e7 (patch) | |
tree | 0f133fdbe7f4694d6da3bc9ca8801b22a37a56bd /include/linux/falloc.h | |
parent | c44d956ad25bba8e0c1a86d40e66fafce1a09563 (diff) |
xfs: fallocate free space into a filedefrag-freespace_2022-10-14
Add a new fallocate mode to map free physical space into a file, at the
same file offset as if the file were a sparse image of the physical
device backing the filesystem. The intent here is to use this to
prototype a free space defragmentation tool.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'include/linux/falloc.h')
-rw-r--r-- | include/linux/falloc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/falloc.h b/include/linux/falloc.h index f3f0b97b1675..b47aae9e487a 100644 --- a/include/linux/falloc.h +++ b/include/linux/falloc.h @@ -30,7 +30,8 @@ struct space_resv { FALLOC_FL_COLLAPSE_RANGE | \ FALLOC_FL_ZERO_RANGE | \ FALLOC_FL_INSERT_RANGE | \ - FALLOC_FL_UNSHARE_RANGE) + FALLOC_FL_UNSHARE_RANGE | \ + FALLOC_FL_MAP_FREE_SPACE) /* on ia32 l_start is on a 32-bit boundary */ #if defined(CONFIG_X86_64) |