aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorYan, Zheng <zheng.yan@oracle.com>2009-11-12 04:34:08 -0500
committerChris Mason <chris.mason@oracle.com>2009-12-15 21:24:52 -0500
commit920bbbfb05c9fce22e088d20eb9dcb8f96342de9 (patch)
treeb972b3f39ebefb9c026300c1981d18cad769e431 /fs/btrfs/ctree.h
parentad48fd754676bfae4139be1a897b1ea58f9aaf21 (diff)
Btrfs: Rewrite btrfs_drop_extents
Rewrite btrfs_drop_extents by using btrfs_duplicate_item, so we can avoid calling lock_extent within transaction. Signed-off-by: Yan Zheng <zheng.yan@oracle.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index e3b58001162d..ae5b0aaa9386 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2349,12 +2349,9 @@ int btrfs_drop_extent_cache(struct inode *inode, u64 start, u64 end,
2349 int skip_pinned); 2349 int skip_pinned);
2350int btrfs_check_file(struct btrfs_root *root, struct inode *inode); 2350int btrfs_check_file(struct btrfs_root *root, struct inode *inode);
2351extern const struct file_operations btrfs_file_operations; 2351extern const struct file_operations btrfs_file_operations;
2352int btrfs_drop_extents(struct btrfs_trans_handle *trans, 2352int btrfs_drop_extents(struct btrfs_trans_handle *trans, struct inode *inode,
2353 struct btrfs_root *root, struct inode *inode, 2353 u64 start, u64 end, u64 *hint_byte, int drop_cache);
2354 u64 start, u64 end, u64 locked_end,
2355 u64 inline_limit, u64 *hint_block, int drop_cache);
2356int btrfs_mark_extent_written(struct btrfs_trans_handle *trans, 2354int btrfs_mark_extent_written(struct btrfs_trans_handle *trans,
2357 struct btrfs_root *root,
2358 struct inode *inode, u64 start, u64 end); 2355 struct inode *inode, u64 start, u64 end);
2359int btrfs_release_file(struct inode *inode, struct file *file); 2356int btrfs_release_file(struct inode *inode, struct file *file);
2360 2357