summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorFilipe Manana2014-12-08 15:01:12 +0100
committerChris Mason2014-12-10 21:22:32 +0100
commit1edb647bb95439d90c0017e9ca23c4ecf00a0409 (patch)
treef73ba2db682e7352bf92d10eaa60956f285b3f84 /fs/btrfs/ctree.h
parentBtrfs: fix fs corruption on transaction abort if device supports discard (diff)
downloadkernel-qcow2-linux-1edb647bb95439d90c0017e9ca23c4ecf00a0409.tar.gz
kernel-qcow2-linux-1edb647bb95439d90c0017e9ca23c4ecf00a0409.tar.xz
kernel-qcow2-linux-1edb647bb95439d90c0017e9ca23c4ecf00a0409.zip
Btrfs: remove non-sense btrfs_error_discard_extent() function
It doesn't do anything special, it just calls btrfs_discard_extent(), so just remove it. Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index e6fbbd74b716..7e607416755a 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -3481,8 +3481,8 @@ void btrfs_put_block_group_cache(struct btrfs_fs_info *info);
u64 btrfs_account_ro_block_groups_free_space(struct btrfs_space_info *sinfo);
int btrfs_error_unpin_extent_range(struct btrfs_root *root,
u64 start, u64 end);
-int btrfs_error_discard_extent(struct btrfs_root *root, u64 bytenr,
- u64 num_bytes, u64 *actual_bytes);
+int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr,
+ u64 num_bytes, u64 *actual_bytes);
int btrfs_force_chunk_alloc(struct btrfs_trans_handle *trans,
struct btrfs_root *root, u64 type);
int btrfs_trim_fs(struct btrfs_root *root, struct fstrim_range *range);