diff options
author | Yan Zheng <zheng.yan@oracle.com> | 2008-08-05 13:05:02 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:06 -0400 |
commit | 7ea394f1192bee1af67ea4762c88ef4b7b0487a8 (patch) | |
tree | e2c593d054d802bc71e86508a5b7523ff80cc1ea /fs/btrfs/ordered-data.h | |
parent | 00e4e6b33a0f78aab4b788d6d31c884fd8bf88da (diff) |
Btrfs: Fix nodatacow for the new data=ordered mode
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ordered-data.h')
-rw-r--r-- | fs/btrfs/ordered-data.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/ordered-data.h b/fs/btrfs/ordered-data.h index 5efe6b63c74c..fd45519f30a8 100644 --- a/fs/btrfs/ordered-data.h +++ b/fs/btrfs/ordered-data.h | |||
@@ -64,6 +64,8 @@ struct btrfs_ordered_sum { | |||
64 | 64 | ||
65 | #define BTRFS_ORDERED_COMPLETE 1 /* set when removed from the tree */ | 65 | #define BTRFS_ORDERED_COMPLETE 1 /* set when removed from the tree */ |
66 | 66 | ||
67 | #define BTRFS_ORDERED_NOCOW 2 /* set when we want to write in place */ | ||
68 | |||
67 | struct btrfs_ordered_extent { | 69 | struct btrfs_ordered_extent { |
68 | /* logical offset in the file */ | 70 | /* logical offset in the file */ |
69 | u64 file_offset; | 71 | u64 file_offset; |
@@ -125,7 +127,7 @@ int btrfs_remove_ordered_extent(struct inode *inode, | |||
125 | int btrfs_dec_test_ordered_pending(struct inode *inode, | 127 | int btrfs_dec_test_ordered_pending(struct inode *inode, |
126 | u64 file_offset, u64 io_size); | 128 | u64 file_offset, u64 io_size); |
127 | int btrfs_add_ordered_extent(struct inode *inode, u64 file_offset, | 129 | int btrfs_add_ordered_extent(struct inode *inode, u64 file_offset, |
128 | u64 start, u64 len); | 130 | u64 start, u64 len, int nocow); |
129 | int btrfs_add_ordered_sum(struct inode *inode, | 131 | int btrfs_add_ordered_sum(struct inode *inode, |
130 | struct btrfs_ordered_extent *entry, | 132 | struct btrfs_ordered_extent *entry, |
131 | struct btrfs_ordered_sum *sum); | 133 | struct btrfs_ordered_sum *sum); |
@@ -143,5 +145,5 @@ int btrfs_wait_on_page_writeback_range(struct address_space *mapping, | |||
143 | pgoff_t start, pgoff_t end); | 145 | pgoff_t start, pgoff_t end); |
144 | int btrfs_fdatawrite_range(struct address_space *mapping, loff_t start, | 146 | int btrfs_fdatawrite_range(struct address_space *mapping, loff_t start, |
145 | loff_t end, int sync_mode); | 147 | loff_t end, int sync_mode); |
146 | int btrfs_wait_ordered_extents(struct btrfs_root *root); | 148 | int btrfs_wait_ordered_extents(struct btrfs_root *root, int nocow_only); |
147 | #endif | 149 | #endif |