diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2013-03-14 15:57:45 +0100 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-05-06 21:54:14 +0200 |
commit | b0496686ba0da69cfd2433ef55fb2d1dc7465084 (patch) | |
tree | 78239a9c6f3a7015416f261968a8bbc359c067a8 /fs/btrfs/compression.c | |
parent | btrfs: clean up transaction abort messages (diff) | |
download | linux-b0496686ba0da69cfd2433ef55fb2d1dc7465084.tar.xz linux-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/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 15b94089abc4..b9c565028605 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); |