aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ordered-data.h
diff options
context:
space:
mode:
authorYan Zheng <zheng.yan@oracle.com>2008-08-05 13:05:02 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:06 -0400
commit7ea394f1192bee1af67ea4762c88ef4b7b0487a8 (patch)
treee2c593d054d802bc71e86508a5b7523ff80cc1ea /fs/btrfs/ordered-data.h
parent00e4e6b33a0f78aab4b788d6d31c884fd8bf88da (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.h6
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
67struct btrfs_ordered_extent { 69struct 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,
125int btrfs_dec_test_ordered_pending(struct inode *inode, 127int btrfs_dec_test_ordered_pending(struct inode *inode,
126 u64 file_offset, u64 io_size); 128 u64 file_offset, u64 io_size);
127int btrfs_add_ordered_extent(struct inode *inode, u64 file_offset, 129int btrfs_add_ordered_extent(struct inode *inode, u64 file_offset,
128 u64 start, u64 len); 130 u64 start, u64 len, int nocow);
129int btrfs_add_ordered_sum(struct inode *inode, 131int 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);
144int btrfs_fdatawrite_range(struct address_space *mapping, loff_t start, 146int btrfs_fdatawrite_range(struct address_space *mapping, loff_t start,
145 loff_t end, int sync_mode); 147 loff_t end, int sync_mode);
146int btrfs_wait_ordered_extents(struct btrfs_root *root); 148int btrfs_wait_ordered_extents(struct btrfs_root *root, int nocow_only);
147#endif 149#endif