diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-01-08 15:46:30 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:59 -0400 |
commit | dc17ff8f11d129db9e83ab7244769e4eae05e14d (patch) | |
tree | 622e70100d6082e371a6ca62b02fd57e0c37f8dc /fs/btrfs/ctree.h | |
parent | e4204dedbbaa3a614605cb83cc0ac5161af6b4e6 (diff) |
Btrfs: Add data=ordered support
This forces file data extents down the disk along with the metadata that
references them. The current implementation is fairly simple, and just
writes out all of the dirty pages in an inode before the commit.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 9873975ce0ee..b55dba58dfaa 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -16,8 +16,8 @@ | |||
16 | * Boston, MA 021110-1307, USA. | 16 | * Boston, MA 021110-1307, USA. |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #ifndef __BTRFS__ | 19 | #ifndef __BTRFS_CTREE__ |
20 | #define __BTRFS__ | 20 | #define __BTRFS_CTREE__ |
21 | 21 | ||
22 | #include <linux/version.h> | 22 | #include <linux/version.h> |
23 | #include <linux/mm.h> | 23 | #include <linux/mm.h> |
@@ -363,7 +363,6 @@ struct btrfs_root { | |||
363 | struct inode *inode; | 363 | struct inode *inode; |
364 | struct kobject root_kobj; | 364 | struct kobject root_kobj; |
365 | struct completion kobj_unregister; | 365 | struct completion kobj_unregister; |
366 | struct rw_semaphore snap_sem; | ||
367 | u64 objectid; | 366 | u64 objectid; |
368 | u64 last_trans; | 367 | u64 last_trans; |
369 | 368 | ||
@@ -1142,6 +1141,8 @@ void btrfs_destroy_cachep(void); | |||
1142 | long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); | 1141 | long btrfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg); |
1143 | struct inode *btrfs_iget_locked(struct super_block *s, u64 objectid, | 1142 | struct inode *btrfs_iget_locked(struct super_block *s, u64 objectid, |
1144 | struct btrfs_root *root); | 1143 | struct btrfs_root *root); |
1144 | struct inode *btrfs_ilookup(struct super_block *s, u64 objectid, | ||
1145 | u64 root_objectid); | ||
1145 | int btrfs_commit_write(struct file *file, struct page *page, | 1146 | int btrfs_commit_write(struct file *file, struct page *page, |
1146 | unsigned from, unsigned to); | 1147 | unsigned from, unsigned to); |
1147 | struct extent_map *btrfs_get_extent(struct inode *inode, struct page *page, | 1148 | struct extent_map *btrfs_get_extent(struct inode *inode, struct page *page, |