Btrfs: update nodatacow code v2
authorYan Zheng <zheng.yan@oracle.com>
Thu, 30 Oct 2008 18:20:02 +0000 (14:20 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 30 Oct 2008 18:20:02 +0000 (14:20 -0400)
commit80ff385665b7fca29fefe358a60ab0d09f9b8e87
tree8a801d3f268d289b62f8dac87df8b757fb3b19d4
parent6643558db29006825dbb10012b3f8890aca4bcd5
Btrfs: update nodatacow code v2

This patch simplifies the nodatacow checker. If all references
were created after the latest snapshot, then we can avoid COW
safely. This patch also updates run_delalloc_nocow to do more
fine-grained checking.

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