jbd2: remove the second argument of k[un]map_atomic()

Signed-off-by: Cong Wang <amwang@redhat.com>
This commit is contained in:
Cong Wang 2011-11-25 23:14:31 +08:00 committed by Cong Wang
parent 8fb53c46d9
commit 303a8f2afc
3 changed files with 10 additions and 10 deletions

View file

@ -286,10 +286,10 @@ static __u32 jbd2_checksum_data(__u32 crc32_sum, struct buffer_head *bh)
char *addr;
__u32 checksum;
addr = kmap_atomic(page, KM_USER0);
addr = kmap_atomic(page);
checksum = crc32_be(crc32_sum,
(void *)(addr + offset_in_page(bh->b_data)), bh->b_size);
kunmap_atomic(addr, KM_USER0);
kunmap_atomic(addr);
return checksum;
}