diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2013-03-14 14:57:45 (GMT) |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-05-06 19:54:14 (GMT) |
commit | b0496686ba0da69cfd2433ef55fb2d1dc7465084 (patch) | |
tree | 78239a9c6f3a7015416f261968a8bbc359c067a8 /fs/btrfs/compression.c | |
parent | 087488109afb4cc1bbdd3557779129c34045609a (diff) | |
download | linux-b0496686ba0da69cfd2433ef55fb2d1dc7465084.tar.xz |
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/compression.c')
-rw-r--r-- | fs/btrfs/compression.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c index 15b9408..b9c5650 100644 --- a/fs/btrfs/compression.c +++ b/fs/btrfs/compression.c @@ -106,7 +106,6 @@ static int check_compressed_csum(struct inode *inode, u64 disk_start) { int ret; - struct btrfs_root *root = BTRFS_I(inode)->root; struct page *page; unsigned long i; char *kaddr; @@ -121,7 +120,7 @@ static int check_compressed_csum(struct inode *inode, csum = ~(u32)0; kaddr = kmap_atomic(page); - csum = btrfs_csum_data(root, kaddr, csum, PAGE_CACHE_SIZE); + csum = btrfs_csum_data(kaddr, csum, PAGE_CACHE_SIZE); btrfs_csum_final(csum, (char *)&csum); kunmap_atomic(kaddr); |