Skip to content

Commit

Permalink
btrfs: remove unused parameter from add_pending_csums
Browse files Browse the repository at this point in the history
Never used.

Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
  • Loading branch information
David Sterba committed Feb 17, 2017
1 parent 3d4b949 commit df9f628
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1905,8 +1905,7 @@ static int btrfs_submit_bio_hook(struct inode *inode, struct bio *bio,
* at IO completion time based on sums calculated at bio submission time.
*/
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;

Expand Down Expand Up @@ -2900,8 +2899,7 @@ static int btrfs_finish_ordered_io(struct btrfs_ordered_extent *ordered_extent)
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);
ret = btrfs_update_inode_fallback(trans, root, inode);
Expand Down

0 comments on commit df9f628

Please sign in to comment.