Btrfs: Add fallocate support v2
authorYan Zheng <zheng.yan@oracle.com>
Thu, 30 Oct 2008 18:25:28 +0000 (14:25 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 30 Oct 2008 18:25:28 +0000 (14:25 -0400)
commitd899e05215178fed903ad0e7fc1cb4d8e0cc0a88
tree2969e3558f5c50ec0f9ac4201099c0d5d1d6e2c2
parent80ff385665b7fca29fefe358a60ab0d09f9b8e87
Btrfs: Add fallocate support v2
This patch updates btrfs-progs for fallocate support.

fallocate is a little different in Btrfs because we need to tell the
COW system that a given preallocated extent doesn't need to be
cow'd as long as there are no snapshots of it.  This leverages the
-o nodatacow checks.

Signed-off-by: Yan Zheng <zheng.yan@oracle.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/extent_io.c
fs/btrfs/extent_map.h
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h
fs/btrfs/tree-log.c