diff options
author | Yan Zheng <zheng.yan@oracle.com> | 2008-10-30 14:20:02 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-10-30 14:20:02 -0400 |
commit | 80ff385665b7fca29fefe358a60ab0d09f9b8e87 (patch) | |
tree | 8a801d3f268d289b62f8dac87df8b757fb3b19d4 /fs/btrfs/ordered-data.h | |
parent | 6643558db29006825dbb10012b3f8890aca4bcd5 (diff) |
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>
Diffstat (limited to 'fs/btrfs/ordered-data.h')
-rw-r--r-- | fs/btrfs/ordered-data.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ordered-data.h b/fs/btrfs/ordered-data.h index 1ef464145d22..e6d9bc54c2b1 100644 --- a/fs/btrfs/ordered-data.h +++ b/fs/btrfs/ordered-data.h | |||
@@ -132,8 +132,7 @@ int btrfs_remove_ordered_extent(struct inode *inode, | |||
132 | int btrfs_dec_test_ordered_pending(struct inode *inode, | 132 | int btrfs_dec_test_ordered_pending(struct inode *inode, |
133 | u64 file_offset, u64 io_size); | 133 | u64 file_offset, u64 io_size); |
134 | int btrfs_add_ordered_extent(struct inode *inode, u64 file_offset, | 134 | int btrfs_add_ordered_extent(struct inode *inode, u64 file_offset, |
135 | u64 start, u64 len, u64 disk_len, int nocow, | 135 | u64 start, u64 len, u64 disk_len, int type); |
136 | int compressed); | ||
137 | int btrfs_add_ordered_sum(struct inode *inode, | 136 | int btrfs_add_ordered_sum(struct inode *inode, |
138 | struct btrfs_ordered_extent *entry, | 137 | struct btrfs_ordered_extent *entry, |
139 | struct btrfs_ordered_sum *sum); | 138 | struct btrfs_ordered_sum *sum); |