diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 8bf6a085a730..d5ba3d1aaf9a 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -462,8 +462,9 @@ struct btrfs_root_item { | |||
462 | u8 level; | 462 | u8 level; |
463 | } __attribute__ ((__packed__)); | 463 | } __attribute__ ((__packed__)); |
464 | 464 | ||
465 | #define BTRFS_FILE_EXTENT_REG 0 | 465 | #define BTRFS_FILE_EXTENT_INLINE 0 |
466 | #define BTRFS_FILE_EXTENT_INLINE 1 | 466 | #define BTRFS_FILE_EXTENT_REG 1 |
467 | #define BTRFS_FILE_EXTENT_PREALLOC 2 | ||
467 | 468 | ||
468 | struct btrfs_file_extent_item { | 469 | struct btrfs_file_extent_item { |
469 | /* | 470 | /* |
@@ -868,6 +869,7 @@ struct btrfs_root { | |||
868 | #define BTRFS_INODE_NODATACOW (1 << 1) | 869 | #define BTRFS_INODE_NODATACOW (1 << 1) |
869 | #define BTRFS_INODE_READONLY (1 << 2) | 870 | #define BTRFS_INODE_READONLY (1 << 2) |
870 | #define BTRFS_INODE_NOCOMPRESS (1 << 3) | 871 | #define BTRFS_INODE_NOCOMPRESS (1 << 3) |
872 | #define BTRFS_INODE_PREALLOC (1 << 4) | ||
871 | #define btrfs_clear_flag(inode, flag) (BTRFS_I(inode)->flags &= \ | 873 | #define btrfs_clear_flag(inode, flag) (BTRFS_I(inode)->flags &= \ |
872 | ~BTRFS_INODE_##flag) | 874 | ~BTRFS_INODE_##flag) |
873 | #define btrfs_set_flag(inode, flag) (BTRFS_I(inode)->flags |= \ | 875 | #define btrfs_set_flag(inode, flag) (BTRFS_I(inode)->flags |= \ |
@@ -1924,6 +1926,9 @@ extern struct file_operations btrfs_file_operations; | |||
1924 | int btrfs_drop_extents(struct btrfs_trans_handle *trans, | 1926 | int btrfs_drop_extents(struct btrfs_trans_handle *trans, |
1925 | struct btrfs_root *root, struct inode *inode, | 1927 | struct btrfs_root *root, struct inode *inode, |
1926 | u64 start, u64 end, u64 inline_limit, u64 *hint_block); | 1928 | u64 start, u64 end, u64 inline_limit, u64 *hint_block); |
1929 | int btrfs_mark_extent_written(struct btrfs_trans_handle *trans, | ||
1930 | struct btrfs_root *root, | ||
1931 | struct inode *inode, u64 start, u64 end); | ||
1927 | int btrfs_release_file(struct inode *inode, struct file *file); | 1932 | int btrfs_release_file(struct inode *inode, struct file *file); |
1928 | 1933 | ||
1929 | /* tree-defrag.c */ | 1934 | /* tree-defrag.c */ |