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

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

Signed-off-by: Cong Wang <amwang@redhat.com>

authored by

Cong Wang and committed by
Cong Wang
883da600 c4bc8dcb

+4 -4
+2 -2
fs/reiserfs/stree.c
··· 1284 1284 ** -clm 1285 1285 */ 1286 1286 1287 - data = kmap_atomic(un_bh->b_page, KM_USER0); 1287 + data = kmap_atomic(un_bh->b_page); 1288 1288 off = ((le_ih_k_offset(&s_ih) - 1) & (PAGE_CACHE_SIZE - 1)); 1289 1289 memcpy(data + off, 1290 1290 B_I_PITEM(PATH_PLAST_BUFFER(path), &s_ih), 1291 1291 ret_value); 1292 - kunmap_atomic(data, KM_USER0); 1292 + kunmap_atomic(data); 1293 1293 } 1294 1294 /* Perform balancing after all resources have been collected at once. */ 1295 1295 do_balance(&s_del_balance, NULL, NULL, M_DELETE);
+2 -2
fs/reiserfs/tail_conversion.c
··· 128 128 if (up_to_date_bh) { 129 129 unsigned pgoff = 130 130 (tail_offset + total_tail - 1) & (PAGE_CACHE_SIZE - 1); 131 - char *kaddr = kmap_atomic(up_to_date_bh->b_page, KM_USER0); 131 + char *kaddr = kmap_atomic(up_to_date_bh->b_page); 132 132 memset(kaddr + pgoff, 0, blk_size - total_tail); 133 - kunmap_atomic(kaddr, KM_USER0); 133 + kunmap_atomic(kaddr); 134 134 } 135 135 136 136 REISERFS_I(inode)->i_first_direct_byte = U32_MAX;