Btrfs: kill unused argument of btrfs_pin_extent_for_log_replay
authorLiu Bo <bo.li.liu@oracle.com>
Thu, 27 Dec 2012 09:01:20 +0000 (09:01 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 20 Feb 2013 14:37:14 +0000 (09:37 -0500)
Argument 'trans' is not used any more.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/tree-log.c

index 411c8d97074e8008cf75ff27eadbfc987b0c1b36..22f012d41fd030b28b18a2961a33d84127faebea 100644 (file)
@@ -2939,8 +2939,7 @@ int btrfs_lookup_extent_info(struct btrfs_trans_handle *trans,
                             u64 num_bytes, u64 *refs, u64 *flags);
 int btrfs_pin_extent(struct btrfs_root *root,
                     u64 bytenr, u64 num, int reserved);
-int btrfs_pin_extent_for_log_replay(struct btrfs_trans_handle *trans,
-                                   struct btrfs_root *root,
+int btrfs_pin_extent_for_log_replay(struct btrfs_root *root,
                                    u64 bytenr, u64 num_bytes);
 int btrfs_cross_ref_exist(struct btrfs_trans_handle *trans,
                          struct btrfs_root *root,
index a162c7cb8fb5be4d00b7d8e1bd5de2effa84f4a5..825f23b13b584da158fa1bebd6a101a2e637758a 100644 (file)
@@ -4898,8 +4898,7 @@ int btrfs_pin_extent(struct btrfs_root *root,
 /*
  * this function must be called within transaction
  */
-int btrfs_pin_extent_for_log_replay(struct btrfs_trans_handle *trans,
-                                   struct btrfs_root *root,
+int btrfs_pin_extent_for_log_replay(struct btrfs_root *root,
                                    u64 bytenr, u64 num_bytes)
 {
        struct btrfs_block_group_cache *cache;
index 7de720d22b74418d8679d3264591f030d0349b2b..deb7f66356bd1bcf56d1f138ef8e35a987d73e63 100644 (file)
@@ -278,8 +278,7 @@ static int process_one_buffer(struct btrfs_root *log,
                              struct walk_control *wc, u64 gen)
 {
        if (wc->pin)
-               btrfs_pin_extent_for_log_replay(wc->trans,
-                                               log->fs_info->extent_root,
+               btrfs_pin_extent_for_log_replay(log->fs_info->extent_root,
                                                eb->start, eb->len);
 
        if (btrfs_buffer_uptodate(eb, gen, 0)) {