diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2013-03-14 14:57:45 +0000 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-05-06 15:54:14 -0400 |
commit | b0496686ba0da69cfd2433ef55fb2d1dc7465084 (patch) | |
tree | 78239a9c6f3a7015416f261968a8bbc359c067a8 /fs/btrfs/file-item.c | |
parent | 087488109afb4cc1bbdd3557779129c34045609a (diff) | |
download | linux-3.10-b0496686ba0da69cfd2433ef55fb2d1dc7465084.tar.gz linux-3.10-b0496686ba0da69cfd2433ef55fb2d1dc7465084.tar.bz2 linux-3.10-b0496686ba0da69cfd2433ef55fb2d1dc7465084.zip |
Btrfs: cleanup unused arguments of btrfs_csum_data
Argument 'root' is no more used in btrfs_csum_data().
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/file-item.c')
-rw-r--r-- | fs/btrfs/file-item.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index c4628a201cb..bc3c9246604 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c @@ -484,8 +484,7 @@ int btrfs_csum_one_bio(struct btrfs_root *root, struct inode *inode, data = kmap_atomic(bvec->bv_page); sector_sum->sum = ~(u32)0; - sector_sum->sum = btrfs_csum_data(root, - data + bvec->bv_offset, + sector_sum->sum = btrfs_csum_data(data + bvec->bv_offset, sector_sum->sum, bvec->bv_len); kunmap_atomic(data); |