summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-log.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2012-08-29 12:24:27 -0400
committerChris Mason <chris.mason@fusionio.com>2012-10-01 15:19:06 -0400
commit2671485d395c07fca104c972785898d7c52fc942 (patch)
treed87e1fa2265155c05718a9e8486a66a76df86b76 /fs/btrfs/tree-log.c
parentd2794405113cd04f13a58e32e4d541dc87ec86e4 (diff)
Btrfs: remove unused hint byte argument for btrfs_drop_extents
I audited all users of btrfs_drop_extents and found that nobody actually uses the hint_byte argument. I'm sure it was used for something at some point but it's not used now, and the way the pinning works the disk bytenr would never be immediately useful anyway so lets just remove it. Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/tree-log.c')
-rw-r--r--fs/btrfs/tree-log.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/btrfs/tree-log.c b/fs/btrfs/tree-log.c
index 5e2ffb95cc64..0c39f58973db 100644
--- a/fs/btrfs/tree-log.c
+++ b/fs/btrfs/tree-log.c
@@ -485,7 +485,6 @@ static noinline int replay_one_extent(struct btrfs_trans_handle *trans,
485 int found_type; 485 int found_type;
486 u64 mask = root->sectorsize - 1; 486 u64 mask = root->sectorsize - 1;
487 u64 extent_end; 487 u64 extent_end;
488 u64 alloc_hint;
489 u64 start = key->offset; 488 u64 start = key->offset;
490 u64 saved_nbytes; 489 u64 saved_nbytes;
491 struct btrfs_file_extent_item *item; 490 struct btrfs_file_extent_item *item;
@@ -551,8 +550,7 @@ static noinline int replay_one_extent(struct btrfs_trans_handle *trans,
551 550
552 saved_nbytes = inode_get_bytes(inode); 551 saved_nbytes = inode_get_bytes(inode);
553 /* drop any overlapping extents */ 552 /* drop any overlapping extents */
554 ret = btrfs_drop_extents(trans, root, inode, start, extent_end, 553 ret = btrfs_drop_extents(trans, root, inode, start, extent_end, 1);
555 &alloc_hint, 1);
556 BUG_ON(ret); 554 BUG_ON(ret);
557 555
558 if (found_type == BTRFS_FILE_EXTENT_REG || 556 if (found_type == BTRFS_FILE_EXTENT_REG ||
@@ -2843,9 +2841,8 @@ static int log_one_extent(struct btrfs_trans_handle *trans,
2843 int ret; 2841 int ret;
2844 2842
2845 if (BTRFS_I(inode)->logged_trans == trans->transid) { 2843 if (BTRFS_I(inode)->logged_trans == trans->transid) {
2846 u64 tmp;
2847 ret = __btrfs_drop_extents(trans, log, inode, dst_path, start, 2844 ret = __btrfs_drop_extents(trans, log, inode, dst_path, start,
2848 start + len, &tmp, 0); 2845 start + len, 0);
2849 if (ret) 2846 if (ret)
2850 return ret; 2847 return ret;
2851 } 2848 }