aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-05-08 14:11:56 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:02 -0400
commita68d5933a0e409592860229b35230c8e87155472 (patch)
treef58e963b03034935429b42be735ee59cd06110e1 /fs/btrfs/ctree.h
parentbf4ef67924d87b0addb32f084e83a9283496350e (diff)
Btrfs: Update nodatacow mode to support cloned single files and resizing
Before, nodatacow only checked to make sure multiple roots didn't have references on a single extent. This check makes sure that multiple inodes don't have references. nodatacow needed an extra check to see if the block group was currently readonly. This way cows forced by the chunk relocation code are honored. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index f4b4677bec77..6c2c2c4e4d2a 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -1325,7 +1325,7 @@ static inline struct dentry *fdentry(struct file *file) {
1325/* extent-tree.c */ 1325/* extent-tree.c */
1326u32 btrfs_count_snapshots_in_path(struct btrfs_root *root, 1326u32 btrfs_count_snapshots_in_path(struct btrfs_root *root,
1327 struct btrfs_path *count_path, 1327 struct btrfs_path *count_path,
1328 u64 first_extent); 1328 u64 expected_owner, u64 first_extent);
1329int btrfs_extent_post_op(struct btrfs_trans_handle *trans, 1329int btrfs_extent_post_op(struct btrfs_trans_handle *trans,
1330 struct btrfs_root *root); 1330 struct btrfs_root *root);
1331int btrfs_copy_pinned(struct btrfs_root *root, struct extent_io_tree *copy); 1331int btrfs_copy_pinned(struct btrfs_root *root, struct extent_io_tree *copy);