Commit d4a23aee authored by Cong Wang's avatar Cong Wang Committed by Cong Wang

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

Acked-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarCong Wang <amwang@redhat.com>
parent bf7014b6
...@@ -645,7 +645,7 @@ int ext2_make_empty(struct inode *inode, struct inode *parent) ...@@ -645,7 +645,7 @@ int ext2_make_empty(struct inode *inode, struct inode *parent)
unlock_page(page); unlock_page(page);
goto fail; goto fail;
} }
kaddr = kmap_atomic(page, KM_USER0); kaddr = kmap_atomic(page);
memset(kaddr, 0, chunk_size); memset(kaddr, 0, chunk_size);
de = (struct ext2_dir_entry_2 *)kaddr; de = (struct ext2_dir_entry_2 *)kaddr;
de->name_len = 1; de->name_len = 1;
...@@ -660,7 +660,7 @@ int ext2_make_empty(struct inode *inode, struct inode *parent) ...@@ -660,7 +660,7 @@ int ext2_make_empty(struct inode *inode, struct inode *parent)
de->inode = cpu_to_le32(parent->i_ino); de->inode = cpu_to_le32(parent->i_ino);
memcpy (de->name, "..\0", 4); memcpy (de->name, "..\0", 4);
ext2_set_de_type (de, inode); ext2_set_de_type (de, inode);
kunmap_atomic(kaddr, KM_USER0); kunmap_atomic(kaddr);
err = ext2_commit_chunk(page, 0, chunk_size); err = ext2_commit_chunk(page, 0, chunk_size);
fail: fail:
page_cache_release(page); page_cache_release(page);
......
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