Răsfoiți Sursa

btrfs: remove unused parameter from add_pending_csums

Never used.

Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
David Sterba 8 ani în urmă
părinte
comite
df9f628e3d
1 a modificat fișierele cu 2 adăugiri și 4 ștergeri
  1. 2 4
      fs/btrfs/inode.c

+ 2 - 4
fs/btrfs/inode.c

@@ -1905,8 +1905,7 @@ out:
  * at IO completion time based on sums calculated at bio submission time.
  * at IO completion time based on sums calculated at bio submission time.
  */
  */
 static noinline int add_pending_csums(struct btrfs_trans_handle *trans,
 static noinline int add_pending_csums(struct btrfs_trans_handle *trans,
-			     struct inode *inode, u64 file_offset,
-			     struct list_head *list)
+			     struct inode *inode, struct list_head *list)
 {
 {
 	struct btrfs_ordered_sum *sum;
 	struct btrfs_ordered_sum *sum;
 
 
@@ -2900,8 +2899,7 @@ static int btrfs_finish_ordered_io(struct btrfs_ordered_extent *ordered_extent)
 		goto out_unlock;
 		goto out_unlock;
 	}
 	}
 
 
-	add_pending_csums(trans, inode, ordered_extent->file_offset,
-			  &ordered_extent->list);
+	add_pending_csums(trans, inode, &ordered_extent->list);
 
 
 	btrfs_ordered_update_i_size(inode, 0, ordered_extent);
 	btrfs_ordered_update_i_size(inode, 0, ordered_extent);
 	ret = btrfs_update_inode_fallback(trans, root, inode);
 	ret = btrfs_update_inode_fallback(trans, root, inode);