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

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

Ack-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: Cong Wang <amwang@redhat.com>

authored by

Cong Wang and committed by
Cong Wang
bf7014b6 da4aa36d

+2 -2
+2 -2
fs/exofs/dir.c
··· 597 597 goto fail; 598 598 } 599 599 600 - kaddr = kmap_atomic(page, KM_USER0); 600 + kaddr = kmap_atomic(page); 601 601 de = (struct exofs_dir_entry *)kaddr; 602 602 de->name_len = 1; 603 603 de->rec_len = cpu_to_le16(EXOFS_DIR_REC_LEN(1)); ··· 611 611 de->inode_no = cpu_to_le64(parent->i_ino); 612 612 memcpy(de->name, PARENT_DIR, sizeof(PARENT_DIR)); 613 613 exofs_set_de_type(de, inode); 614 - kunmap_atomic(kaddr, KM_USER0); 614 + kunmap_atomic(kaddr); 615 615 err = exofs_commit_chunk(page, 0, chunk_size); 616 616 fail: 617 617 page_cache_release(page);