Commit 906adea1 authored by Cong Wang's avatar Cong Wang

jbd2: remove the second argument of kmap_atomic

Signed-off-by: default avatarCong Wang <amwang@redhat.com>
parent a6be1fcb
...@@ -349,12 +349,12 @@ static void jbd2_block_tag_csum_set(journal_t *j, journal_block_tag_t *tag, ...@@ -349,12 +349,12 @@ static void jbd2_block_tag_csum_set(journal_t *j, journal_block_tag_t *tag,
return; return;
sequence = cpu_to_be32(sequence); sequence = cpu_to_be32(sequence);
addr = kmap_atomic(page, KM_USER0); addr = kmap_atomic(page);
csum = jbd2_chksum(j, j->j_csum_seed, (__u8 *)&sequence, csum = jbd2_chksum(j, j->j_csum_seed, (__u8 *)&sequence,
sizeof(sequence)); sizeof(sequence));
csum = jbd2_chksum(j, csum, addr + offset_in_page(bh->b_data), csum = jbd2_chksum(j, csum, addr + offset_in_page(bh->b_data),
bh->b_size); bh->b_size);
kunmap_atomic(addr, KM_USER0); kunmap_atomic(addr);
tag->t_checksum = cpu_to_be32(csum); tag->t_checksum = cpu_to_be32(csum);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment