]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
reiserfs: remove the second argument of k[un]map_atomic()
authorCong Wang <amwang@redhat.com>
Fri, 25 Nov 2011 15:14:35 +0000 (23:14 +0800)
committerCong Wang <xiyou.wangcong@gmail.com>
Tue, 20 Mar 2012 13:48:25 +0000 (21:48 +0800)
Signed-off-by: Cong Wang <amwang@redhat.com>
fs/reiserfs/stree.c
fs/reiserfs/tail_conversion.c

index 313d39d639ebfde26af3116a8b1a510722beaa24..77df82f9e70a2090fbf6a04c17b6becc830d7c89 100644 (file)
@@ -1284,12 +1284,12 @@ int reiserfs_delete_item(struct reiserfs_transaction_handle *th,
                 ** -clm
                 */
 
-               data = kmap_atomic(un_bh->b_page, KM_USER0);
+               data = kmap_atomic(un_bh->b_page);
                off = ((le_ih_k_offset(&s_ih) - 1) & (PAGE_CACHE_SIZE - 1));
                memcpy(data + off,
                       B_I_PITEM(PATH_PLAST_BUFFER(path), &s_ih),
                       ret_value);
-               kunmap_atomic(data, KM_USER0);
+               kunmap_atomic(data);
        }
        /* Perform balancing after all resources have been collected at once. */
        do_balance(&s_del_balance, NULL, NULL, M_DELETE);
index d7f6e51bef2af42390c40da795dee558ee97af34..8f546bd473b87030f99bc1c5291cc281012dfea9 100644 (file)
@@ -128,9 +128,9 @@ int direct2indirect(struct reiserfs_transaction_handle *th, struct inode *inode,
        if (up_to_date_bh) {
                unsigned pgoff =
                    (tail_offset + total_tail - 1) & (PAGE_CACHE_SIZE - 1);
-               char *kaddr = kmap_atomic(up_to_date_bh->b_page, KM_USER0);
+               char *kaddr = kmap_atomic(up_to_date_bh->b_page);
                memset(kaddr + pgoff, 0, blk_size - total_tail);
-               kunmap_atomic(kaddr, KM_USER0);
+               kunmap_atomic(kaddr);
        }
 
        REISERFS_I(inode)->i_first_direct_byte = U32_MAX;