Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Cong Wang <amwang@redhat.com>

authored by

Cong Wang and committed by
Cong Wang
d4a23aee bf7014b6

+2 -2
+2 -2
fs/ext2/dir.c
··· 645 645 unlock_page(page); 646 646 goto fail; 647 647 } 648 - kaddr = kmap_atomic(page, KM_USER0); 648 + kaddr = kmap_atomic(page); 649 649 memset(kaddr, 0, chunk_size); 650 650 de = (struct ext2_dir_entry_2 *)kaddr; 651 651 de->name_len = 1; ··· 660 660 de->inode = cpu_to_le32(parent->i_ino); 661 661 memcpy (de->name, "..\0", 4); 662 662 ext2_set_de_type (de, inode); 663 - kunmap_atomic(kaddr, KM_USER0); 663 + kunmap_atomic(kaddr); 664 664 err = ext2_commit_chunk(page, 0, chunk_size); 665 665 fail: 666 666 page_cache_release(page);