Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1c7c137 authored by Cong Wang's avatar Cong Wang Committed by Cong Wang
Browse files

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



Signed-off-by: default avatarCong Wang <amwang@redhat.com>
parent 53b55e55
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1042,10 +1042,10 @@ static int ubifs_writepage(struct page *page, struct writeback_control *wbc)
	 * the page size, the remaining memory is zeroed when mapped, and
	 * writes to that region are not written out to the file."
	 */
	kaddr = kmap_atomic(page, KM_USER0);
	kaddr = kmap_atomic(page);
	memset(kaddr + len, 0, PAGE_CACHE_SIZE - len);
	flush_dcache_page(page);
	kunmap_atomic(kaddr, KM_USER0);
	kunmap_atomic(kaddr);

	if (i_size > synced_i_size) {
		err = inode->i_sb->s_op->write_inode(inode, NULL);