Skip to content

Commit bf7014b

Browse files
Cong Wangcongwang
authored andcommitted
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>
1 parent da4aa36 commit bf7014b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/exofs/dir.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ int exofs_make_empty(struct inode *inode, struct inode *parent)
597597
goto fail;
598598
}
599599

600-
kaddr = kmap_atomic(page, KM_USER0);
600+
kaddr = kmap_atomic(page);
601601
de = (struct exofs_dir_entry *)kaddr;
602602
de->name_len = 1;
603603
de->rec_len = cpu_to_le16(EXOFS_DIR_REC_LEN(1));
@@ -611,7 +611,7 @@ int exofs_make_empty(struct inode *inode, struct inode *parent)
611611
de->inode_no = cpu_to_le64(parent->i_ino);
612612
memcpy(de->name, PARENT_DIR, sizeof(PARENT_DIR));
613613
exofs_set_de_type(de, inode);
614-
kunmap_atomic(kaddr, KM_USER0);
614+
kunmap_atomic(kaddr);
615615
err = exofs_commit_chunk(page, 0, chunk_size);
616616
fail:
617617
page_cache_release(page);

0 commit comments

Comments
 (0)