]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
udf: remove the second argument of k[un]map_atomic()
authorCong Wang <amwang@redhat.com>
Fri, 25 Nov 2011 15:14:36 +0000 (23:14 +0800)
committerCong Wang <amwang@redhat.com>
Fri, 2 Dec 2011 03:13:01 +0000 (11:13 +0800)
fs/udf/file.c

index d8ffa7cc661d2a28537bc8977c8902647b37b65e..95b8d915e16e9f81499389ab9eb083ae055d091d 100644 (file)
@@ -87,10 +87,10 @@ static int udf_adinicb_write_end(struct file *file,
        char *kaddr;
        struct udf_inode_info *iinfo = UDF_I(inode);
 
-       kaddr = kmap_atomic(page, KM_USER0);
+       kaddr = kmap_atomic(page);
        memcpy(iinfo->i_ext.i_data + iinfo->i_lenEAttr + offset,
                kaddr + offset, copied);
-       kunmap_atomic(kaddr, KM_USER0);
+       kunmap_atomic(kaddr);
 
        return simple_write_end(file, mapping, pos, len, copied, page, fsdata);
 }